Enum vrp_cli::extensions::solve::config::RecreateMethod
source · [−]pub enum RecreateMethod {
Cheapest {
weight: usize,
},
SkipBest {
weight: usize,
start: usize,
end: usize,
},
Blinks {
weight: usize,
},
Gaps {
weight: usize,
min: usize,
max: usize,
},
Nearest {
weight: usize,
},
SkipRandom {
weight: usize,
},
Slice {
weight: usize,
},
Farthest {
weight: usize,
},
Perturbation {
weight: usize,
probability: f64,
min: f64,
max: f64,
},
Regret {
weight: usize,
start: usize,
end: usize,
},
}Expand description
Specifies recreate methods with their probability weight and specific parameters.
Variants
Cheapest
Fields
weight: usizeCheapest insertion method.
SkipBest
SkipBest insertion method.
Blinks
Fields
weight: usizeInsertion with blinks method.
Gaps
Insertion with gaps method.
Nearest
Fields
weight: usizeNearest neighbour method.
SkipRandom
Fields
weight: usizeInsertion with skip random method.
Slice
Fields
weight: usizeInsertion with slice method.
Farthest
Fields
weight: usizeFarthest insertion method.
Perturbation
Insertion with perturbation method.
Regret
Insertion with regret method.
Trait Implementations
sourceimpl Clone for RecreateMethod
impl Clone for RecreateMethod
sourcefn clone(&self) -> RecreateMethod
fn clone(&self) -> RecreateMethod
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RecreateMethod
impl Debug for RecreateMethod
sourceimpl<'de> Deserialize<'de> for RecreateMethod
impl<'de> Deserialize<'de> for RecreateMethod
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RecreateMethod
impl Send for RecreateMethod
impl Sync for RecreateMethod
impl Unpin for RecreateMethod
impl UnwindSafe for RecreateMethod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more