dict2outcome

negmas.outcomes.dict2outcome(d, issues)[source]

Converts the outcome to a tuple no matter what was its type

Parameters
  • d (dict[str, Any] | None) – the dictionary to be converted

  • issues (list[str | 'Issue']) – A list of issues or issue names (as strings) to order the tuple

Remarks:
  • If called with a tuple outcome, it will issue a warning

Return type

Outcome | None