powered by
The Fitness Linear Scaling operator scales the fitness values using a linear regression model and performs the selection (Louis, 2019).
sellscale(fitvals, ns, sells, ...)
Vector of fitness values belonging to individuals
Number of individuals to be selected
Scaling factor
Further arguments passed to or from other methods.
The indices of randomly selected individuals are returned.
Louis, S.J. (2019). Scaling in Genetic Algorithms. URL https://www.cse.unr.edu/~sushil/class/gas/notes/scaling.pdf
select, selrand, selrswrp, selrws, selrws2, selrss, selsus, seldet, selwscale, selsscale, selsscale2, selrscale, selrscale2, selpscale, selescale, seltour, seltour2
select
selrand
selrswrp
selrws
selrws2
selrss
selsus
seldet
selwscale
selsscale
selsscale2
selrscale
selrscale2
selpscale
selescale
seltour
seltour2
# NOT RUN { fitvals = c(6.1, 3.5, 6.2, 4.4, 5.2) cnames = paste0("C",1:length(fitvals)) matpool = sellscale(fitvals) cat(cnames[matpool],"\n") # }
Run the code above in your browser using DataLab