Struct vrp_core::solver::mutation::ClusterRemoval [−][src]
pub struct ClusterRemoval { /* fields omitted */ }Expand description
A ruin strategy which removes job clusters using DBSCAN algorithm.
Implementations
impl ClusterRemoval[src]
impl ClusterRemoval[src]pub fn new(
problem: Arc<Problem>,
environment: Arc<Environment>,
min_items: usize,
limits: RuinLimits
) -> Self[src]
pub fn new(
problem: Arc<Problem>,
environment: Arc<Environment>,
min_items: usize,
limits: RuinLimits
) -> Self[src]Creates a new instance of ClusterRemoval.
pub fn new_with_defaults(
problem: Arc<Problem>,
environment: Arc<Environment>
) -> Self[src]
pub fn new_with_defaults(
problem: Arc<Problem>,
environment: Arc<Environment>
) -> Self[src]Creates a new instance of ClusterRemoval with default parameters.
Trait Implementations
impl Ruin for ClusterRemoval[src]
impl Ruin for ClusterRemoval[src]fn run(
&self,
_: &RefinementContext,
insertion_ctx: InsertionContext
) -> InsertionContext[src]
fn run(
&self,
_: &RefinementContext,
insertion_ctx: InsertionContext
) -> InsertionContext[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,