Description Usage Arguments Value Author(s) Examples
This function ranks individuals represented by their associated cost, to be *minimized*, and returns a vector FitnV containing the corresponding individual fitnesses. For multiple subpopulations the ranking is performed separately for each subpopulation.
1 |
ObjV |
a vector containing the objective values of the individuals in the current population (cost values). |
RFun |
if set RFun to a number range in [1, 2], linear ranking is assumed and the value indicates the selective pressure. If RFun is set to a 2 elements vector, then RFun[1] indicates the selective pressure and RFun[2] indicates the ranking method, when RFun[2] = 0, linear ranking is used, when RFun[2] = 1, non-linear ranking is used. If RFun is a vector with length(RFun) > 2, it will contain the fitness to be assigned to each rank. It should have the same length as ObjV. Usually RFun is monotonously increasing. If RFun is omitted, linear ranking and a selective pressure of 2 are assumed. |
SUBPOP |
an optional number indicating subpopulations. Default is set to 1 subpopulation. |
a vector containing the fitness values of the individuals in the current population.
The original matlab implementation of ranking was written by Hartmut Pohlheim and Carlos Fonseca. The R implementation was written by David Zhao.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.