DemandReboundScenario
Sustainability scenarios · Implementation: mlsysim/engine/scenario_definitions/sustainability.py.
Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.
Per-unit energy scaled by a factor (or by a unit-price ratio) while volume scales by another.
Notes
Equation: The result property composes mlsysim.solvers.DemandReboundModel.solve with the stored fields and any derived properties described below.
Assumptions: Inputs use the units and validity ranges of mlsysim.solvers.DemandReboundModel.solve. The named scenario supplies a fixed configuration rather than observations of a new run.
Excludes: Additional runtime effects or statistical guarantees beyond the cited solver contracts; no measurement is performed by this wrapper.
References
Derivation: The result property composes mlsysim.solvers.DemandReboundModel.solve with the stored fields and any derived properties described below. Individual property contracts identify the exact accounting expression or reusable calculation. Registry entries supply the scenario inputs; this class does not turn them into measured outcomes.
Examples
Evaluate a named scenario using its declared inputs.
>>> from mlsysim import Scenarios
>>> scenario = Scenarios.TokenPriceRebound
>>> round(float(scenario.unit_factor), 4)
0.0333Attributes
| Name | Description |
|---|---|
| per_unit_factor | |
| result | Return the modeled DemandRebound result from |
| unit_factor | Dimensionless per-unit energy factor, using the explicit factor or the assumed |
| unit_price_after | |
| unit_price_before | |
| volume_factor |
volume_factor
Type: float.
Declared default: required.
per_unit_factor
Type: Optional[float].
Declared default: None.
unit_price_before
Type: Optional[float].
Declared default: None.
unit_price_after
Type: Optional[float].
Declared default: None.
unit_factor
engine.scenario_types.DemandReboundScenario.unit_factor
Dimensionless per-unit energy factor, using the explicit factor or the assumed after/before price proxy.
Equation: Use per_unit_factor when supplied; otherwise unit_price_after/unit_price_before.
result
engine.scenario_types.DemandReboundScenario.result
Return the modeled DemandRebound result from mlsysim.solvers.DemandReboundModel.solve.
Equation: the scenario supplies its named fields to that solver. Returned quantity units, validity conditions, and omissions follow its calculation contract; this property adds no empirical calibration.