issues_from_genius
- negmas.outcomes.issues_from_genius(file_name, safe_parsing=True, n_discretization=None)[source]
Imports a the domain issues from a GENIUS XML file.
- Parameters:
- Returns:
tuple[Issue, …] containing the issues
list[str] containing agent names (that are sometimes stored in the genius domain)
- Return type:
A tuple of two optional lists
Examples
>>> import pkg_resources >>> issues, _ = issues_from_genius( ... file_name=pkg_resources.resource_filename( ... "negmas", resource_name="tests/data/Laptop/Laptop-C-domain.xml" ... ) ... ) >>> print([_.name for _ in issues]) ['Laptop', 'Harddisk', 'External Monitor']
- Remarks:
See
from_xml_str
for all the parameters