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
Cheapest insertion method.
SkipBest
SkipBest insertion method.
Blinks
Insertion with blinks method.
Gaps
Insertion with gaps method.
Nearest
Nearest neighbour method.
SkipRandom
Insertion with skip random method.
Slice
Insertion with slice method.
Farthest
Farthest insertion method.
Perturbation
Insertion with perturbation method.
Regret
Insertion with regret method.
Trait Implementations§
source§impl Clone for RecreateMethod
impl Clone for RecreateMethod
source§fn clone(&self) -> RecreateMethod
fn clone(&self) -> RecreateMethod
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RecreateMethod
impl Debug for RecreateMethod
source§impl<'de> Deserialize<'de> for RecreateMethod
impl<'de> Deserialize<'de> for RecreateMethod
source§fn 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§
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