Class NondominatedSortingComparator
java.lang.Object
org.moeaframework.core.comparator.ChainedComparator
org.moeaframework.core.comparator.NondominatedSortingComparator
- All Implemented Interfaces:
Comparator<Solution>
,DominanceComparator
public class NondominatedSortingComparator
extends ChainedComparator
implements Comparator<Solution>
Compares two solutions using their rank and crowding distance. Rank is the primary comparison criteria and the
crowding distance is used to break ties.
- See Also:
-
Field Summary
Fields inherited from class org.moeaframework.core.comparator.ChainedComparator
comparators
-
Constructor Summary
ConstructorDescriptionConstructs a dominance comparator for comparing solutions using their rank and crowding distance. -
Method Summary
Methods inherited from class org.moeaframework.core.comparator.ChainedComparator
compare
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
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
NondominatedSortingComparator
public NondominatedSortingComparator()Constructs a dominance comparator for comparing solutions using their rank and crowding distance.
-