|
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.AggregateConstraintComparator
public class AggregateConstraintComparator
Compares solutions based on their magnitude of constraint violations. Absolute values of constraints are used, so only the magnitude of the constraint violation is important.
| Constructor Summary | |
|---|---|
AggregateConstraintComparator()
Constructs an aggregate constraint 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. |
protected double |
getConstraints(Solution solution)
Returns the sum of the absolute value of the constraints for the specified solution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public AggregateConstraintComparator()
| Method Detail |
|---|
protected double getConstraints(Solution solution)
solution - the solution
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 Comparator<Solution>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 | |||||