| SelectPropFit | R Documentation |
O(n^2).SelectPropFit() implements selection
proportional to fitness. Negative fitness
vectors are shifted to R^+.
The default of the function lF$Offset() is 1.
Holland's schema theorem uses this selection function.
See John Holland (1975) for further information.
SelectPropFit(fit, lF, size = 1)
fit |
Fitness vector. |
lF |
Local configuration. |
size |
Number of selected genes. Default: 1. |
The index vector of the selected genes.
There is a potential slow for-loop in the code.
Holland, John (1975): Adaptation in Natural and Artificial Systems, The University of Michigan Press, Ann Arbor. (ISBN:0-472-08460-7)
Other Selection Functions:
SelectDuel(),
SelectLRSelective(),
SelectLinearRankTSR(),
SelectPropFitDiff(),
SelectPropFitDiffM(),
SelectPropFitDiffOnln(),
SelectPropFitM(),
SelectPropFitOnln(),
SelectSTournament(),
SelectSUS(),
SelectTournament(),
SelectUniform(),
SelectUniformP()
fit<-sample(10, 15, replace=TRUE)
SelectPropFit(fit, NewlFselectGenes())
SelectPropFit(fit, NewlFselectGenes(), length(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.