[][src]Trait optlib::genetic::StopChecker

pub trait StopChecker<T: Clone> {
    fn can_stop(&mut self, population: &Population<T>) -> bool;
}

The trait with break criterion of genetic algorithm.

T - type of a point in the search space for goal function (chromosomes).

Required methods

fn can_stop(&mut self, population: &Population<T>) -> bool

The method must return true if genetic algorithm must be stopped.

Loading content...

Implementors

impl<T: Clone> StopChecker<T> for CompositeAll<T>[src]

impl<T: Clone> StopChecker<T> for CompositeAny<T>[src]

impl<T: Clone> StopChecker<T> for GoalNotChange[src]

impl<T: Clone> StopChecker<T> for MaxIterations[src]

impl<T: Clone> StopChecker<T> for Threshold[src]

Loading content...