pub struct HillClimbConfig {
pub variant: HillClimbVariant,
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>,
}
Fields§
§variant: HillClimbVariant
§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>
Implementations§
Trait Implementations§
Source§impl Default for HillClimbConfig
impl Default for HillClimbConfig
Source§impl Display for HillClimbConfig
impl Display for HillClimbConfig
Source§impl StrategyConfig for HillClimbConfig
impl StrategyConfig for HillClimbConfig
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 HillClimbConfig
impl RefUnwindSafe for HillClimbConfig
impl Send for HillClimbConfig
impl Sync for HillClimbConfig
impl Unpin for HillClimbConfig
impl UnwindSafe for HillClimbConfig
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