os_or_none

negmas.outcomes.os_or_none(outcome_space, issues, outcomes)[source]

Returns an outcome space from either an outcome-space, a list of issues, a list of outcomes, or the number of outcomes

Return type:

Optional[OutcomeSpace]

Remakrs:
  • Precedence is in the order of paramters outcome_space > issues > outcomes.

  • If nothing is given, it will just return None

  • Will not copy the outcome-space if it is given

  • A CartesianOutcomeSpace will be created if an outcome-space is not given

  • If outcomes is given or all issues are discrete, a DiscreteCartesianOutcomeSpace will be created