decision_optimization_client.Experiment
- class decision_optimization_client.Experiment
- name
Name of the experiment
- description
Description of the experiment
- create_container(category=None, **kwargs)
Creates a
Containerwhose parent is this Experiment.Currently supported categories are:
'scenario'
Example
This creates an
scenarioContainerwith the name ‘foo’:>>> c = experiment.create_container(category='scenario', name='foo')
- create_scenario(name, **kwargs)
Creates a new
Containerattached as a scenario of thisExperiment.- Parameters
name – The name of the container.
**kwargs – kwargs passed to the
Containerconstructor.
- Returns
The scenario as a
Container- Return type
- Raises
NotBoundException – when the Artifact is not bound to a client.
- delete_container(container)
Deletes the specified
Container- Parameters
container – The
Containerto be deleted.
- get_containers(category=None, as_dict=False)
Returns containers of the specified category in this
Experiment.
- get_scenario(name)
Returns the scenario for the specified name.
- get_scenarios(as_dict=False)
Returns scenarios of this
Experiment.