Scenarios in WaterStrategy allow users to simulate and explore various water management strategies by adjusting different elements of a model. They provide a framework for understanding how changes in inputs, assumptions, or data might influence outcomes under different conditions.
WaterStrategy offers two types of scenarios to address various needs in water management modeling:
WaterStrategy Scenarios: This type is used when users need to adjust specific behaviors, parameters, or data at a localized or smaller scale. These scenarios are ideal for cases where only certain elements of the model need to be tweaked without altering the entire dataset. It allows for targeted modifications, making it easier to test the effects of individual changes within the system.
Pywr-scenarios: This scenario type is designed to handle more complex cases, particularly those involving uncertainty. It specializes in combining data across multiple scales, allowing for a comprehensive assessment of different variables. This approach is especially useful when working with uncertain inputs or when modeling future conditions, as it enables you to explore how different combinations of data and assumptions may impact the outcomes.
pywr scenarios are compatible with the following parameters:
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
WaterStrategy Scenarios provide a tool for making targeted adjustments to specific elements within a water management model. These scenarios are particularly useful when you want to experiment with localized changes to parameters, behaviors, or data in a flexible and controlled way.
When a WaterStrategy Scenario is created, it acts as a fork of an existing network model. The original network is assigned to the baseline scenario, which represents the default or starting conditions of the system. From this baseline, a WaterStrategy Scenario allows for precise modifications—whether it’s changing data inputs or adjusting parameters that define the behavior of key elements within the system.
This ability to modify certain aspects of the model while leaving the rest unchanged makes WaterStrategy Scenarios ideal for testing the impact of individual changes. For instance, you can alter reservoir operation rules or modify demand forecasts without needing to reconstruct the entire model. This focused approach helps users quickly assess how specific modifications influence outcomes for refining water management strategies.
Begin by clicking on the Clone a Scenario icon.
Select the scenario you wish to clone and name your scenario
For detailed tutorial, refer to the WaterStrategy tutorial on creating and running a new scenario