Class EpsilonBoxDominanceComparator
java.lang.Object
org.moeaframework.core.comparator.EpsilonBoxObjectiveComparator
org.moeaframework.core.comparator.EpsilonBoxDominanceComparator
- All Implemented Interfaces:
DominanceComparator
Compares two solutions using aggregate constraint violations and the additive ε-box objective comparator.
This is similar to the method used in
ParetoDominanceComparator
, differing only in the use of ε-box
dominance when comparing the objectives.-
Field Summary
Fields inherited from class org.moeaframework.core.comparator.EpsilonBoxObjectiveComparator
epsilons, isSameBox
-
Constructor Summary
ConstructorDescriptionEpsilonBoxDominanceComparator
(double epsilon) Constructs a dominance comparator for comparing solutions first using theAggregateConstraintComparator
followed by theEpsilonBoxObjectiveComparator
with the specified ε value.EpsilonBoxDominanceComparator
(double[] epsilons) Constructs a dominance comparator for comparing solutions first using theAggregateConstraintComparator
followed by theEpsilonBoxObjectiveComparator
with the specified ε values.EpsilonBoxDominanceComparator
(Epsilons epsilons) Constructs a dominance comparator for comparing solutions first using theAggregateConstraintComparator
followed by theEpsilonBoxObjectiveComparator
with the specified ε values. -
Method Summary
Methods inherited from class org.moeaframework.core.comparator.EpsilonBoxObjectiveComparator
getEpsilons, isSameBox, setSameBox
-
Constructor Details
-
EpsilonBoxDominanceComparator
public EpsilonBoxDominanceComparator(double epsilon) Constructs a dominance comparator for comparing solutions first using theAggregateConstraintComparator
followed by theEpsilonBoxObjectiveComparator
with the specified ε value.- Parameters:
epsilon
- the ε value used by this comparator
-
EpsilonBoxDominanceComparator
public EpsilonBoxDominanceComparator(double[] epsilons) Constructs a dominance comparator for comparing solutions first using theAggregateConstraintComparator
followed by theEpsilonBoxObjectiveComparator
with the specified ε values.- Parameters:
epsilons
- the ε values used by this comparator
-
EpsilonBoxDominanceComparator
Constructs a dominance comparator for comparing solutions first using theAggregateConstraintComparator
followed by theEpsilonBoxObjectiveComparator
with the specified ε values.- Parameters:
epsilons
- the ε values used by this comparator
-
-
Method Details
-
compare
Description copied from class:EpsilonBoxObjectiveComparator
Compares the two solutions using the additive ε-box dominance relation.- Specified by:
compare
in interfaceDominanceComparator
- Overrides:
compare
in classEpsilonBoxObjectiveComparator
- Parameters:
solution1
- the first solutionsolution2
- the second solution- Returns:
-1
ifsolution1
dominatessolution2
,1
ifsolution2
dominatessolution1
, and0
if the solutions are non-dominated
-