issues_from_outcomes
- negmas.outcomes.issues_from_outcomes(outcomes, numeric_as_ranges=True, issue_names=None)[source]
Create a set of issues given some outcomes.
- Parameters
outcomes (Sequence[Outcome] | int) – A list of outcomes or the number of outcomes
issue_names (list[str] | None) – If given, will be used as issue names, otherwise random issue names will be used
numeric_as_ranges (bool) – If True, all numeric issues generated will have ranges that are defined by the minimum and maximum values of that issue in the given outcomes instead of a list of the values that appeared in them.
- Return type
Sequence[DiscreteIssue]
- Returns
a list of issues that include the given outcomes.
Remarks:
The outcome space spanned by the generated issues can in principle contain many more possible outcomes than the ones given