|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.udc.gii.common.eaf.algorithm.fitness.comparator.FitnessComparator<T>
es.udc.gii.common.eaf.algorithm.fitness.comparator.LessMOPTournamentComparator<T>
public class LessMOPTournamentComparator<T extends NSGA2Individual>
This class implements a comparator for comparing two instances i1 and i2 of Individual based on their dominance and crowding distance.
Constructor Summary | |
---|---|
LessMOPTournamentComparator()
Creates a new instance of MOPTournamentComparator |
Method Summary | |
---|---|
int |
compare(T o1,
T o2)
Compares two individuals based on their dominance and crowding distance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public LessMOPTournamentComparator()
Method Detail |
---|
public int compare(T o1, T o2)
MOUtil.checkDominance(es.udc.gii.common.eaf.algorithm.population.Individual, es.udc.gii.common.eaf.algorithm.population.Individual)
,
so check this method first. *
compare
in interface java.util.Comparator<T extends NSGA2Individual>
compare
in class FitnessComparator<T extends NSGA2Individual>
o1
- First individual to compare.o2
- Second individual to compare.
MOUtil.checkDominance(es.udc.gii.common.eaf.algorithm.population.Individual, es.udc.gii.common.eaf.algorithm.population.Individual)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |