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). |
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 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. |
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 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. |
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 returns the current discount factor based on discount rate and a base year. |