The fitness probability of individuals is multiplied by the population size to calculate the number of times the individual will reproduce in the mating pool, ie the expected number of copies. The expected number of copies is a fractional number. An exact fraction of the expected number of copies of the individual is sent to the mating pool. It is also determined whether it can go back to the mating pool for the fraction part (Brindle, 1981).
Usage
selrss(fitvals, ns, ...)
Arguments
fitvals
Vector of fitness values belonging to individuals
ns
Number of individuals to be selected
…
Further arguments passed to or from other methods.
Value
The indices of randomly selected individuals are returned.
References
Brindle, A. (1981). Genetic algorithms for function optimization. PhD thesis, University of Alberta.