Struct oxigen::GeneticExecution[][src]

pub struct GeneticExecution<T, Ind: Genotype<T>> { /* fields omitted */ }

Struct that defines a genetic algorithm execution.

Methods

impl<T, Ind: Genotype<T>> GeneticExecution<T, Ind>
[src]

Creates a new default genetic algorithm execution.

Sets the population size.

Sets the genotype size.

Sets the mutation rate.

Sets the number of tournament stages whose individuals are selected for crossover.

Sets the selection function of the genetic algorithm.

Sets the age function of the genetic algorithm.

Sets the crossover function of the genetic algorithm.

Sets the survival pressure function of the genetic algorithm.

Sets the stop criterion of the genetic algorithm.

Sets the cache fitness flag.

Sets the progress log.

Sets the progress log.

Run the genetic algorithm executiion until the stop_criterion is satisfied.

Returns

  • A vector with the individuals of the population that are solution of the problem.
  • The number of generations run.
  • The average progress in the last generations.

Trait Implementations

impl<T, Ind: Genotype<T>> Default for GeneticExecution<T, Ind>
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<T, Ind> Send for GeneticExecution<T, Ind> where
    <Ind as Genotype<T>>::ProblemSize: Send

impl<T, Ind> Sync for GeneticExecution<T, Ind> where
    <Ind as Genotype<T>>::ProblemSize: Sync