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

pub enum SimulationType {

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


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

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.

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

impl Debug for SimulationType

Formats the value using the given formatter.

impl Clone for SimulationType

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more