MOEA Framework 2.5
API Specification

org.moeaframework.core.comparator
Class EpsilonBoxDominanceComparator

java.lang.Object
  extended by org.moeaframework.core.comparator.EpsilonBoxObjectiveComparator
      extended by org.moeaframework.core.comparator.EpsilonBoxDominanceComparator
All Implemented Interfaces:
Serializable, DominanceComparator

public class EpsilonBoxDominanceComparator
extends EpsilonBoxObjectiveComparator
implements Serializable

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.

See Also:
AggregateConstraintComparator, EpsilonBoxObjectiveComparator, Serialized Form

Field Summary
 
Fields inherited from class org.moeaframework.core.comparator.EpsilonBoxObjectiveComparator
epsilons, isSameBox
 
Constructor Summary
EpsilonBoxDominanceComparator(double epsilon)
          Constructs a dominance comparator for comparing solutions first using the AggregateConstraintComparator followed by the EpsilonBoxObjectiveComparator with the specified ε value.
EpsilonBoxDominanceComparator(double[] epsilons)
          Constructs a dominance comparator for comparing solutions first using the AggregateConstraintComparator followed by the EpsilonBoxObjectiveComparator with the specified ε value.
 
Method Summary
 int compare(Solution solution1, Solution solution2)
          Compares the two solutions using the additive ε-box dominance relation.
 
Methods inherited from class org.moeaframework.core.comparator.EpsilonBoxObjectiveComparator
getEpsilon, getNumberOfDefinedEpsilons, isSameBox, setSameBox
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EpsilonBoxDominanceComparator

public EpsilonBoxDominanceComparator(double epsilon)
Constructs a dominance comparator for comparing solutions first using the AggregateConstraintComparator followed by the EpsilonBoxObjectiveComparator with the specified ε value.

Parameters:
epsilon - the epsilon value used by this comparator

EpsilonBoxDominanceComparator

public EpsilonBoxDominanceComparator(double[] epsilons)
Constructs a dominance comparator for comparing solutions first using the AggregateConstraintComparator followed by the EpsilonBoxObjectiveComparator with the specified ε value.

Parameters:
epsilons - the epsilon values used by this comparator
Method Detail

compare

public int compare(Solution solution1,
                   Solution solution2)
Description copied from class: EpsilonBoxObjectiveComparator
Compares the two solutions using the additive ε-box dominance relation.

Specified by:
compare in interface DominanceComparator
Overrides:
compare in class EpsilonBoxObjectiveComparator
Parameters:
solution1 - the first solution
solution2 - the second solution
Returns:
-1 if solution1 dominates solution2, 1 if solution2 dominates solution1, and 0 if the solutions are non-dominated

MOEA Framework 2.5
API Specification

Copyright 2009-2015 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Hosted by Get MOEA Framework at SourceForge.net. Fast, secure and Free Open Source software downloads