The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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