issues_from_geniusweb_json_str
- negmas.outcomes.issues_from_geniusweb_json_str(json_str, safe_parsing=True, n_discretization=None)[source]
Exports a list/dict of issues from a GeniusWeb json file.
- Parameters:
json_str (str) – The string containing GENIUS style XML domain issue definitions
safe_parsing (bool) – Turn on extra checks
n_discretization (Optional[int]) – If not None, real valued issues are discretized with the given
values (number of)
max_cardinality (int) – Maximum number of outcomes allowed (effective only if force_single_issue is True)
- Return type:
- Returns:
tuple[Issue, …] The issues (note that issue names will be stored in the name attribute of each issue if keep_issue_names)
list[dict] A list of agent information dicts each contains ‘agent’, ‘class’, ‘utility_file_name’