View source: R/geneticoperator.R
| rmoo_tourSelection | R Documentation |
Binarily o por pref
rmoo_tourSelection(object, k = 2, ...)
rmooreal_tourSelection(object, k = 2, ...)
rmoobin_tourSelection(object, k = 2, ...)
rmooperm_tourSelection(object, k = 2, ...)
object |
MOEA object with slots population, fitness, front, popSize. |
k |
Tournament size. |
... |
Argument which all the values necessary for the configuration will be passed as parameters. The user is encouraged to see the documentations. |
List with population and fitness subsets.
## Not run:
# Creamos un "dummy" objeto mÃnimo
object <- list(
population = matrix(runif(20), nrow=5),
fitness = matrix(runif(10), nrow=5),
front = matrix(sample(1:2, 5, TRUE), ncol=1),
crowdingDistance = runif(5),
popSize = 5
)
class(object) <- "nsga2"
# Llamamos al selector
sel <- rmoo_tourSelection(object, k = 2)
str(sel)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.