Package org.moeaframework.core.indicator
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 Summary
ConstructorDescriptionConstructs an instance of the linear-weighted sum utility function. -
Method Summary
Modifier and TypeMethodDescriptiondouble
computeUtility
(Solution solution, double[] weights) Computes the utility of the given solution.
-
Constructor Details
-
LinearWeightedSumUtility
public LinearWeightedSumUtility()Constructs an instance of the linear-weighted sum utility function.
-
-
Method Details
-
computeUtility
Description copied from interface:RIndicator.UtilityFunction
Computes the utility of the given solution.- Specified by:
computeUtility
in interfaceRIndicator.UtilityFunction
- Parameters:
solution
- the solutionweights
- the weights for the utility calculation- Returns:
- the utility of the given solution
-