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: fn(Individual<T>) -> i32
Fitness function used to calculate the score of an Individual
population_size: usize
Size of the Population
genenumber: usize
Number of genes of each Individual
uniform_rate: f32
Parameter used by the crossover function
mutation_rate: f32
Parameter used by the mutate function
tournmant_size: usize
Size of the set used to select the parent of the offsprings
elitism_size: usize
Number of Individual to copy in the next generation
threadpool_size: usize
Number of thread used during the evolve function
Trait Implementations
impl<T: Clone + 'static> Clone for PopulationConfiguration<T>
[src]
fn clone(&self) -> PopulationConfiguration<T>
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