|
||||||||||
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.NSGA2Comparator<T>
public class NSGA2Comparator<T extends NSGA2Individual>
Implements the crowding comparison operator.
Given two NSGA2Individuals i1 and i2, i1 < i2 iif i1.rank < i2.rank or i1.rank = i2.rank and i1.crowding > i2.crowding.
Constructor Summary | |
---|---|
NSGA2Comparator()
|
Method Summary | |
---|---|
int |
compare(T o1,
T o2)
Compares two individuals based on their rank 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 NSGA2Comparator()
Method Detail |
---|
public int compare(T o1, T o2)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |