public class EqualSolutions
extends java.lang.Object
implements java.util.Comparator
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 |
|---|
EqualSolutions() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object object1,
java.lang.Object object2)
Compares two solutions.
|
public int compare(java.lang.Object object1,
java.lang.Object object2)
compare in interface java.util.Comparatorsolution1 - Object representing the first Solution.solution2 - Object representing the second Solution.