Parameters
Base Parameter class
All the Parameter subclasses in pywr are descended from a common base class.
|
|
Base parameter providing an index method |
Simple parameters
|
|
|
A Scenario varying Parameter |
|
A Scenario varying IndexParameter |
Combining multiple parameters
|
A collection of IndexParameters |
|
A collection of IndexParameters |
|
Parameter that divides one Parameter by another. |
|
Parameter that takes negative of another Parameter |
|
Parameter that takes maximum of another Parameter and constant value (threshold) |
Parameter that takes maximum of the negative of a Parameter and constant value (threshold) |
|
|
Parameter that takes minimum of another Parameter and constant value (threshold) |
Parameter that takes minimum of the negative of a Parameter and constant value (threshold) |
|
|
Parameter that offsets another Parameter by a constant value. |
Annual profile parameters
|
An annual profile consisting of daily values. |
|
Weekly profile (52-week year) |
|
Parameter which provides a monthly profile. |
|
Parameter which provides a uniformly reducing value from one to zero. |
|
Parameter which provides a daily profile per scenario. |
|
Parameter that provides a weekly profile per scenario |
|
Parameter that provides a monthly profile per scenario |
Time varying parameter using an array and Timestep.index with multiplicative factors per Scenario |
|
|
Parameter which interpolates a daily profile using a radial basis function (RBF). |
|
Generates a weighted average daily profile from pairs of storage nodes and profile parameters. |
Dataframe parameter
|
Timeseries parameter with automatic alignment and resampling |
HDF5 Parameter
|
Array based parameters
|
Time varying parameter using an array and Timestep.index |
|
A Scenario varying Parameter |
|
Parameter which uses an IndexParameter to index an array of Parameters |
Threshold parameters
|
Base class for parameters returning one of two values depending on other state. |
|
Returns one of two values depending on current volume in a Storage node |
|
Returns one of two values depending on previous flow in a node |
|
Returns one of two values depending on the value of a Parameter |
|
Returns an index based on the previous days flow in a node against multiple given thresholds. |
Return an index based on the value in the parameter against multiple given thresholds. |
|
|
Returns one of two values depending on a Recorder value and a threshold |
Returns one of two values depending on the year of the current timestep.. |
|
Returns one of two values depending on the ordinal of the current timestep. |
Activation function parameters
|
An activation function that returns a constant value if its internal variable is positive. |
|
An activation function that follows a ramp function if its internal variable is positive. |
|
An activation function that follows a logistic function using its interval value. |
Interpolation parameters
|
Parameter value is equal to the interpolation of another parameter |
|
Generic interpolation parameter calculated from current volume |
|
Parameter value is equal to the quadrature of the interpolation of another parameter |
|
Generic interpolation parameter that uses a node's flow at the previous time-step for interpolation. |
Control curve parameters
Base class for all Parameters that rely on a the attached Node containing a control_curve Parameter |
|
|
A generic multi-levelled control curve Parameter. |
A control curve Parameter that interpolates between three or more values |
|
Multiple control curve holder which returns an index not a value |
|
|
A control curve Parameter that interpolates between two or more pairs of values. |
Hydropower parameters
|
A parameter that returns flow from a hydropower generation target. |
Multi-model coupling parameters
|
Parameter that obtains its value from another model's parameter. |
|
Parameter that obtains its value from the flow through a node in another model. |
|
Parameter that obtains its value from the current storage of a node in another model. |
Parameter that obtains its value from another model's parameter. |
Other parameters
|
A Parameter which returns the value from an annual harmonic series |
|
Parameter track the deficit (max_flow - actual flow) of a Node |
|
Parameter that utilises a different child parameter in each scenario ensemble. |
|
Parameter that integrates a piecewise function. |
|
Parameter that provides the flow from a node from the previous time-step. |
|
Parameter that returns the delayed flow for a node after a given number of timesteps or days |
|
Parameter that provides the current volume from a storage node. |
|
Parameter that returns the current discount factor based on discount rate and a base year. |
|
Returns the mean flow of a Node for the previous N timesteps or days. |