pub struct FixedOffsetBounder<S: PlanningSolution> { /* private fields */ }Expand description
A bounder that uses a fixed offset from the current score.
This assumes that future assignments can at most improve the score by a fixed amount per remaining entity.
Implementations§
Source§impl<S: PlanningSolution> FixedOffsetBounder<S>
impl<S: PlanningSolution> FixedOffsetBounder<S>
Trait Implementations§
Source§impl<S: Clone + PlanningSolution> Clone for FixedOffsetBounder<S>
impl<S: Clone + PlanningSolution> Clone for FixedOffsetBounder<S>
Source§fn clone(&self) -> FixedOffsetBounder<S>
fn clone(&self) -> FixedOffsetBounder<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: PlanningSolution> Debug for FixedOffsetBounder<S>
impl<S: PlanningSolution> Debug for FixedOffsetBounder<S>
Source§impl<S: PlanningSolution> ScoreBounder<S> for FixedOffsetBounder<S>
impl<S: PlanningSolution> ScoreBounder<S> for FixedOffsetBounder<S>
Source§fn calculate_optimistic_bound(
&self,
score_director: &dyn ScoreDirector<S>,
) -> Option<S::Score>
fn calculate_optimistic_bound( &self, score_director: &dyn ScoreDirector<S>, ) -> Option<S::Score>
Calculates the optimistic bound for the current solution state. Read more
Source§fn calculate_pessimistic_bound(
&self,
score_director: &dyn ScoreDirector<S>,
) -> Option<S::Score>
fn calculate_pessimistic_bound( &self, score_director: &dyn ScoreDirector<S>, ) -> Option<S::Score>
Calculates the pessimistic bound for the current solution state. Read more
Auto Trait Implementations§
impl<S> Freeze for FixedOffsetBounder<S>
impl<S> RefUnwindSafe for FixedOffsetBounder<S>
impl<S> Send for FixedOffsetBounder<S>
impl<S> Sync for FixedOffsetBounder<S>
impl<S> Unpin for FixedOffsetBounder<S>
impl<S> UnwindSafe for FixedOffsetBounder<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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