seltour2 | R Documentation |
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).
seltour2(fitvals, ns, selt, reptype, ...)
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. |
The indices of randomly selected individuals are returned.
Zeynel Cebeci & Erkut Tekeli
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.
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
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.