seltour2 {adana} | R Documentation |
Tournament Selection 2
Description
Each individual is given a chance to participate in the tournament at least once in selection by tournament in this function. For this reason, individuals participating in the tournament cannot participate in another tournament, but after the tournament of all individuals is completed, they can get a chance to participate in another tournament (Nicolau, 2009).
Usage
seltour2(fitvals, ns, selt, reptype, ...)
Arguments
fitvals |
Vector of fitness values belonging to individuals |
ns |
Number of individuals to be selected |
selt |
Number of tournament size |
reptype |
Type of Sampling, |
... |
Further arguments passed to or from other methods. |
Value
The indices of randomly selected individuals are returned.
Author(s)
Zeynel Cebeci & Erkut Tekeli
References
Nicolau, M. (2009). Application of a simple binary genetic algorithm to a noiseless testbed benchmark. In Proc. genetic and Evolutionary Computation Conf. (GECCO), Montreal, Canada.
See Also
select
,
selrand
,
selrswrp
,
selrws
,
selrws2
,
selrss
,
selsus
,
seldet
,
selwscale
,
selsscale
,
selsscale2
,
sellscale
,
selrscale
,
selrscale2
,
selpscale
,
selescale
,
seltour
,
selboltour
,
sellrs
,
sellrs2
,
sellrs3
,
selnlrs
,
selers
,
seltrunc
,
select
Examples
selt = 2 # Size of tournament
fitvals = c(6, -1, 2, 4, 5) # Fitness values
cnames = paste0("C",1:length(fitvals)) # Chromosome names
matpool = seltour2(fitvals, selt=selt)
cat(cnames[matpool],"\n")