calc_reserved_value

negmas.preferences.calc_reserved_value(ufun, fraction=inf, nmin=0, nmax=inf, max_cardinality=inf, finite=True, tight=True)[source]

Calculates a reserved value that keeps the given fraction of outcomes (saturated between nmin and nmax).

Return type:

float

Remarks:
  • If finite, the returned reserved value will be guaranteed to be finite as long as ufun always returns finite values.

  • max_cardinality is used to sample outcomes for continuous outcome spaces

  • If tight is given then the reserved values will be as near as possible to the range of the ufun