pub struct ReveaBuilder<S, Cross, Mut, F, G>where
S: SamplingOperator,
RandomSelection: SelectionOperator<FDim = F::Dim>,
ReveaReferencePointsSurvival: SurvivalOperator<FDim = F::Dim>,
Cross: CrossoverOperator,
Mut: MutationOperator,
F: FitnessFn,
G: ConstraintsFn,{ /* private fields */ }Implementations§
Source§impl<S, Cross, Mut, F, G> ReveaBuilder<S, Cross, Mut, F, G>where
S: SamplingOperator,
RandomSelection: SelectionOperator<FDim = F::Dim>,
ReveaReferencePointsSurvival: SurvivalOperator<FDim = F::Dim>,
Cross: CrossoverOperator,
Mut: MutationOperator,
F: FitnessFn,
G: ConstraintsFn,
impl<S, Cross, Mut, F, G> ReveaBuilder<S, Cross, Mut, F, G>where
S: SamplingOperator,
RandomSelection: SelectionOperator<FDim = F::Dim>,
ReveaReferencePointsSurvival: SurvivalOperator<FDim = F::Dim>,
Cross: CrossoverOperator,
Mut: MutationOperator,
F: FitnessFn,
G: ConstraintsFn,
pub fn reference_points(self, v: Array2<f64>) -> Self
pub fn alpha(self, v: f64) -> Self
pub fn frequency(self, v: f64) -> Self
pub fn sampler(self, v: S) -> Self
pub fn crossover(self, v: Cross) -> Self
pub fn mutation(self, v: Mut) -> Self
pub fn repair(self, v: impl RepairOperator + 'static) -> Self
pub fn selector(self, v: RandomSelection) -> Self
pub fn survivor(self, v: ReveaReferencePointsSurvival) -> Self
pub fn fitness_fn(self, v: F) -> Self
pub fn constraints_fn(self, v: G) -> Self
pub fn duplicates_cleaner(self, v: impl PopulationCleaner + 'static) -> 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<Revea<S, Cross, Mut, F, G>, AlgorithmBuilderError>
Trait Implementations§
Source§impl<S, Cross, Mut, F, G> Default for ReveaBuilder<S, Cross, Mut, F, G>where
S: SamplingOperator,
RandomSelection: SelectionOperator<FDim = F::Dim>,
ReveaReferencePointsSurvival: SurvivalOperator<FDim = F::Dim>,
Cross: CrossoverOperator,
Mut: MutationOperator,
F: FitnessFn,
G: ConstraintsFn,
AlgorithmBuilder<S, RandomSelection, ReveaReferencePointsSurvival, Cross, Mut, F, G>: Default,
impl<S, Cross, Mut, F, G> Default for ReveaBuilder<S, Cross, Mut, F, G>where
S: SamplingOperator,
RandomSelection: SelectionOperator<FDim = F::Dim>,
ReveaReferencePointsSurvival: SurvivalOperator<FDim = F::Dim>,
Cross: CrossoverOperator,
Mut: MutationOperator,
F: FitnessFn,
G: ConstraintsFn,
AlgorithmBuilder<S, RandomSelection, ReveaReferencePointsSurvival, Cross, Mut, F, G>: Default,
Auto Trait Implementations§
impl<S, Cross, Mut, F, G> !RefUnwindSafe for ReveaBuilder<S, Cross, Mut, F, G>
impl<S, Cross, Mut, F, G> !Send for ReveaBuilder<S, Cross, Mut, F, G>
impl<S, Cross, Mut, F, G> !Sync for ReveaBuilder<S, Cross, Mut, F, G>
impl<S, Cross, Mut, F, G> !UnwindSafe for ReveaBuilder<S, Cross, Mut, F, G>
impl<S, Cross, Mut, F, G> Freeze for ReveaBuilder<S, Cross, Mut, F, G>
impl<S, Cross, Mut, F, G> Unpin for ReveaBuilder<S, Cross, Mut, F, G>
impl<S, Cross, Mut, F, G> UnsafeUnpin for ReveaBuilder<S, Cross, Mut, F, G>
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> 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