pub enum ListLeafSelector<S, V, DM, IDM>where
S: PlanningSolution,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S>,
IDM: CrossEntityDistanceMeter<S>,{
NearbyListChange(ListMoveNearbyListChangeSelector<S, V, DM, FromSolutionEntitySelector>),
NearbyListSwap(ListMoveNearbyListSwapSelector<S, V, IDM, FromSolutionEntitySelector>),
ListReverse(ListMoveListReverseSelector<S, V, FromSolutionEntitySelector>),
SubListChange(ListMoveSubListChangeSelector<S, V, FromSolutionEntitySelector>),
KOpt(ListMoveKOptSelector<S, V, FromSolutionEntitySelector>),
ListRuin(ListMoveListRuinSelector<S, V>),
ListChange(ListMoveListChangeSelector<S, V, FromSolutionEntitySelector>),
ListSwap(ListMoveListSwapSelector<S, V, FromSolutionEntitySelector>),
SubListSwap(ListMoveSubListSwapSelector<S, V, FromSolutionEntitySelector>),
}Expand description
A monomorphized leaf selector for list planning variables.
Each variant wraps one of the available list move selector wrapper types.
Allows VecUnionSelector<S, ListMoveImpl<S, V>, ListLeafSelector<S, V, DM, IDM>> to have
a single concrete type regardless of configuration.
Variants§
NearbyListChange(ListMoveNearbyListChangeSelector<S, V, DM, FromSolutionEntitySelector>)
Nearby list change (distance-pruned relocation).
NearbyListSwap(ListMoveNearbyListSwapSelector<S, V, IDM, FromSolutionEntitySelector>)
Nearby list swap (distance-pruned swap).
ListReverse(ListMoveListReverseSelector<S, V, FromSolutionEntitySelector>)
List reverse (2-opt).
SubListChange(ListMoveSubListChangeSelector<S, V, FromSolutionEntitySelector>)
Sublist change (Or-opt).
KOpt(ListMoveKOptSelector<S, V, FromSolutionEntitySelector>)
K-opt.
ListRuin(ListMoveListRuinSelector<S, V>)
List ruin (LNS).
ListChange(ListMoveListChangeSelector<S, V, FromSolutionEntitySelector>)
Full list change (unrestricted relocation).
ListSwap(ListMoveListSwapSelector<S, V, FromSolutionEntitySelector>)
Full list swap (unrestricted swap).
SubListSwap(ListMoveSubListSwapSelector<S, V, FromSolutionEntitySelector>)
Sublist swap.
Trait Implementations§
Source§impl<S, V, DM, IDM> Debug for ListLeafSelector<S, V, DM, IDM>where
S: PlanningSolution,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S>,
IDM: CrossEntityDistanceMeter<S>,
impl<S, V, DM, IDM> Debug for ListLeafSelector<S, V, DM, IDM>where
S: PlanningSolution,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S>,
IDM: CrossEntityDistanceMeter<S>,
Source§impl<S, V, DM, IDM> MoveSelector<S, ListMoveImpl<S, V>> for ListLeafSelector<S, V, DM, IDM>where
S: PlanningSolution,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S>,
IDM: CrossEntityDistanceMeter<S>,
impl<S, V, DM, IDM> MoveSelector<S, ListMoveImpl<S, V>> for ListLeafSelector<S, V, DM, IDM>where
S: PlanningSolution,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S>,
IDM: CrossEntityDistanceMeter<S>,
Source§fn iter_moves<'a, D: Director<S>>(
&'a self,
score_director: &'a D,
) -> impl Iterator<Item = ListMoveImpl<S, V>> + 'a
fn iter_moves<'a, D: Director<S>>( &'a self, score_director: &'a D, ) -> impl Iterator<Item = ListMoveImpl<S, V>> + 'a
Returns an iterator over typed moves.
Source§fn size<D: Director<S>>(&self, score_director: &D) -> usize
fn size<D: Director<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, DM, IDM> Freeze for ListLeafSelector<S, V, DM, IDM>
impl<S, V, DM, IDM> RefUnwindSafe for ListLeafSelector<S, V, DM, IDM>where
DM: RefUnwindSafe,
IDM: RefUnwindSafe,
impl<S, V, DM, IDM> Send for ListLeafSelector<S, V, DM, IDM>
impl<S, V, DM, IDM> Sync for ListLeafSelector<S, V, DM, IDM>
impl<S, V, DM, IDM> Unpin for ListLeafSelector<S, V, DM, IDM>
impl<S, V, DM, IDM> UnsafeUnpin for ListLeafSelector<S, V, DM, IDM>where
DM: UnsafeUnpin,
IDM: UnsafeUnpin,
impl<S, V, DM, IDM> UnwindSafe for ListLeafSelector<S, V, DM, IDM>where
DM: UnwindSafe,
IDM: UnwindSafe,
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