Struct vrp_core::solver::search::NeighbourRemoval
source · pub struct NeighbourRemoval { /* private fields */ }
Expand description
A ruin strategy which removes jobs in neighbourhood of randomly selected job (inclusive).
Implementations§
source§impl NeighbourRemoval
impl NeighbourRemoval
sourcepub fn new(limits: RemovalLimits) -> Self
pub fn new(limits: RemovalLimits) -> Self
Creates a new instance of NeighbourRemoval
.
Trait Implementations§
source§impl Ruin for NeighbourRemoval
impl Ruin for NeighbourRemoval
source§fn run(
&self,
_: &RefinementContext,
insertion_ctx: InsertionContext
) -> InsertionContext
fn run( &self, _: &RefinementContext, insertion_ctx: InsertionContext ) -> InsertionContext
Ruins given solution and returns a new one with less jobs assigned.
Auto Trait Implementations§
impl RefUnwindSafe for NeighbourRemoval
impl Send for NeighbourRemoval
impl Sync for NeighbourRemoval
impl Unpin for NeighbourRemoval
impl UnwindSafe for NeighbourRemoval
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