Struct genetic_algorithm::strategy::evolve::EvolveConfig
source · pub struct EvolveConfig {
pub target_population_size: usize,
pub max_stale_generations: Option<usize>,
pub max_chromosome_age: Option<usize>,
pub target_fitness_score: Option<FitnessValue>,
pub valid_fitness_score: Option<FitnessValue>,
pub fitness_ordering: FitnessOrdering,
pub par_fitness: bool,
pub replace_on_equal_fitness: bool,
}
Fields§
§target_population_size: usize
§max_stale_generations: Option<usize>
§max_chromosome_age: Option<usize>
§target_fitness_score: Option<FitnessValue>
§valid_fitness_score: Option<FitnessValue>
§fitness_ordering: FitnessOrdering
§par_fitness: bool
§replace_on_equal_fitness: bool
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
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