> For the complete documentation index, see [llms.txt](https://water-strategy.gitbook.io/waterstrategy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://water-strategy.gitbook.io/waterstrategy/modeling-basics/parameters/control-curve-parameters/control-curve-piecewise-interpolated-parameter.md).

# Control Curve Piecewise Interpolated Parameter

## General Description

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](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.control_curves.ControlCurvePiecewiseInterpolatedParameter.html)

## Attributes

<table><thead><tr><th width="158">Name</th><th width="473">Description</th><th>Required</th></tr></thead><tbody><tr><td>storage_node</td><td>The storage node to compare the control curve(s) to</td><td>Yes</td></tr><tr><td>control_curves</td><td>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 <em>ConstantParameter</em></td><td>Yes</td></tr><tr><td>values</td><td>A list of value pairs to interpolate between. The length of the list should be 1 + len(control_curves)</td><td>Yes</td></tr><tr><td>minimum</td><td>The storage considered the bottom of the lower curve, 0-1 (default=0)</td><td>Yes</td></tr><tr><td>maximum</td><td>The storage considered the top of the upper curve, 0-1 (default=1)</td><td>Yes</td></tr></tbody></table>

## Example

coming soon...

```json
{

}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://water-strategy.gitbook.io/waterstrategy/modeling-basics/parameters/control-curve-parameters/control-curve-piecewise-interpolated-parameter.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
