Struct petri::algo::Simple [] [src]

pub struct Simple<G: Genome<C>, C: Clone + Sized, SOp: SelectOperator<G, C, O>, COp: CrossoverOperator<G, C>, MOp: MutateOperator<G, C>, EOp: Fn(&G) -> O, R: Rng, O: Ord + Clone> { /* fields omitted */ }

Methods

impl<G: Genome<C>, C: Clone + Sized, SOp: SelectOperator<G, C, O>, COp: CrossoverOperator<G, C>, MOp: MutateOperator<G, C>, EOp: Fn(&G) -> O, R: Rng, O: Ord + Clone> Simple<G, C, SOp, COp, MOp, EOp, R, O>
[src]

[src]

Trait Implementations

impl<G: Debug + Genome<C>, C: Debug + Clone + Sized, SOp: Debug + SelectOperator<G, C, O>, COp: Debug + CrossoverOperator<G, C>, MOp: Debug + MutateOperator<G, C>, EOp: Debug + Fn(&G) -> O, R: Debug + Rng, O: Debug + Ord + Clone> Debug for Simple<G, C, SOp, COp, MOp, EOp, R, O>
[src]

[src]

Formats the value using the given formatter.

impl<G: Genome<C>, C: Clone + Sized, SOp: SelectOperator<G, C, O>, COp: CrossoverOperator<G, C>, MOp: MutateOperator<G, C>, EOp: Fn(&G) -> O, R: Rng, O: Ord + Clone> EvolutionaryAlgorithm<G, C, SOp, COp, MOp, EOp, R, O> for Simple<G, C, SOp, COp, MOp, EOp, R, O>
[src]

[src]

Initialize the algorithm by generating a population

[src]

Advance to next generation

[src]

Current generation

[src]

Is the evolutationary algorithm done?