ensure_os
- negmas.outcomes.ensure_os(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:
- Remakrs:
Precedence is in the order of paramters outcome_space > issues > outcomes.
If neither is given, a ValueError exception will be raised.
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