skip to main content
RiverWare Policy Language
The following changes have been made to the RiverWare Policy Language (RPL).
Improved Formatting of Print/Warning/Alert/Notice Statement Diagnostics
RPL Print Statement diagnostic messages are formatted better to show commas in large numbers.
Numeric Value Precision
Previously, one precision setting (the number of digits displayed after the decimal) was used for the entire RPL set. This was fine for similar values like flows or volumes but made it difficult to display coefficients or other parameters that require a different level of precision.
Now, you can change the precision of any selected individual RPL numeric expression using the right-click Precision menu. Select from the nine options or Use RPL Set Precision. For example in the screenshot, the selected expression, 100 cfs, has been configured to use 0 precision. To resume using the overall set precision, select the last option, Use RPL Set Precision. For more information, see Precision of Numeric Values in RiverWare Policy Language (RPL).
Figure 1.6  Screenshot of Precision context menu.
RPL Function Min and Max Constraints
See the important note on function min and max constraints in RPL Function Min and Max Constraints.
Table Interpolation Changes
The following RPL predefined functions operate on a table slot to do interpolation and lookup:
Previously these functions returned an error if any invalid values (NaNs) were encountered in the input table. They have been modified to silently ignore invalid values at the bottom of the input table slot.
Time Invariant Functions
Previously time-invariant function return values were cached and re-used within a run for Rulebased Simulation sets. Now they are cached and re-used within the following additional contexts:
• Within the evaluation of a single series expression slot
• Within run initialization for Initialization Rules
RPL Literal Value Validation
See the important note on RPL Literal Value Validation in RPL Literal Value Validation.
Revised: 07/09/2023