pub enum NeighborhoodMove<S, V> {
Scalar(ScalarMoveUnion<S, usize>),
List(ListMoveUnion<S, V>),
Composite(SequentialCompositeMove<S, NeighborhoodMove<S, V>>),
}Variants§
Scalar(ScalarMoveUnion<S, usize>)
List(ListMoveUnion<S, V>)
Composite(SequentialCompositeMove<S, NeighborhoodMove<S, V>>)
Trait Implementations§
Source§impl<S, V> Clone for NeighborhoodMove<S, V>
impl<S, V> Clone for NeighborhoodMove<S, V>
Source§impl<S, V> Debug for NeighborhoodMove<S, V>
impl<S, V> Debug for NeighborhoodMove<S, V>
Source§impl<S, V> Move<S> for NeighborhoodMove<S, V>
impl<S, V> Move<S> for NeighborhoodMove<S, V>
fn is_doable<D: Director<S>>(&self, score_director: &D) -> bool
fn do_move<D: Director<S>>(&self, score_director: &mut D)
fn descriptor_index(&self) -> usize
fn entity_indices(&self) -> &[usize]
fn variable_name(&self) -> &str
fn requires_hard_improvement(&self) -> bool
fn tabu_signature<D: Director<S>>( &self, score_director: &D, ) -> MoveTabuSignature
fn for_each_affected_entity( &self, visitor: &mut dyn FnMut(MoveAffectedEntity<'_>), )
Source§impl<S, V, DM, IDM> MoveCursor<S, NeighborhoodMove<S, V>> for CartesianChildCursor<'_, S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
impl<S, V, DM, IDM> MoveCursor<S, NeighborhoodMove<S, V>> for CartesianChildCursor<'_, S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
fn next_candidate(&mut self) -> Option<CandidateId>
fn candidate( &self, index: CandidateId, ) -> Option<MoveCandidateRef<'_, S, NeighborhoodMove<S, V>>>
fn take_candidate(&mut self, index: CandidateId) -> NeighborhoodMove<S, V>
fn selector_index(&self, index: CandidateId) -> Option<usize>
Source§impl<S, V, DM, IDM> MoveCursor<S, NeighborhoodMove<S, V>> for NeighborhoodCursor<'_, S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
impl<S, V, DM, IDM> MoveCursor<S, NeighborhoodMove<S, V>> for NeighborhoodCursor<'_, S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
fn next_candidate(&mut self) -> Option<CandidateId>
fn candidate( &self, index: CandidateId, ) -> Option<MoveCandidateRef<'_, S, NeighborhoodMove<S, V>>>
fn take_candidate(&mut self, index: CandidateId) -> NeighborhoodMove<S, V>
fn selector_index(&self, index: CandidateId) -> Option<usize>
Source§impl<S, V, DM, IDM> MoveCursor<S, NeighborhoodMove<S, V>> for NeighborhoodLeafCursor<'_, S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
impl<S, V, DM, IDM> MoveCursor<S, NeighborhoodMove<S, V>> for NeighborhoodLeafCursor<'_, S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
fn next_candidate(&mut self) -> Option<CandidateId>
fn candidate( &self, index: CandidateId, ) -> Option<MoveCandidateRef<'_, S, NeighborhoodMove<S, V>>>
fn take_candidate(&mut self, index: CandidateId) -> NeighborhoodMove<S, V>
fn selector_index(&self, index: CandidateId) -> Option<usize>
Source§impl<S, V, DM, IDM> MoveSelector<S, NeighborhoodMove<S, V>> for CartesianChildSelector<S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
impl<S, V, DM, IDM> MoveSelector<S, NeighborhoodMove<S, V>> for CartesianChildSelector<S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
type Cursor<'a> = CartesianChildCursor<'a, S, V, DM, IDM> where Self: 'a
fn open_cursor<'a, D: Director<S>>( &'a self, score_director: &D, ) -> Self::Cursor<'a>
fn size<D: Director<S>>(&self, score_director: &D) -> usize
fn iter_moves<'a, D: Director<S>>( &'a self, score_director: &D, ) -> MoveSelectorIter<S, M, Self::Cursor<'a>> ⓘ
fn append_moves<D: Director<S>>( &self, score_director: &D, arena: &mut MoveArena<M>, )
fn is_never_ending(&self) -> bool
Source§impl<S, V, DM, IDM> MoveSelector<S, NeighborhoodMove<S, V>> for Neighborhood<S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
impl<S, V, DM, IDM> MoveSelector<S, NeighborhoodMove<S, V>> for Neighborhood<S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
type Cursor<'a> = NeighborhoodCursor<'a, S, V, DM, IDM> where Self: 'a
fn open_cursor<'a, D: Director<S>>( &'a self, score_director: &D, ) -> Self::Cursor<'a>
fn size<D: Director<S>>(&self, score_director: &D) -> usize
fn iter_moves<'a, D: Director<S>>( &'a self, score_director: &D, ) -> MoveSelectorIter<S, M, Self::Cursor<'a>> ⓘ
fn append_moves<D: Director<S>>( &self, score_director: &D, arena: &mut MoveArena<M>, )
fn is_never_ending(&self) -> bool
Source§impl<S, V, DM, IDM> MoveSelector<S, NeighborhoodMove<S, V>> for NeighborhoodLeaf<S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
impl<S, V, DM, IDM> MoveSelector<S, NeighborhoodMove<S, V>> for NeighborhoodLeaf<S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
type Cursor<'a> = NeighborhoodLeafCursor<'a, S, V, DM, IDM> where Self: 'a
fn open_cursor<'a, D: Director<S>>( &'a self, score_director: &D, ) -> Self::Cursor<'a>
fn size<D: Director<S>>(&self, score_director: &D) -> usize
fn append_moves<D: Director<S>>( &self, score_director: &D, arena: &mut MoveArena<NeighborhoodMove<S, V>>, )
fn iter_moves<'a, D: Director<S>>( &'a self, score_director: &D, ) -> MoveSelectorIter<S, M, Self::Cursor<'a>> ⓘ
fn is_never_ending(&self) -> bool
Auto Trait Implementations§
impl<S, V> Freeze for NeighborhoodMove<S, V>
impl<S, V> RefUnwindSafe for NeighborhoodMove<S, V>
impl<S, V> Send for NeighborhoodMove<S, V>
impl<S, V> Sync for NeighborhoodMove<S, V>
impl<S, V> Unpin for NeighborhoodMove<S, V>
impl<S, V> UnsafeUnpin for NeighborhoodMove<S, V>
impl<S, V> UnwindSafe for NeighborhoodMove<S, V>
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