gtopt/reservoir_seepage_lp.hpp file

Linear Programming representation of a ReservoirSeepage system.

The ReservoirSeepageLP class provides a linear programming (LP) compatible representation of a ReservoirSeepage system for optimization problems.

Per-stage slope/constant schedules (from plpmanfi.dat Parquet files) are read at construction time and applied directly to the LP matrix coefficients and RHS during add_to_lp() — analogous to how ReservoirProductionFactor updates the turbine conversion-rate coefficient.

When the ReservoirSeepage has piecewise-linear segments, update_lp() selects the active segment based on the reservoir's current volume (vini from the previous phase) and updates the LP constraint coefficients and RHS.

Namespaces

namespace gtopt

Classes

class gtopt::ReservoirSeepageLP
LP wrapper for ReservoirSeepage systems.
struct gtopt::ReservoirSeepageLP::ReservoirSeepageState
Tracks the volume columns and current LP state for coefficient updates.