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
Container
whose parent is this Experiment.Currently supported categories are:
'scenario'
Example
This creates an
scenario
Container
with the name ‘foo’:>>> c = experiment.create_container(category='scenario', name='foo')
- create_scenario(name, **kwargs)
Creates a new
Container
attached as a scenario of thisExperiment
.- Parameters
name – The name of the container.
**kwargs – kwargs passed to the
Container
constructor.
- 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
Container
to 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
.