Struct genetic_planner::genetic::PopulationConfiguration [] [src]

pub struct PopulationConfiguration<T: 'static> {
    pub fitness: fn(_: Individual<T>) -> i32,
    pub population_size: usize,
    pub genenumber: usize,
    pub uniform_rate: f32,
    pub mutation_rate: f32,
    pub tournmant_size: usize,
    pub elitism_size: usize,
    pub threadpool_size: usize,
}

Rappresent the configuration associated to a Population

Fields

Fitness function used to calculate the score of an Individual

Size of the Population

Number of genes of each Individual

Parameter used by the crossover function

Parameter used by the mutate function

Size of the set used to select the parent of the offsprings

Number of Individual to copy in the next generation

Number of thread used during the evolve function

Trait Implementations

impl<T: Clone + 'static> Clone for PopulationConfiguration<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more