[][src]Enum oxigen::stop_criteria::StopCriteria

pub enum StopCriteria {
    SolutionFound,
    SolutionsFound(usize),
    SolutionsFoundOrGeneration(usizeu64),
    Generation(u64),
    Progress(f64),
    GenerationAndProgress(u64f64),
    MaxFitness(f64),
    MinFitness(f64),
    AvgFitness(f64),
}

Provided stop criteria.

Variants

SolutionFound

Stop when a solution has been found.

SolutionsFound(usize)

Stop when this number of solutions have been found.

SolutionsFoundOrGeneration(usizeu64)

Stop when the specified solutions have been found or a specific generation, what happens before

Generation(u64)

Stop in a specific generation.

Progress(f64)

Stop when the mean progress in the last generations is lower than a specific threshold.

GenerationAndProgress(u64f64)

Stop when the generation is bigger than the first value and the mean progress in the last generations is lower than the specific threshold specified as the second value.

MaxFitness(f64)

Stop when the max fitness is bigger or equal than a specific threshold.

MinFitness(f64)

Stop when the min fitness is bigger or equal than a specific threshold.

AvgFitness(f64)

Stop when the average fitness is bigger or equal than a specific threshold.

Trait Implementations

impl StopCriterion for StopCriteria[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,