pub trait TerminationCriterion<G: EvolutionaryGenome, F: FitnessValue = f64>: Send + Sync {
// Required methods
fn should_terminate(&self, state: &EvolutionState<'_, G, F>) -> bool;
fn reason(&self) -> &'static str;
}Expand description
Termination criterion trait
Required Methods§
Sourcefn should_terminate(&self, state: &EvolutionState<'_, G, F>) -> bool
fn should_terminate(&self, state: &EvolutionState<'_, G, F>) -> bool
Check if evolution should terminate