Tournament {xegaSelectGene} | R Documentation |
k
.Tournament
is implemented in two steps:
A subset of size k of the population is selected with uniform probability.
A gene is selected with probability proportional to fitness.
Tournament(fit, lF)
fit |
Fitness vector. |
lF |
Local configuration. |
In each generation, the worst gene in a population dies.
Index of the best candidate.
fit<-sample(10, 15, replace=TRUE)
Tournament(fit, NewlFselectGenes())