scale_max
- negmas.preferences.scale_max(ufun, to=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
outcomes (Sequence[Outcome] | None) – A collection of outcomes to normalize for
rng – range to normalize to. Default is [0, 1]
epsilon – A small number specifying the resolution
- Returns:
A utility function that is guaranteed to be normalized for the set of given outcomes
- Return type: