ReservoirDischargeLimit struct
Volume-dependent discharge limit for a reservoir.
Models a piecewise-linear upper bound on the stage-average hourly discharge as a function of reservoir volume. The LP formulation creates one qeh variable per stage and links it to block-level waterway flows via an averaging constraint.
Public static variables
- static LPClassName class_name
Public variables
- OptActive active
- Operational status (default: active when unset).
- Name name
- SingleId reservoir
- std::vector<ReservoirDischargeLimitSegment> segments
- OptSingleId turbine
- Uid uid
- Unique discharge-limit identifier.
- OptSingleId waterway
- Waterway uid or name whose flow is limited.
Variable documentation
static LPClassName gtopt:: ReservoirDischargeLimit:: class_name
Canonical class-name constant used in LP row labels and config fields like VariableScale::class_name. Single source of truth — ReservoirDischargeLimitLP exposes no separate ClassName member; callers reach the constant via ReservoirDischargeLimit::class_name directly (or ReservoirDischargeLimitLP::Element::class_name in generic contexts).
std::vector<ReservoirDischargeLimitSegment> gtopt:: ReservoirDischargeLimit:: segments
Piecewise-linear segments (sorted ascending by volume breakpoint). At least one segment is required.
OptSingleId gtopt:: ReservoirDischargeLimit:: turbine
Turbine uid or name whose built-in flow is limited.
OptSingleId gtopt:: ReservoirDischargeLimit:: waterway
Waterway uid or name whose flow is limited.
Source of the flow being limited. Exactly one of waterway / turbine must be set (enforced by validate_planning). waterway is the legacy reference for the classic Reservoir → Waterway → drain topology; turbine is the reference for built-in waterway turbines (Turbine.junction_a/b) that own their own flow column instead of going through a Waterway. In both cases the discharge piecewise row caps the per-block flow [m³/s] of the referenced element against the reservoir volume.