| SelectTournament {xegaSelectGene} | R Documentation |
Tournament selection.
Description
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.
Usage
SelectTournament(fit, lF, size = 1)
Arguments
fit |
Fitness vector. |
lF |
Local configuration. |
size |
Number of selected genes. Default: |
Value
The index vector of the selected genes.
See Also
Other Selection Functions:
SelectDuel(),
SelectLRSelective(),
SelectLinearRankTSR(),
SelectPropFitDiffM(),
SelectPropFitDiffOnln(),
SelectPropFitDiff(),
SelectPropFitM(),
SelectPropFitOnln(),
SelectPropFit(),
SelectSTournament(),
SelectSUS(),
SelectUniformP(),
SelectUniform()
Examples
fit<-sample(10, 15, replace=TRUE)
SelectTournament(fit, NewlFselectGenes())
SelectTournament(fit, NewlFselectGenes(), length(fit))
[Package xegaSelectGene version 1.0.0.0 Index]