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
ConstructorsConstructorDescriptionEpsilonBoxDominanceComparator(double epsilon) Constructs a dominance comparator for comparing solutions first using theAggregateConstraintComparatorfollowed by theEpsilonBoxObjectiveComparatorwith the specified ε value.EpsilonBoxDominanceComparator(double[] epsilons) Constructs a dominance comparator for comparing solutions first using theAggregateConstraintComparatorfollowed by theEpsilonBoxObjectiveComparatorwith the specified ε values.EpsilonBoxDominanceComparator(Epsilons epsilons) Constructs a dominance comparator for comparing solutions first using theAggregateConstraintComparatorfollowed by theEpsilonBoxObjectiveComparatorwith 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 theAggregateConstraintComparatorfollowed by theEpsilonBoxObjectiveComparatorwith 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 theAggregateConstraintComparatorfollowed by theEpsilonBoxObjectiveComparatorwith the specified ε values.- Parameters:
epsilons- the ε values used by this comparator
-
EpsilonBoxDominanceComparator
Constructs a dominance comparator for comparing solutions first using theAggregateConstraintComparatorfollowed by theEpsilonBoxObjectiveComparatorwith the specified ε values.- Parameters:
epsilons- the ε values used by this comparator
-
-
Method Details
-
compare
Description copied from class:EpsilonBoxObjectiveComparatorCompares the two solutions using the additive ε-box dominance relation.- Specified by:
comparein interfaceDominanceComparator- Overrides:
comparein classEpsilonBoxObjectiveComparator- Parameters:
solution1- the first solutionsolution2- the second solution- Returns:
-1ifsolution1dominatessolution2,1ifsolution2dominatessolution1, and0if the solutions are non-dominated
-