pub struct NSGA2Config {
pub population_size: usize,
pub generations: usize,
pub crossover_prob: Float,
pub mutation_prob: Float,
pub eta_c: Float,
pub eta_m: Float,
pub algorithm: NSGA2Algorithm,
pub random_state: Option<u64>,
}Expand description
NSGA-II Configuration
Fields§
§population_size: usizePopulation size
generations: usizeNumber of generations
crossover_prob: FloatCrossover probability
mutation_prob: FloatMutation probability
eta_c: FloatDistribution index for SBX crossover
eta_m: FloatDistribution index for polynomial mutation
algorithm: NSGA2AlgorithmAlgorithm variant
random_state: Option<u64>Random state for reproducibility
Trait Implementations§
Source§impl Clone for NSGA2Config
impl Clone for NSGA2Config
Source§fn clone(&self) -> NSGA2Config
fn clone(&self) -> NSGA2Config
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 NSGA2Config
impl Debug for NSGA2Config
Auto Trait Implementations§
impl Freeze for NSGA2Config
impl RefUnwindSafe for NSGA2Config
impl Send for NSGA2Config
impl Sync for NSGA2Config
impl Unpin for NSGA2Config
impl UnwindSafe for NSGA2Config
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