|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
public interface DominanceComparator
Interface for comparing two solutions using a dominance relation. A dominance relation may impose a partial or total ordering on a set of solutions.
Implementations which also implement Comparator impose a
total ordering on the set of solutions. However, it is typically the case
that (compare(x, y)==0) == (x.equals(y)) does not hold, and the
comparator may impose orderings that are inconsistent with equals.
| Method Summary | |
|---|---|
int |
compare(Solution solution1,
Solution solution2)
Compares the two solutions using a dominance relation, returning -1 if solution1 dominates solution2, 1 if
solution2 dominates solution1, and 0 if the
solutions are non-dominated. |
| Method Detail |
|---|
int compare(Solution solution1,
Solution solution2)
-1 if solution1 dominates solution2, 1 if
solution2 dominates solution1, and 0 if the
solutions are non-dominated.
solution1 - the first solutionsolution2 - the second solution
-1 if solution1 dominates solution2,
1 if solution2 dominates solution1, and
0 if the solutions are non-dominated
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||