| SelectTournament | R Documentation |
SelectTournament() implements selection
by doing a tournament between lF$TournamentSize()
randomly selected genes. The best gene always wins.
The default of lF$TournamentSize() is 2. This
is the version with the least selection pressure.
lF$TournamentSize() must be less
than the population size.
SelectTournament(fit, lF, size = 1)
fit |
Fitness vector. |
lF |
Local configuration. |
size |
Number of selected genes. Default: |
The index vector of the selected genes.
Other Selection Functions:
SelectDuel(),
SelectLRSelective(),
SelectLinearRankTSR(),
SelectPropFit(),
SelectPropFitDiff(),
SelectPropFitDiffM(),
SelectPropFitDiffOnln(),
SelectPropFitM(),
SelectPropFitOnln(),
SelectSTournament(),
SelectSUS(),
SelectUniform(),
SelectUniformP()
fit<-sample(10, 15, replace=TRUE)
SelectTournament(fit, NewlFselectGenes())
SelectTournament(fit, NewlFselectGenes(), length(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.