pub struct NsgaIIOptions<S: Scalar> {
pub pop_size: usize,
pub max_generations: usize,
pub crossover_eta: S,
pub mutation_eta: S,
pub crossover_prob: S,
pub mutation_prob: Option<S>,
pub seed: u64,
pub verbose: bool,
}Expand description
Options for NSGA-II multi-objective optimization.
Fields§
§pop_size: usizePopulation size (must be even). Default: 100.
max_generations: usizeMaximum number of generations. Default: 200.
crossover_eta: SSBX crossover distribution index. Default: 20.0.
mutation_eta: SPolynomial mutation distribution index. Default: 20.0.
crossover_prob: SCrossover probability. Default: 0.9.
mutation_prob: Option<S>Mutation probability per variable. Default: None (= 1/n).
seed: u64Random seed for reproducibility. Default: 42.
verbose: boolPrint progress information. Default: false.
Trait Implementations§
Source§impl<S: Clone + Scalar> Clone for NsgaIIOptions<S>
impl<S: Clone + Scalar> Clone for NsgaIIOptions<S>
Source§fn clone(&self) -> NsgaIIOptions<S>
fn clone(&self) -> NsgaIIOptions<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<S> Freeze for NsgaIIOptions<S>where
S: Freeze,
impl<S> RefUnwindSafe for NsgaIIOptions<S>where
S: RefUnwindSafe,
impl<S> Send for NsgaIIOptions<S>
impl<S> Sync for NsgaIIOptions<S>
impl<S> Unpin for NsgaIIOptions<S>where
S: Unpin,
impl<S> UnsafeUnpin for NsgaIIOptions<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for NsgaIIOptions<S>where
S: UnwindSafe,
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