GUSSScenarioDict#
- class gamspy.GUSSScenarioDict(container: Container, name: str, scenario_set: Set, description: str = '')[source]#
Bases:
objectHelper for constructing a GUSS scenario dictionary set.
A GUSS scenario dictionary is represented as a normal three-dimensional GAMSPy set with rows of the form:
symbol_name, action, scenario_data_symbol_name
- Attributes:
- name
- records
Methods
from_existing(container, name)Rebuild a
GUSSScenarioDictwrapper around an already-existing underlyingSetincontainer.add_fixed
add_level
add_lower
add_marginal
add_options
add_param
add_upper
gamsRepr
to_set
- classmethod from_existing(container: Container, name: str) GUSSScenarioDict[source]#
Rebuild a
GUSSScenarioDictwrapper around an already-existing underlyingSetincontainer.The Python wrapper is not a container-tracked symbol and is not serialized. This classmethod reconstructs the wrapper from the surviving Set so that callers can resume using
gp_model.solve(scenario=dict)after a deserialize.- Parameters:
- containerContainer
The container holding the underlying GUSS scenario Set.
- namestr
Name of the underlying Set inside
container.
- Returns:
- GUSSScenarioDict
- Raises:
- ValidationError
If
namedoes not exist incontainer, is not aSet, has no records, or its records do not have the expected(scenario_set_name, "scenario", "")header row.
- property name: str#
!! processed by numpydoc !!
- property records: pd.DataFrame | None#
!! processed by numpydoc !!