extreme_outcomes

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

Finds the best and worst outcomes

Parameters
  • ufun (UtilityFunction) – The utility function

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

  • issues (list[Issue] | None) – list of issues (optional)

  • outcomes (list[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[Outcome, Outcome]

Returns

Outcomes with minumum utility, maximum utility