Class LinearDominanceComparator

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

public class LinearDominanceComparator extends ChainedComparator implements AggregateObjectiveComparator
Version of the weighted linear aggregate function that supports constraints.
See Also:
  • Constructor Details

    • 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. Defaults to weights of 1.0 if none are provided.
      Parameters:
      weights - the weight vector
  • Method Details