Skip to main content

TimeTableOverIntervalIncrementalPropagator

Struct TimeTableOverIntervalIncrementalPropagator 

Source
pub struct TimeTableOverIntervalIncrementalPropagator<Var, const SYNCHRONISE: bool> { /* private fields */ }
Expand description

Propagator responsible for using time-table reasoning to propagate the Cumulative constraint where a time-table is a structure which stores the mandatory resource usage of the tasks at different time-points - This method creates a resource profile over an interval rather than creating one per time-point (hence the name). Furthermore, the [TimeTableOverIntervalPropagator] has a generic argument which represents the type of variable used for modelling the start variables, this will be an implementation of IntegerVariable.

The difference between the TimeTableOverIntervalIncrementalPropagator and [TimeTableOverIntervalPropagator] is that the TimeTableOverIntervalIncrementalPropagator does not recalculate the time-table from scratch whenever the Propagator::propagate method is called but it utilises the Propagator::notify method to determine when a mandatory part is added and only updates the structure based on these updated mandatory parts.

See Sections 4.2.1, 4.5.2 and 4.6.1-4.6.3 of [1] for more information about time-table reasoning.

[1] A. Schutt, Improving scheduling by learning. University of Melbourne, Department of Computer Science and Software Engineering, 2011.

Implementations§

Source§

impl<Var, const SYNCHRONISE: bool> TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
where Var: IntegerVariable + 'static,

Source

pub fn new( arg_tasks: &[ArgTask<Var>], capacity: i32, cumulative_options: CumulativePropagatorOptions, constraint_tag: ConstraintTag, ) -> TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>

Trait Implementations§

Source§

impl<Var, const SYNCHRONISE: bool> Clone for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
where Var: Clone,

Source§

fn clone(&self) -> TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Var, const SYNCHRONISE: bool> Debug for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
where Var: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<Var, const SYNCHRONISE: bool> Propagator for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
where Var: IntegerVariable + 'static,

Source§

fn propagate(&mut self, context: PropagationContext<'_>) -> Result<(), Conflict>

Performs propagation with state (i.e., with being able to mutate internal data structures, as opposed to Propagator::propagate_from_scratch). Read more
Source§

fn notify( &mut self, context: NotificationContext<'_>, local_id: LocalId, event: OpaqueDomainEvent, ) -> EnqueueDecision

Returns whether the propagator should be enqueued for propagation when a [DomainEvent] happens to one of the variables the propagator is subscribed to (as registered during creation with [PropagatorConstructor] using [PropagatorConstructorContext::register]). Read more
Source§

fn notify_backtrack( &mut self, context: Domains<'_>, local_id: LocalId, event: OpaqueDomainEvent, )

This function is called when the effect of a [DomainEvent] is undone during backtracking of one of the variables the propagator is subscribed to (as registered during creation with [PropagatorConstructor] using [PropagatorConstructorContext::register_backtrack]). Read more
Source§

fn synchronise(&mut self, context: NotificationContext<'_>)

Called after backtracking, allowing the propagator to update its internal data structures given the new variable domains. Read more
Source§

fn priority(&self) -> Priority

Returns the Priority of the propagator, used for determining the order in which propagators are called. Read more
Source§

fn name(&self) -> &str

Return the name of the propagator. Read more
Source§

fn propagate_from_scratch( &self, context: PropagationContext<'_>, ) -> Result<(), Conflict>

Performs propagation from scratch (i.e., without relying on updating internal data structures, as opposed to Propagator::propagate). Read more
Source§

fn notify_predicate_id_satisfied( &mut self, _context: NotificationContext<'_>, _predicate_id: PredicateId, ) -> EnqueueDecision

Returns whether the propagator should be enqueued for propagation when a Predicate (with corresponding PredicateId) which the propagator is subscribed to (as registered either during using PropagationContext::register_predicate or during creation with [PropagatorConstructor] using [PropagatorConstructorContext::register_predicate]). Read more
Source§

fn detect_inconsistency( &self, _domains: Domains<'_>, ) -> Option<PropagatorConflict>

A function which returns Some with a PropagatorConflict when this propagator can detect an inconsistency (and None otherwise). Read more
Source§

fn lazy_explanation( &mut self, _code: u64, _context: ExplanationContext<'_>, ) -> LazyExplanation<'_>

Hook which is called when a propagated Predicate should be explained using a lazy reason. Read more
Source§

fn log_statistics(&self, _statistic_logger: StatisticLogger)

Logs statistics of the propagator using the provided StatisticLogger. Read more
Source§

impl<Var, const SYNCHRONISE: bool> PropagatorConstructor for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
where Var: IntegerVariable + 'static,

Source§

type PropagatorImpl = TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>

The propagator that is produced by this constructor.
Source§

fn add_inference_checkers(&self, checkers: InferenceCheckers<'_>)

Add inference checkers to the solver if applicable. Read more
Source§

fn create( self, context: PropagatorConstructorContext<'_>, ) -> <TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE> as PropagatorConstructor>::PropagatorImpl

Create the propagator instance from Self.

Auto Trait Implementations§

§

impl<Var, const SYNCHRONISE: bool> !Send for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>

§

impl<Var, const SYNCHRONISE: bool> !Sync for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>

§

impl<Var, const SYNCHRONISE: bool> Freeze for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>

§

impl<Var, const SYNCHRONISE: bool> RefUnwindSafe for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
where Var: RefUnwindSafe,

§

impl<Var, const SYNCHRONISE: bool> Unpin for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>

§

impl<Var, const SYNCHRONISE: bool> UnsafeUnpin for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>

§

impl<Var, const SYNCHRONISE: bool> UnwindSafe for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
where Var: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<ConcretePropagator> Constraint for ConcretePropagator
where ConcretePropagator: PropagatorConstructor + 'static,

Source§

fn post(self, solver: &mut Solver) -> Result<(), ConstraintOperationError>

Add the Constraint to the Solver. Read more
Source§

fn implied_by( self, solver: &mut Solver, reification_literal: Literal, ) -> Result<(), ConstraintOperationError>

Add the half-reified version of the Constraint to the Solver; i.e. post the constraint r -> constraint where r is a reification literal. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.