|
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.EpsilonBoxObjectiveComparator
public class EpsilonBoxObjectiveComparator
Compares two solutions using the additive ε-box objective comparator. This dominance relation divides objective space into boxes with side-length ε and specifies that only one solution may exist within the same box. If two solutions were to reside in the same box, the solution closer to the box's minimum corner.
In general, the EpsilonBoxDominanceComparator should be used instead
as it also incorporates constraint violation checks.
References:
| Field Summary | |
|---|---|
protected double[] |
epsilons
The ε values used by this comparator. |
protected boolean |
isSameBox
true if the the two solutions passed to the previous invocation
of compare existed within the same ε-box; false
otherwise. |
| Constructor Summary | |
|---|---|
EpsilonBoxObjectiveComparator(double epsilon)
Constructs an additive ε-box dominance comparator with the specified ε value. |
|
EpsilonBoxObjectiveComparator(double[] epsilons)
Constructs an additive ε-box dominance comparator with the specified ε values. |
|
| Method Summary | |
|---|---|
int |
compare(Solution solution1,
Solution solution2)
Compares the two solutions using the additive ε-box dominance relation. |
double |
getEpsilon(int objective)
Returns the ε value used by this comparator for the specified objective. |
int |
getNumberOfDefinedEpsilons()
Returns the number of defined ε values. |
boolean |
isSameBox()
Returns true if the the two solutions passed to the previous
invocation of compare existed within the same ε-box;
false otherwise. |
protected void |
setSameBox(boolean isSameBox)
Set to true if the the two solutions passed to the previous
invocation of compare existed within the same ε-box;
false otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean isSameBox
true if the the two solutions passed to the previous invocation
of compare existed within the same ε-box; false
otherwise.
protected final double[] epsilons
| Constructor Detail |
|---|
public EpsilonBoxObjectiveComparator(double epsilon)
epsilon - the ε value used by this comparatorpublic EpsilonBoxObjectiveComparator(double[] epsilons)
epsilons - the ε values used by this comparator| Method Detail |
|---|
public boolean isSameBox()
true if the the two solutions passed to the previous
invocation of compare existed within the same ε-box;
false otherwise.
true if the the two solutions passed to the previous
invocation of compare existed within the same
ε-box; false otherwise.protected void setSameBox(boolean isSameBox)
true if the the two solutions passed to the previous
invocation of compare existed within the same ε-box;
false otherwise.
isSameBox - true if the the two solutions passed to the
previous invocation of compare existed within the same
ε-box; false otherwise.public double getEpsilon(int objective)
(objective >= epsilons.length), the
last ε value in this array is used
(epsilons[epsilons.length-1]).
public int getNumberOfDefinedEpsilons()
getEpsilon is
invoked with an index larger than the number of defined εs, the
value of the last defined ε is returned.
public int compare(Solution solution1,
Solution solution2)
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 | |||||