public class RankingAndCrowdingDistanceComparator extends Object implements Comparator<Solution>
| Constructor and Description |
|---|
RankingAndCrowdingDistanceComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Solution solution1,
Solution solution2)
Compares two solutions.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic RankingAndCrowdingDistanceComparator()
public int compare(Solution solution1, Solution solution2)
compare in interface Comparator<Solution>solution1 - Object representing the first solutionsolution2 - Object representing the second solution.Copyright © 2015. All rights reserved.