public class Ranking
extends java.lang.Object
Algorithm for the discovery of rules describing subgroups. This class implements some facilities for ranking solutions. Given a Population object, their solutions are ranked according to scheme proposed in NSGA-II; as a result, a set of subsets are obtained. The subsets are numbered starting from 0 (in NSGA-II, the numbering starts from 1); thus, subset 0 contains the non-dominated solutions, subset 1 contains the non-dominated solutions after removing those belonging to subset 0, and so on.
Constructor and Description |
---|
Ranking(Population pop,
TableVar Variables,
int nobj,
int neje,
java.lang.String RulRep,
java.lang.String SDomin)
Constructor of the Ranking
|
Modifier and Type | Method and Description |
---|---|
int |
compareConstraint(Individual a,
Individual b)
Gets the comparison constraint
|
int |
compareDominance(Individual a,
int posa,
Individual b,
int posb,
int nobj,
java.lang.String SDomin)
Gets the comparison Dominance
|
int |
getNumberOfSubfronts()
Returns the total number of subFronts founds.
|
Population |
getSubfront(int rank)
Returns a Population containing the solutions of a given rank.
|
public Ranking(Population pop, TableVar Variables, int nobj, int neje, java.lang.String RulRep, java.lang.String SDomin)
Constructor of the Ranking
pop
- Actual populationVariables
- Variables structurenobj
- Number of objectivesneje
- Number of examplesRulRep
- Rules representationSDomin
- Strict dominancepublic Population getSubfront(int rank)
Returns a Population containing the solutions of a given rank.
rank
- Value of the rankpublic int getNumberOfSubfronts()
Returns the total number of subFronts founds.
public int compareConstraint(Individual a, Individual b)
Gets the comparison constraint
a
- Individualb
- Individualpublic int compareDominance(Individual a, int posa, Individual b, int posb, int nobj, java.lang.String SDomin)
Gets the comparison Dominance
a
- Individualposa
- Position of the individual ab
- Individualposb
- Position of the individual bnobj
- Number of objectives of the algorithmSDomin
- Strict Dominance for comparison