A control curve Parameter that interpolates between two or more pairs of values.
Return values are linearly interpolated between a pair of values depending on the current storage. The first pair is used between maximum and the first control curve, the next pair between the first control curve and second control curve, and so on until the last pair is used between the last control curve and the minimum value. The first value in each pair is the value at the upper position, and the second the value at the lower position. API Reference
Name | Description | Required |
---|---|---|
coming soon...
storage_node
The storage node to compare the control curve(s) to
Yes
control_curves
A list of parameters representing the control curve(s). These are often MonthlyProfileParameters or DailyProfileParameters, but may be any Parameter that returns values between 0.0 and 1.0. If floats are passed they are converted to ConstantParameter
Yes
values
A list of value pairs to interpolate between. The length of the list should be 1 + len(control_curves)
Yes
minimum
The storage considered the bottom of the lower curve, 0-1 (default=0)
Yes
maximum
The storage considered the top of the upper curve, 0-1 (default=1)
Yes