reservoir_discharge_limit_lp.cpp file
Implementation of ReservoirDischargeLimitLP methods.
Implements the LP formulation for volume-dependent peak-discharge limits. For each (scenario, stage, block) triple emits one row flow_b - slope·efin ≤ intercept, enforcing the physical penstock cap on every block independently (max-of-blocks). When piecewise-linear segments are present, update_lp() dynamically adjusts coefficient/RHS on every block-level row of the active stage from the current reservoir volume.
Namespaces
- namespace gtopt