pub fn evolve_population(
initial_population: Solutions,
n_generations: usize,
size_generation: usize,
function: &Function,
n_jobs: usize,
) -> SolutionsExpand description
Given an initial population evolve it for n_generations while keeping size_generation
individuals. The final population will be returned.
ยงArguments
initial_population- Your initial population that should be evolved.n_generations- How many times should your population be evolved?size_generation- How many individuals should be kept after evolving it.distance_matrix- The distance matrix on which the fitness will be computed on.