sellrs {adana} | R Documentation |
Linear Ranking Selection 1
Description
The Linear Ranking Selection operator selects via probabilities obtained using ordered numbers according to their fitness values (Pohlheim, 2020).
Usage
sellrs(fitvals, ns, sels, ...)
Arguments
fitvals |
Vector of fitness values belonging to individuals |
ns |
Number of individuals to be selected |
sels |
Selection pressure, ( |
... |
Further arguments passed to or from other methods. |
Value
The indices of randomly selected individuals are returned.
Author(s)
Zeynel Cebeci & Erkut Tekeli
References
Pohlheim, H. (2020). Tutorial for "GEATbx: Genetic and Evolutionary Algorithms Toolbox for use with MATLAB", Version 3.30, URL http://www.geatbx.com/ver_3_3/algindex-02html#P181_11564.
See Also
select
,
selrand
,
selrswrp
,
selrws
,
selrws2
,
selrss
,
selsus
,
seldet
,
selwscale
,
selsscale
,
selsscale2
,
sellscale
,
selrscale
,
selrscale2
,
selpscale
,
selescale
,
seltour
,
seltour2
,
selboltour
Examples
fitvals = c(6.1, 3.5, 6.2, 4.4, 5.2) # Fitness Values
cnames = paste0("C",1:length(fitvals)) # Chromosome Names
matpool = sellrs(fitvals)
cat(cnames[matpool],"\n")
matpool = sellrs(fitvals, sels=2)
cat(cnames[matpool],"\n")