gtopt/reservoir_production_factor_lp.hpp file

LP representation of reservoir-dependent turbine efficiency.

Provides the ReservoirProductionFactorLP class which manages the LP coefficient update for turbines whose conversion rate varies with the hydraulic head (reservoir volume).

During the initial LP build (add_to_lp), this class locates the turbine's conversion-rate constraint row and the waterway flow column, stores their indices, and computes the initial conversion rate from the reservoir's initial volume (eini).

During SDDP forward-pass iterations, update_conversion_coeff() recomputes the conversion rate from the current reservoir volume and calls LinearInterface::set_coeff() to update the LP matrix in-place.

Namespaces

namespace gtopt

Classes

struct gtopt::ReservoirProductionFactorLP::CoeffIndex
Per-block conversion row and flow column indices for coefficient updates.
class gtopt::ReservoirProductionFactorLP
LP representation of a ReservoirProductionFactor element.