Enum darwin_rs::SimulationType
[−]
[src]
pub enum SimulationType { EndIteration(u32), EndFittness(f64), EndFactor(f64), }
The SimulationType
type. Speficies the criteria on how a simulation should stop.
Variants
EndIteration(u32)
Finish the simulation when a number of iteration has been reached.
EndFittness(f64)
Finish the simulation when a specific fittness is rached.
That means if at least one of the individuals has this fittness.
The fittness is calculated using the implemented calculate_fittness
functions
of the Individual
trait
EndFactor(f64)
Finish the simulation when a specific improvement factor is reached. That means the relation between the very first fittness and the current fittness of the fittest individual
Trait 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