Struct genetic_algorithm::strategy::evolve::EvolveConfig   
source · pub struct EvolveConfig {
    pub variant: EvolveVariant,
    pub fitness_ordering: FitnessOrdering,
    pub par_fitness: bool,
    pub replace_on_equal_fitness: bool,
    pub target_fitness_score: Option<FitnessValue>,
    pub max_stale_generations: Option<usize>,
    pub valid_fitness_score: Option<FitnessValue>,
    pub target_population_size: usize,
    pub selected_population_size: usize,
    pub max_chromosome_age: Option<usize>,
}Fields§
§variant: EvolveVariant§fitness_ordering: FitnessOrdering§par_fitness: bool§replace_on_equal_fitness: bool§target_fitness_score: Option<FitnessValue>§max_stale_generations: Option<usize>§valid_fitness_score: Option<FitnessValue>§target_population_size: usize§selected_population_size: usize§max_chromosome_age: Option<usize>Implementations§
source§impl EvolveConfig
 
impl EvolveConfig
Trait Implementations§
source§impl Default for EvolveConfig
 
impl Default for EvolveConfig
source§impl Display for EvolveConfig
 
impl Display for EvolveConfig
source§impl StrategyConfig for EvolveConfig
 
impl StrategyConfig for EvolveConfig
fn fitness_ordering(&self) -> FitnessOrdering
fn par_fitness(&self) -> bool
fn replace_on_equal_fitness(&self) -> bool
fn variant(&self) -> StrategyVariant
Auto Trait Implementations§
impl Freeze for EvolveConfig
impl RefUnwindSafe for EvolveConfig
impl Send for EvolveConfig
impl Sync for EvolveConfig
impl Unpin for EvolveConfig
impl UnwindSafe for EvolveConfig
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