normalize
- negmas.preferences.normalize(ufun, to=(0.0, 1.0), outcome_space=None, issues=None, outcomes=None)[source]
Normalizes a utility function to the given range.
- Parameters:
ufun (BaseUtilityFunction) – The utility function to normalize
to (tuple[float, float]) – range to normalize to. Default is [0, 1]
outcomes (Sequence[Outcome] | None) – A collection of outcomes to normalize for
- Returns:
A utility function that is guaranteed to be normalized for the set of given outcomes
- Return type: