Enum darwin_rs::simulation::SimulationType [] [src]

pub enum SimulationType {
    EndIteration(u32),
    EndFitness(f64),
    EndFactor(f64),
}

The SimulationType type. Speficies the criteria on how a simulation should stop.

Variants

EndIteration

Finish the simulation when a number of iteration has been reached.

EndFitness

Finish the simulation when a specific fitness is rached. That means if at least one of the individuals has this fitness. The fitness is calculated using the implemented calculate_fitness functions of the Individual trait

EndFactor

Finish the simulation when a specific improvement factor is reached. That means the relation between the very first fitness and the current fitness of the fittest individual

Trait Implementations

Derived Implementations

impl Clone for SimulationType
[src]

fn clone(&self) -> SimulationType

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

impl Debug for SimulationType
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.