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 max_generations: Option<usize>,
pub valid_fitness_score: Option<FitnessValue>,
pub fitness_cache: Option<FitnessCache>,
pub target_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>§max_generations: Option<usize>§valid_fitness_score: Option<FitnessValue>§fitness_cache: Option<FitnessCache>§target_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 fitness_cache(&self) -> Option<&FitnessCache>
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