ScenarioSet
(class from pyomo.contrib.parmest.scenariocreator
)
- class pyomo.contrib.parmest.scenariocreator.ScenarioSet(name)[source]
Bases:
object
Class to hold scenario sets
Args: name (str): name of the set (might be “”)
Methods
ScenarioNumber
(scennum)Returns the scenario with the given, zero-based number
Usage: for scenario in ScensIterator()
__init__
(name)addone
(scen)Add a scenario to the set
append_bootstrap
(bootstrap_theta)Append a bootstrap theta df to the scenario set; equally likely
write_csv
(filename)write a csv file with the scenarios in the set
Member Documentation
- addone(scen)[source]
Add a scenario to the set
- Parameters:
scen (ParmestScen) – the scenario to add