pub struct KOptPhase<S, V>{ /* private fields */ }Expand description
K-opt local search phase.
Iterates through k-opt moves and accepts improving ones using hill climbing.
Trait Implementations§
Source§impl<S, V, D> Phase<S, D> for KOptPhase<S, V>
impl<S, V, D> Phase<S, D> for KOptPhase<S, V>
fn solve(&mut self, solver_scope: &mut SolverScope<'_, S, D>)
fn phase_type_name(&self) -> &'static str
Source§fn on_solver_terminal(
&mut self,
_solver_scope: &mut SolverScope<'_, S, D, BestCb>,
)
fn on_solver_terminal( &mut self, _solver_scope: &mut SolverScope<'_, S, D, BestCb>, )
Runs once when the enclosing solver reaches its terminal boundary. Read more
Source§fn candidate_trace_plan(&self) -> CandidateTracePhasePlan
fn candidate_trace_plan(&self) -> CandidateTracePhasePlan
Returns the exact resolved-plan provenance this phase can prove. Read more
Auto Trait Implementations§
impl<S, V> Freeze for KOptPhase<S, V>
impl<S, V> RefUnwindSafe for KOptPhase<S, V>
impl<S, V> Send for KOptPhase<S, V>
impl<S, V> Sync for KOptPhase<S, V>
impl<S, V> Unpin for KOptPhase<S, V>
impl<S, V> UnsafeUnpin for KOptPhase<S, V>
impl<S, V> UnwindSafe for KOptPhase<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> 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