public abstract class AbstractRanking extends AbstractComponent
AbstractSingleProblems can only use the AbsoluteRanking component while AbstractMultiProblems can use various more sophisticated algorithms.
| Constructor and Description |
|---|
AbstractRanking() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
sortCandidates(java.util.ArrayList<AbstractRepresentation> representations,
ProblemXMLData problem,
java.util.Random random)
Sorts the given array of representations in a descending order of fitness and returns the number of evaluation that was required for the ranking to finish.
|
getProperties, getPropertyValue, getTypeOfProperty, getXMLData, setProperties, setXMLDatapublic abstract int sortCandidates(java.util.ArrayList<AbstractRepresentation> representations, ProblemXMLData problem, java.util.Random random)
representations - The population to be sorted.problem - The problem descriptor to be used for evaluation.random - The random generator object used for sorting.