|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.core.comparator.ParetoObjectiveComparator
public class ParetoObjectiveComparator
Compares two solutions using the Pareto dominance relation on the objectives.
In general, the ParetoDominanceComparator should be used instead as
it also incorporates constraint violation checks.
| Constructor Summary | |
|---|---|
ParetoObjectiveComparator()
Constructs a Pareto dominance comparator. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParetoObjectiveComparator()
| Method Detail |
|---|
public int compare(Solution solution1,
Solution solution2)
DominanceComparator-1 if solution1 dominates solution2, 1 if
solution2 dominates solution1, and 0 if the
solutions are non-dominated.
compare in interface DominanceComparatorsolution1 - 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 | |||||