Usage
storage(Q, yield, reliability, demand_profile, plot = TRUE, S_initial = 1, max_iterations = 50, double_cycle = FALSE)
Arguments
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
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)