ensure_os
- negmas.outcomes.ensure_os(outcome_space, issues, outcomes) OutcomeSpace[source]
Returns an outcome space from either an outcome-space, a list of issues, a list of outcomes, or the number of outcomes
- Remakrs:
Precedence is in the order of paramters
outcome_space>issues>outcomes.If neither is given, a
ValueErrorexception will be raised.Will not copy the outcome-space if it is given
A
CartesianOutcomeSpacewill be created if an outcome-space is not givenIf outcomes is given or all issues are discrete, a
DiscreteCartesianOutcomeSpacewill be created