public class EpsilonBoxObjectiveComparator extends java.lang.Object implements DominanceComparator
In general, the EpsilonBoxDominanceComparator
should be used instead
as it also incorporates constraint violation checks.
References:
Modifier and Type | Field and Description |
---|---|
protected Epsilons |
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 and Description |
---|
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.
|
EpsilonBoxObjectiveComparator(Epsilons epsilons)
Constructs an additive ε-box dominance comparator with the
specified ε values.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Solution solution1,
Solution solution2)
Compares the two solutions using the additive ε-box dominance
relation.
|
Epsilons |
getEpsilons()
Returns the ε values in use by this comparator.
|
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. |
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 Epsilons epsilons
public EpsilonBoxObjectiveComparator(double epsilon)
epsilon
- the ε value used by this comparatorpublic EpsilonBoxObjectiveComparator(double[] epsilons)
epsilons
- the ε values used by this comparatorpublic EpsilonBoxObjectiveComparator(Epsilons epsilons)
epsilons
- the ε values used by this comparatorpublic 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 Epsilons getEpsilons()
public int compare(Solution solution1, Solution solution2)
compare
in interface DominanceComparator
solution1
- the first solutionsolution2
- the second solution-1
if solution1
dominates solution2
,
1
if solution2
dominates solution1
, and
0
if the solutions are non-dominatedCopyright 2009-2024 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage.