Rutger Vos
and 1 contributors

NAME

Algorithm::Genetic::Diploid::Population - A population of individuals that turns over

METHODS

new

Constructor takes named arguments, creates a default, empty list of individuals

individuals

Getter and setter for the list of individuals

turnover

Moves the population on to the next generation, i.e. 1. compute fitness of all individuals 2. mate up to reproduction rate in proportion to fitness