public class EqualSolutionsComparator<S extends Solution<?>> extends Object implements Comparator<S>, Serializable
Comparator (a method for comparing
Solution objects) based whether all the objective values are
equal or not. A dominance test is applied to decide about what solution
is the best.| Constructor and Description |
|---|
EqualSolutionsComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(S solution1,
S 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 int compare(S solution1, S solution2)
compare in interface Comparator<S extends Solution<?>>solution1 - First Solution.solution2 - Second Solution.Copyright © 2017. All rights reserved.