Struct vrp_core::solver::termination::MinVariation [−][src]
pub struct MinVariation { /* fields omitted */ }Expand description
A termination criteria which calculates coefficient variation in each objective and terminates when min threshold is not reached.
Implementations
impl MinVariation[src]
impl MinVariation[src]pub fn new_with_sample(sample: usize, threshold: f64, is_global: bool) -> Self[src]
pub fn new_with_sample(sample: usize, threshold: f64, is_global: bool) -> Self[src]Creates a new instance of MinVariation with sample interval type.
pub fn new_with_period(period: usize, threshold: f64, is_global: bool) -> Self[src]
pub fn new_with_period(period: usize, threshold: f64, is_global: bool) -> Self[src]Creates a new instance of MinVariation with period interval type.
Trait Implementations
impl Termination for MinVariation[src]
impl Termination for MinVariation[src]fn is_termination(&self, refinement_ctx: &mut RefinementContext) -> bool[src]
fn is_termination(&self, refinement_ctx: &mut RefinementContext) -> bool[src]Returns true if termination condition is met.
fn estimate(&self, _: &RefinementContext) -> f64[src]
fn estimate(&self, _: &RefinementContext) -> f64[src]Returns a relative estimation till termination. Value is in the [0, 1] range.
Auto Trait Implementations
impl RefUnwindSafe for MinVariation
impl Send for MinVariation
impl Sync for MinVariation
impl Unpin for MinVariation
impl UnwindSafe for MinVariation
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>,