Struct vrp_core::solver::search::WorstJobRemoval
source · pub struct WorstJobRemoval { /* private fields */ }
Expand description
A ruin strategy which detects the most cost expensive jobs in each route and delete them with their neighbours.
Implementations§
source§impl WorstJobRemoval
impl WorstJobRemoval
sourcepub fn new(worst_skip: usize, limits: RemovalLimits) -> Self
pub fn new(worst_skip: usize, limits: RemovalLimits) -> Self
Creates a new instance of WorstJobRemoval
.
Trait Implementations§
source§impl Ruin for WorstJobRemoval
impl Ruin for WorstJobRemoval
source§fn run(
&self,
_refinement_ctx: &RefinementContext,
insertion_ctx: InsertionContext
) -> InsertionContext
fn run( &self, _refinement_ctx: &RefinementContext, insertion_ctx: InsertionContext ) -> InsertionContext
Ruins given solution and returns a new one with less jobs assigned.
Auto Trait Implementations§
impl RefUnwindSafe for WorstJobRemoval
impl Send for WorstJobRemoval
impl Sync for WorstJobRemoval
impl Unpin for WorstJobRemoval
impl UnwindSafe for WorstJobRemoval
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