1 2 3 4 5 6 7 8 9 10 11 12 13
//! solution strategies for finding the best chromosomes.
pub mod evolve;
pub mod hill_climb;
pub mod permutate;
use crate::chromosome::Chromosome;
use crate::genotype::Genotype;
use rand::Rng;
pub trait Strategy<G: Genotype> {
fn call<R: Rng>(&mut self, rng: &mut R);
fn best_chromosome(&self) -> Option<Chromosome<G>>;
}