select | R Documentation |
This utility functions expect a control object, a matrix of
fitness values - each column containing the fitness value(s) of one individual -
and the number of individuals to select.
The corresponding selector, i.e., mating selector for selectForMating
or survival selector for selectForSurvival
is than called internally
and a vector of indizes of selected individuals is returned.
selectForMating(control, fitness, n.select)
selectForSurvival(control, fitness, n.select)
control |
[ |
fitness |
[ |
n.select |
[ |
Both functions check the optimization directions stored in the task
inside the control object, i.e., whether to minimize or maximize each objective,
and transparently prepare/transform the fitness
matrix for the selector.
[integer
] Integer vector with the indizes of selected individuals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.