noads.core.scenarios.multiscenario#
Multi-scenario vectorization of time-dependant scenarios.
- class noads.core.scenarios.multiscenario.MultiScenario(name, temporal_scenario, mean_outputs, scenario_names, fixed_inputs, differentiation_method=DifferentiationMethod.REVERSE)[source]#
Bases:
ModelBatch a temporal scenario across several background scenarios.
The wrapped
TemporalScenariois vectorized withjax.vmapover an ensemble of background scenarios (e.g. SSP2-1.9, SSP2-2.6, SSP2-3.4), so the whole ensemble is evaluated and differentiated in a single compiled call. Inputs listed infixed_inputsare shared by all scenarios (exposed asfixed.<name>), while the remaining inputs are scenario-specific (exposed as<scenario>.<name>); the same convention applies to the outputs. Outputs listed inmean_outputsare also averaged across the ensemble and exposed asmean.<name>, which provides the objective of scenario-robust policy optimization (see the robustness formulation of the extended paper).- Parameters:
- discipline: JAXDiscipline#
- temporal_scenario: TemporalScenario#
TemporalScenario to vectorize.
Classes
|
Batch a temporal scenario across several background scenarios. |