public abstract class AbstractRanking extends AbstractComponent
AbstractSingleProblem
s can only use the AbsoluteRanking
component while AbstractMultiProblem
s 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, setXMLData
public 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.