Class RIndicator.LinearWeightedSumUtility

java.lang.Object
org.moeaframework.core.indicator.RIndicator.LinearWeightedSumUtility
All Implemented Interfaces:
RIndicator.UtilityFunction
Enclosing class:
RIndicator

public static class RIndicator.LinearWeightedSumUtility extends Object implements RIndicator.UtilityFunction
Linear-weighted sum utility function.
  • Constructor Details

    • LinearWeightedSumUtility

      public LinearWeightedSumUtility()
      Constructs an instance of the linear-weighted sum utility function.
  • Method Details

    • computeUtility

      public double computeUtility(Solution solution, double[] weights)
      Description copied from interface: RIndicator.UtilityFunction
      Computes the utility of the given solution.
      Specified by:
      computeUtility in interface RIndicator.UtilityFunction
      Parameters:
      solution - the solution
      weights - the weights for the utility calculation
      Returns:
      the utility of the given solution