MOEA Framework 2.12
API Specification

org.moeaframework.algorithm.single
Class LinearDominanceComparator

java.lang.Object
  extended by org.moeaframework.core.comparator.ChainedComparator
      extended by org.moeaframework.algorithm.single.LinearDominanceComparator
All Implemented Interfaces:
Serializable, Comparator<Solution>, AggregateObjectiveComparator, DominanceComparator

public class LinearDominanceComparator
extends ChainedComparator
implements AggregateObjectiveComparator, Serializable

Version of the weighted linear aggregate function that supports constraints.

See Also:
AggregateConstraintComparator, LinearObjectiveComparator, Serialized Form

Constructor Summary
LinearDominanceComparator()
          Constructs a new dominance comparator using a weighted linear aggregate function and constraints.
LinearDominanceComparator(double... weights)
          Constructs a new dominance comparator using a weighted linear aggregate function and constraints.
 
Method Summary
 
Methods inherited from class org.moeaframework.core.comparator.ChainedComparator
compare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.moeaframework.core.comparator.DominanceComparator
compare
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Constructor Detail

LinearDominanceComparator

public LinearDominanceComparator()
Constructs a new dominance comparator using a weighted linear aggregate function and constraints. Equal weights are used for each objective.


LinearDominanceComparator

public LinearDominanceComparator(double... weights)
Constructs a new dominance comparator using a weighted linear aggregate function and constraints. One weight should be given for each objective; if fewer weights are provided, the last weight is repeated for the remaining objectives.

Parameters:
weights - the weight vector

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!