SelectUniformP {xegaSelectGene} | R Documentation |
Selection with uniform probability without replacement.
Description
SelectUniformP
implements selection
by choosing a gene with equal probability without
replacement.
Usage:
-
To specify mating behavior in crossover operators.
-
For computer experiments without selection pressure.
Usage
SelectUniformP(fit, lF, size = 1)
Arguments
fit |
Fitness vector. |
lF |
Local configuration. |
size |
Number of selected genes. Default: 1. |
Details
Selection without replacement guarantees that vectors of different indices are selected. A vector of the size of the population is a permutation of indices. This property is needed for the classic variant of differential evolution.
Value
The index vector of the selected genes.
References
Price, Kenneth V., Storn, Rainer M. and Lampinen, Jouni A. (2005) The Differential Evolution Algorithm (Chapter 2), pp. 37-134. In: Differential Evolution. A Practical Approach to Global Optimization. Springer, Berlin. <doi:10.1007/3-540-31306-0>
See Also
Other Selection Functions:
SelectDuel()
,
SelectLRSelective()
,
SelectLinearRankTSR()
,
SelectPropFitDiffM()
,
SelectPropFitDiffOnln()
,
SelectPropFitDiff()
,
SelectPropFitM()
,
SelectPropFitOnln()
,
SelectPropFit()
,
SelectSTournament()
,
SelectSUS()
,
SelectTournament()
,
SelectUniform()
Examples
fit<-sample(10, 15, replace=TRUE)
SelectUniformP(fit, NewlFselectGenes())
SelectUniformP(fit, NewlFselectGenes(), length(fit))