Enum cmaes::options::CMAESEndConditions
[−]
[src]
pub enum CMAESEndConditions { StableGenerations(f64, usize), FitnessThreshold(f64), MaxGenerations(usize), MaxEvaluations(usize), }
An enum representing a condition under which to terminate the CMA-ES algorithm.
Variants
StableGenerations(f64, usize)
Terminate if best fitness changes by less than some amount for some amount of generations. Usage: StableGenerations(/* fitness /, / generations */)
FitnessThreshold(f64)
Terminate if best fitness is under some amount. Usage: FitnessThreshold(/* fitness */)
MaxGenerations(usize)
Terminate after the generation count reaches a number. Usage: MaxGenerations(/* generations */)
MaxEvaluations(usize)
Terminate after calling the fitness function some amount of times. Usage: MaxEvaluations(/* calls */)
Trait Implementations
impl Clone for CMAESEndConditions
[src]
fn clone(&self) -> CMAESEndConditions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more