SelectionOperatorIfc

Strategy interface for the selection step of a genetic algorithm. Given the current evaluated population, a selection operator chooses the parents (the mating pool) that will be recombined to produce the next generation. Operators draw any required randomness through the supplied solver's single random number stream (GeneticAlgorithmSolver.rnStream), keeping a run reproducible.

Inheritors

Functions

Link copied to clipboard
abstract fun select(population: List<Solution>, numToSelect: Int, solver: GeneticAlgorithmSolver): List<Solution>

Selects parents from the current evaluated population.