pub enum RuinMethod {
AdjustedString {
probability: Float,
lmax: usize,
cavg: usize,
alpha: Float,
},
Neighbour {
probability: Float,
min: usize,
max: usize,
},
RandomJob {
probability: Float,
min: usize,
max: usize,
},
RandomRoute {
probability: Float,
min: usize,
max: usize,
},
CloseRoute {
probability: Float,
},
WorstRoute {
probability: Float,
},
WorstJob {
probability: Float,
min: usize,
max: usize,
skip: usize,
},
Cluster {
probability: Float,
min: usize,
max: usize,
},
}Expand description
Specifies ruin methods with their probability weight and specific parameters.
Variants§
AdjustedString
Adjusted string removal method.
Neighbour
Neighbour jobs method
RandomJob
Random job removal method.
RandomRoute
Random route removal method.
CloseRoute
Close route removal method.
WorstRoute
WorstJob
Worst job removal method.
Cluster
Clustered jobs removal method.
Trait Implementations§
Source§impl Clone for RuinMethod
impl Clone for RuinMethod
Source§fn clone(&self) -> RuinMethod
fn clone(&self) -> RuinMethod
Returns a duplicate 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 RuinMethod
impl Debug for RuinMethod
Source§impl<'de> Deserialize<'de> for RuinMethod
impl<'de> Deserialize<'de> for RuinMethod
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 Freeze for RuinMethod
impl RefUnwindSafe for RuinMethod
impl Send for RuinMethod
impl Sync for RuinMethod
impl Unpin for RuinMethod
impl UnwindSafe for RuinMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more