public class OverallConstraintViolationComparator<S extends Solution<?>> extends Object implements ConstraintViolationComparator<S>
Comparator (a method for comparing Solution objects)
based on the overall constraint violation of the solutions, as done in NSGA-II.| Constructor and Description |
|---|
OverallConstraintViolationComparator()
Constructor
|
| 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 OverallConstraintViolationComparator()
public int compare(S solution1, S solution2)
compare in interface Comparator<S extends Solution<?>>compare in interface ConstraintViolationComparator<S extends Solution<?>>solution1 - Object representing the first Solution.solution2 - Object representing the second Solution.Copyright © 2017. All rights reserved.