Create Custom Rule - TranscientDecisionParameter

Register Custom Rule - TranscientDecisionParameter

Paste the following code and then click on the save button

Now when running this network in WaterStrategy, a TranscientDecisionParameter will be registered.

Make sure after saving your Custom Rule, it is displayed on the left side, in this case under Parameter section

Using TranscientDecisionParameter

For this case, we will double the max volume of New Reservoir storage node starting on 2045-01-01

Go to New Reservoir storage node and Edit Max Volume

Select in Options tab PYWR_PARAMETER

Paste the following code and click Save

TranscientDecisionParameter includes attributes before_parameter and after_parameter which we will have to create as following:

A small text box will open, when we can write the name of our new PWR_PARAMETER, in this case __New reservoir__:max_volume before. Click Enter.\

WaterStrategy will open the parameter window, paste the following code and Save

__New reservoir__:max_volume before:

Repeat to create the max volume after parameter

__New reservoir__:max_volume after:

As last step, TranscientDecisionParameter needs Initial Volume Proportion for the storage node as the parameter inherit initial values from the node, in this case we will setup to 0.99

Results

As we can see in the following picture, we are combining pywr-scenarios using Climate Change and increasing the volume of our selected reservoir from 120.000 Ml to 240.000 Ml in 1st january 2045.

simulated volume (New Reservoir)

Last updated