Pywr-Scenarios
Last updated
Last updated
Pywr Scenarios offer a more advanced and comprehensive approach to water management modeling, particularly when working with uncertainty and asessing various combinations of data and system behaviors and data inputs. Unlike WaterStrategy Scenarios, which focus on localized adjustments, Pywr Scenarios allow you to experiment with a wide range of possibilities by varying multiple inputs and combinations simultaneously.
In Pywr Scenarios:
Users can define multiple scenarios, with each scenario containing multiple variations (or sizes).
The system will simulate all combinations of these variations unless a specific combination is selected for simulation.
For example, if two Pywr Scenarios are defined, each with three variations (size = 3), the total number of simulations will be 9 (3 x 3). This approach enables users to explore a wide range of potential outcomes and interactions between different factors in the model.
In a Network, click on View Network Data icon
This will open the right panel. In the section Inputs, type "scenarios" and click on Add an Input icon
A window will be displayed, type "scenarios", select the scenarios attribute and click Save as shown in the following image
A new window will pop up, select PYWR_SCENARIOS and click Save
Once the scenario customization panel is open, you can define as many Pywr Scenarios as needed. To create a new Pywr Scenario, follow these steps:
Enter a Name for the Pywr-Scenario and specify the Size (number of variations).
The Ensembles attribute is optional and helps keep track of specific index scenarios within the Pywr Scenario
After creating the pywr-scenarios, the system will display the following information:
Clicking on the JSON tab will display the automatic JSON version of the Pywr-Scenario definition
To load the data as h5 DataFrameParameter, please refer to HDF5 Parameter section in order to access properly to the scenario data
Click
Edit the current default scenario by clicking on