Struct revonet::settings::EASettings [] [src]

pub struct EASettings {
    pub rng_seed: u32,
    pub pop_size: u32,
    pub param_count: u32,
    pub gen_count: u32,
    pub tour_size: u32,
    pub use_elite: bool,
    pub x_type: CrossoverOperator,
    pub x_prob: f32,
    pub x_alpha: f32,
    pub mut_type: MutationOperator,
    pub mut_prob: f32,
    pub mut_sigma: f32,
}

Settings for evolutionary algorithm.

Fields

Seed for RNG.

Population size.

Number of parameters/genes for the problem.

Number of generations.

tournament size for tournament selection.

Flag indicating whether elitism is to be used or not.

If true then the best individual in current generation is copied to the next generation.

Type of the crossover.

Crossover probability.

Crossover parameter.

Mutation probability.

Mutation probability.

Mutation parameter.

Methods

impl EASettings
[src]

Create default settings using some parameters.

The default values are as follows: * tour_size = 3 * use_elite = true * x_type = CrossoverOperator::BlxAlpha * x_prob = 0.7f32 * x_alpha = 0.1f32 * mut_prob = 1f32 / param_count * mut_sigma = 0.1f32

Arguments:

  • pop_size - population size.
  • gen_count - number of generations.
  • param_count - number of genes / problem parameters.

Trait Implementations

impl Clone for EASettings
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for EASettings
[src]

Formats the value using the given formatter.