Description Usage Arguments Value Examples

Returns the required storage for given inflow time series, yield, and target time-based reliability. Assumes standard operating policy. Storage is computed iteratively using the bi-section method.

1 2 |

`Q` |
vector or time series object. Net inflow totals to the reservoir. Recommended units: Mm^3 (Million cubic meters). |

`yield` |
the required yield. Must be same volumetric units as Q. |

`reliability` |
numerical. The required time-based reliability. |

`demand_profile` |
a vector of factors with length = frequency(Q). Represents within-year demand profile. Defaults to constant release if left blank. |

`plot` |
logical. If TRUE (the default) the storage behavior diagram and release time series are plotted. |

`S_initial` |
numeric. The initial storage as a ratio of capacity (0 <= S_initial <= 1). The default value is 1. |

`max_iterations` |
Maximum number of iterations for yield computation. |

`double_cycle` |
logical. If TRUE the input series will be replicated and placed end-to-end to double the simulation. (Recommended if the critical period occurs at the end of the recorded inflow time series) |

Returns the required storage capacity necessary to supply specified yield with specified reliability.

1 2 3 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.