gtopt::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 variables

OptActive active
Operational status (default: active)
Name name
Human-readable name.
SingleId reservoir
ID of the reservoir (volume source)
std::vector<ReservoirDischargeLimitSegment> segments
Uid uid
Unique identifier.
SingleId waterway
ID of the waterway whose flow is limited.

Variable documentation

std::vector<ReservoirDischargeLimitSegment> gtopt::ReservoirDischargeLimit::segments

Piecewise-linear segments (sorted ascending by volume breakpoint). At least one segment is required.