minmax

negmas.preferences.minmax(ufun, outcome_space=None, issues=None, outcomes=None, max_cardinality=1000)[source]

Finds the range of the given utility function for the given outcomes.

Parameters:
  • ufun (UtilityFunction) – The utility function

  • outcome_space (OutcomeSpace | None) – An outcome-space to consider

  • issues (Sequence[Issue] | tuple[Issue, …] | None) – list of issues (optional)

  • outcomes (Sequence[Outcome] | tuple[Outcome, …] | None) – A collection of outcomes (optional)

  • max_cardinality – the maximum number of outcomes to try sampling (if sampling is used and outcomes are not given)

Return type:

tuple[float, float]

Returns:

Minumum utility, maximum utility