pub enum TspParams {
Aco {
alpha: f64,
beta: f64,
rho: f64,
q0: f64,
num_ants: usize,
},
Tabu {
tenure: usize,
max_neighbors: usize,
},
Ga {
population_size: usize,
crossover_rate: f64,
mutation_rate: f64,
},
Hybrid {
ga_fraction: f64,
tabu_fraction: f64,
aco_fraction: f64,
},
}Expand description
Algorithm-specific parameters
Variants§
Aco
ACO parameters
Tabu
Tabu Search parameters
Ga
Genetic Algorithm parameters
Hybrid
Hybrid parameters
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TspParams
impl RefUnwindSafe for TspParams
impl Send for TspParams
impl Sync for TspParams
impl Unpin for TspParams
impl UnwindSafe for TspParams
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