pub trait GeneticAlgorithm<T: GASolution> {
// Required methods
fn config(&mut self) -> &dyn GAConfig;
fn population(&mut self) -> &mut GAPopulation<T>;
// Provided methods
fn initialize(&mut self) { ... }
fn step(&mut self) -> i32 { ... }
fn done(&mut self) -> bool { ... }
fn initialize_internal(&mut self) { ... }
fn step_internal(&mut self) -> i32 { ... }
fn done_internal(&mut self) -> bool { ... }
}Expand description
Genetic Algorithm