Package org.moeaframework.core.indicator
Interface RIndicator.UtilityFunction
- All Known Implementing Classes:
RIndicator.ChebyshevUtility
,RIndicator.LinearWeightedSumUtility
- Enclosing class:
- RIndicator
public static interface RIndicator.UtilityFunction
Interface for defining utility functions. These utility functions assume the solutions have been normalized.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
computeUtility
(Solution solution, double[] weights) Computes the utility of the given solution.
-
Method Details
-
computeUtility
Computes the utility of the given solution.- Parameters:
solution
- the solutionweights
- the weights for the utility calculation- Returns:
- the utility of the given solution
-