This is a relatively simple selection scheme for the genetic algorithms. More...
|SimpleSelect (GeneralRNG &LocalRandom, tProbabilityFunction myPF)|
|The constructor needs a random number generator and a function that returns probabilities. More...|
|Public Member Functions inherited from gplib::GeneralSelect|
This is a relatively simple selection scheme for the genetic algorithms.
This class implements a relatively simple, but efficient selection scheme. Each member is assigned the expected count from the probabilities returned by the Probability function rounded to full integers. The difference between the assigned count and the expected count without rounding is used as a probability to have an additional member in the new population.
The constructor needs a random number generator and a function that returns probabilities.
The constructor takes two parameters
|LocalRandom||A random number generator based on GeneralRNG|
|myPF||A pointer to a function that returns a vector with probabilities for each population member|