issues_from_outcomes

negmas.outcomes.issues_from_outcomes(outcomes: Sequence[Outcome] | int, numeric_as_ranges: bool = True, issue_names: list[str] | None = None) tuple[DiscreteIssue][source]

Create a set of issues given some outcomes.

Parameters:
  • outcomes – A list of outcomes or the number of outcomes

  • issue_names – If given, will be used as issue names, otherwise random issue names will be used

  • numeric_as_ranges – 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.

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