outcome_range_is_valid

negmas.outcomes.outcome_range_is_valid(outcome_range: Mapping[Union[int, str], Union[int, float, str, List[int], List[float], List[str], Tuple[int, int], Tuple[float, float], List[Tuple[Union[int, float], Union[int, float]]]]], issues: Optional[Collection[negmas.outcomes.Issue]] = None)Union[bool, Tuple[bool, str]][source]

Tests whether the outcome range is valid for the set of issues.

Parameters
  • outcome_range

  • issues

Example

>>> try:
...     outcome_range_is_valid({'price': (0, 10)})
... except NotImplementedError:
...     print('Not implemented')
Not implemented

Returns: