pub struct Nsga3Builder<S, Cross, Mut, F, G, DC>where
S: SamplingOperator,
RandomSelection: SelectionOperator<FDim = F::Dim>,
Nsga3ReferencePointsSurvival: SurvivalOperator<FDim = F::Dim>,
Cross: CrossoverOperator,
Mut: MutationOperator,
F: FitnessFn,
G: ConstraintsFn,
DC: PopulationCleaner,{ /* private fields */ }
Implementations§
Source§impl<S, Cross, Mut, F, G, DC> Nsga3Builder<S, Cross, Mut, F, G, DC>where
S: SamplingOperator,
RandomSelection: SelectionOperator<FDim = F::Dim>,
Nsga3ReferencePointsSurvival: SurvivalOperator<FDim = F::Dim>,
Cross: CrossoverOperator,
Mut: MutationOperator,
F: FitnessFn,
G: ConstraintsFn,
DC: PopulationCleaner,
impl<S, Cross, Mut, F, G, DC> Nsga3Builder<S, Cross, Mut, F, G, DC>where
S: SamplingOperator,
RandomSelection: SelectionOperator<FDim = F::Dim>,
Nsga3ReferencePointsSurvival: SurvivalOperator<FDim = F::Dim>,
Cross: CrossoverOperator,
Mut: MutationOperator,
F: FitnessFn,
G: ConstraintsFn,
DC: PopulationCleaner,
pub fn sampler(self, v: S) -> Self
pub fn crossover(self, v: Cross) -> Self
pub fn mutation(self, v: Mut) -> Self
pub fn selector(self, v: RandomSelection) -> Self
pub fn survivor(self, v: Nsga3ReferencePointsSurvival) -> Self
pub fn fitness_fn(self, v: F) -> Self
pub fn constraints_fn(self, v: G) -> Self
pub fn duplicates_cleaner(self, v: DC) -> Self
pub fn num_vars(self, v: usize) -> Self
pub fn population_size(self, v: usize) -> Self
pub fn num_offsprings(self, v: usize) -> Self
pub fn num_iterations(self, v: usize) -> Self
pub fn mutation_rate(self, v: f64) -> Self
pub fn crossover_rate(self, v: f64) -> Self
pub fn keep_infeasible(self, v: bool) -> Self
pub fn verbose(self, v: bool) -> Self
pub fn seed(self, v: u64) -> Self
pub fn build( self, ) -> Result<Nsga3<S, Cross, Mut, F, G, DC>, AlgorithmBuilderError>
Trait Implementations§
Source§impl<S, Cross, Mut, F, G, DC> Default for Nsga3Builder<S, Cross, Mut, F, G, DC>where
S: SamplingOperator,
Cross: CrossoverOperator,
Mut: MutationOperator,
F: FitnessFn<Dim = Ix2>,
G: ConstraintsFn,
DC: PopulationCleaner,
AlgorithmBuilder<S, RandomSelection, Nsga3ReferencePointsSurvival, Cross, Mut, F, G, DC>: Default,
impl<S, Cross, Mut, F, G, DC> Default for Nsga3Builder<S, Cross, Mut, F, G, DC>where
S: SamplingOperator,
Cross: CrossoverOperator,
Mut: MutationOperator,
F: FitnessFn<Dim = Ix2>,
G: ConstraintsFn,
DC: PopulationCleaner,
AlgorithmBuilder<S, RandomSelection, Nsga3ReferencePointsSurvival, Cross, Mut, F, G, DC>: Default,
Auto Trait Implementations§
impl<S, Cross, Mut, F, G, DC> Freeze for Nsga3Builder<S, Cross, Mut, F, G, DC>
impl<S, Cross, Mut, F, G, DC> RefUnwindSafe for Nsga3Builder<S, Cross, Mut, F, G, DC>where
S: RefUnwindSafe,
Cross: RefUnwindSafe,
Mut: RefUnwindSafe,
DC: RefUnwindSafe,
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<S, Cross, Mut, F, G, DC> Send for Nsga3Builder<S, Cross, Mut, F, G, DC>
impl<S, Cross, Mut, F, G, DC> Sync for Nsga3Builder<S, Cross, Mut, F, G, DC>
impl<S, Cross, Mut, F, G, DC> Unpin for Nsga3Builder<S, Cross, Mut, F, G, DC>
impl<S, Cross, Mut, F, G, DC> UnwindSafe for Nsga3Builder<S, Cross, Mut, F, G, DC>where
S: UnwindSafe,
Cross: UnwindSafe,
Mut: UnwindSafe,
DC: UnwindSafe,
F: UnwindSafe,
G: 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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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