Struct vrp_core::solver::search::ClusterRemoval
source · pub struct ClusterRemoval { /* private fields */ }
Expand description
A ruin strategy which removes job clusters using DBSCAN algorithm.
Implementations§
source§impl ClusterRemoval
impl ClusterRemoval
sourcepub fn new(
problem: Arc<Problem>,
environment: Arc<Environment>,
min_items: usize,
limits: RemovalLimits
) -> Self
pub fn new( problem: Arc<Problem>, environment: Arc<Environment>, min_items: usize, limits: RemovalLimits ) -> Self
Creates a new instance of ClusterRemoval
.
sourcepub fn new_with_defaults(
problem: Arc<Problem>,
environment: Arc<Environment>
) -> Self
pub fn new_with_defaults( problem: Arc<Problem>, environment: Arc<Environment> ) -> Self
Creates a new instance of ClusterRemoval
with default parameters.
Trait Implementations§
source§impl Ruin for ClusterRemoval
impl Ruin for ClusterRemoval
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 ClusterRemoval
impl Send for ClusterRemoval
impl Sync for ClusterRemoval
impl Unpin for ClusterRemoval
impl !UnwindSafe for ClusterRemoval
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