pub struct KOptMoveSelector<S, V, ES> { /* private fields */ }Expand description
A move selector that generates k-opt moves.
Enumerates all valid cut point combinations for each selected entity and generates moves for each reconnection pattern.
Implementations§
Source§impl<S: PlanningSolution, V, ES> KOptMoveSelector<S, V, ES>
impl<S: PlanningSolution, V, ES> KOptMoveSelector<S, V, ES>
Trait Implementations§
Source§impl<S, V, ES> MoveSelector<S, KOptMove<S, V>> for KOptMoveSelector<S, V, ES>
impl<S, V, ES> MoveSelector<S, KOptMove<S, V>> for KOptMoveSelector<S, V, ES>
Source§fn iter_moves<'a, D: ScoreDirector<S>>(
&'a self,
score_director: &'a D,
) -> Box<dyn Iterator<Item = KOptMove<S, V>> + 'a>
fn iter_moves<'a, D: ScoreDirector<S>>( &'a self, score_director: &'a D, ) -> Box<dyn Iterator<Item = KOptMove<S, V>> + 'a>
Returns an iterator over typed moves.
Source§fn size<D: ScoreDirector<S>>(&self, score_director: &D) -> usize
fn size<D: ScoreDirector<S>>(&self, score_director: &D) -> usize
Returns the approximate number of moves.
Source§fn is_never_ending(&self) -> bool
fn is_never_ending(&self) -> bool
Returns true if this selector may return the same move multiple times.
Auto Trait Implementations§
impl<S, V, ES> Freeze for KOptMoveSelector<S, V, ES>where
ES: Freeze,
impl<S, V, ES> RefUnwindSafe for KOptMoveSelector<S, V, ES>
impl<S, V, ES> Send for KOptMoveSelector<S, V, ES>
impl<S, V, ES> Sync for KOptMoveSelector<S, V, ES>
impl<S, V, ES> Unpin for KOptMoveSelector<S, V, ES>
impl<S, V, ES> UnwindSafe for KOptMoveSelector<S, V, ES>
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> 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