pub struct InteractiveGABuilder<G, S, C, M>where
G: EvolutionaryGenome,{ /* private fields */ }Expand description
Builder for InteractiveGA
Implementations§
Source§impl<G> InteractiveGABuilder<G, (), (), ()>where
G: EvolutionaryGenome,
impl<G> InteractiveGABuilder<G, (), (), ()>where
G: EvolutionaryGenome,
Source§impl<G, S, C, M> InteractiveGABuilder<G, S, C, M>where
G: EvolutionaryGenome,
impl<G, S, C, M> InteractiveGABuilder<G, S, C, M>where
G: EvolutionaryGenome,
Sourcepub fn population_size(self, size: usize) -> Self
pub fn population_size(self, size: usize) -> Self
Set the population size
Sourcepub fn elitism_count(self, count: usize) -> Self
pub fn elitism_count(self, count: usize) -> Self
Set the elitism count
Sourcepub fn crossover_probability(self, prob: f64) -> Self
pub fn crossover_probability(self, prob: f64) -> Self
Set the crossover probability
Sourcepub fn mutation_probability(self, prob: f64) -> Self
pub fn mutation_probability(self, prob: f64) -> Self
Set the mutation probability
Sourcepub fn evaluation_mode(self, mode: EvaluationMode) -> Self
pub fn evaluation_mode(self, mode: EvaluationMode) -> Self
Set the evaluation mode
Sourcepub fn batch_size(self, size: usize) -> Self
pub fn batch_size(self, size: usize) -> Self
Set the batch size
Sourcepub fn select_count(self, count: usize) -> Self
pub fn select_count(self, count: usize) -> Self
Set the select count for batch selection mode
Sourcepub fn min_coverage(self, coverage: f64) -> Self
pub fn min_coverage(self, coverage: f64) -> Self
Set the minimum coverage threshold
Sourcepub fn comparisons_per_candidate(self, count: usize) -> Self
pub fn comparisons_per_candidate(self, count: usize) -> Self
Set comparisons per candidate for pairwise mode
Sourcepub fn max_generations(self, max: usize) -> Self
pub fn max_generations(self, max: usize) -> Self
Set maximum generations (0 = unlimited)
Sourcepub fn aggregation_model(self, model: AggregationModel) -> Self
pub fn aggregation_model(self, model: AggregationModel) -> Self
Set the aggregation model
Sourcepub fn selection_strategy(self, strategy: SelectionStrategy) -> Self
pub fn selection_strategy(self, strategy: SelectionStrategy) -> Self
Sourcepub fn bounds(self, bounds: MultiBounds) -> Self
pub fn bounds(self, bounds: MultiBounds) -> Self
Set the search space bounds
Sourcepub fn selection<NewS>(
self,
selection: NewS,
) -> InteractiveGABuilder<G, NewS, C, M>where
NewS: SelectionOperator<G>,
pub fn selection<NewS>(
self,
selection: NewS,
) -> InteractiveGABuilder<G, NewS, C, M>where
NewS: SelectionOperator<G>,
Set the selection operator
Sourcepub fn crossover<NewC>(
self,
crossover: NewC,
) -> InteractiveGABuilder<G, S, NewC, M>where
NewC: CrossoverOperator<G>,
pub fn crossover<NewC>(
self,
crossover: NewC,
) -> InteractiveGABuilder<G, S, NewC, M>where
NewC: CrossoverOperator<G>,
Set the crossover operator
Sourcepub fn mutation<NewM>(
self,
mutation: NewM,
) -> InteractiveGABuilder<G, S, C, NewM>where
NewM: MutationOperator<G>,
pub fn mutation<NewM>(
self,
mutation: NewM,
) -> InteractiveGABuilder<G, S, C, NewM>where
NewM: MutationOperator<G>,
Set the mutation operator
Source§impl<G, S, C, M> InteractiveGABuilder<G, S, C, M>where
G: EvolutionaryGenome + Clone + Send + Sync,
S: SelectionOperator<G>,
C: CrossoverOperator<G>,
M: MutationOperator<G>,
impl<G, S, C, M> InteractiveGABuilder<G, S, C, M>where
G: EvolutionaryGenome + Clone + Send + Sync,
S: SelectionOperator<G>,
C: CrossoverOperator<G>,
M: MutationOperator<G>,
Sourcepub fn build(self) -> Result<InteractiveGA<G, S, C, M>, EvolutionError>
pub fn build(self) -> Result<InteractiveGA<G, S, C, M>, EvolutionError>
Build the InteractiveGA
Trait Implementations§
Auto Trait Implementations§
impl<G, S, C, M> Freeze for InteractiveGABuilder<G, S, C, M>
impl<G, S, C, M> RefUnwindSafe for InteractiveGABuilder<G, S, C, M>
impl<G, S, C, M> Send for InteractiveGABuilder<G, S, C, M>
impl<G, S, C, M> Sync for InteractiveGABuilder<G, S, C, M>
impl<G, S, C, M> Unpin for InteractiveGABuilder<G, S, C, M>
impl<G, S, C, M> UnsafeUnpin for InteractiveGABuilder<G, S, C, M>
impl<G, S, C, M> UnwindSafe for InteractiveGABuilder<G, S, C, M>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.