gtopt::ReservoirDischargeLimitCoeffs struct

LP constraint coefficients for the drawdown limit.

The stage-level constraint (efin-only formulation since 2026-05-04 — see reservoir_discharge_limit_lp.cpp::add_to_lp for rationale) is:

qeh − slope · efin  ≤  intercept

Equivalently qeh ≤ intercept + slope · efin. At the segment boundary efin = emin the constraint reduces to qeh ≤ intercept + slope · emin, which is feasible (qeh has lb 0) iff the lowest segment satisfies intercept + slope · emin ≥ 0. add_to_lp warns when the input data violates that invariant.

Public variables

Real intercept
RHS upper bound [m³/s].
Real slope
Coefficient on V_avg [m³/s per hm³].