gas_slp.hpp file
Sequential LP for linearised (meshed) gas pipes.
weymouth_mode: linearized pipes carry one equality per block, linearised at a reference flow f₀. After the first solve, gas_slp_refine repeats
- f₀ ← f₀ + ω (f − f₀) on every linearised pipe (
GasPipeLP::capture_slp_point, solution read only); SystemLP::update_lp()— the standard re-linearisation dispatch shared with ReservoirSeepageLP / FlowRight / ReservoirDischargeLimit, which re-issues the rows' coefficients (recorded by the LP replay buffer for low-memory modes);- re-solve,
up to gas_options.slp_iterations times, stopping when the largest relative flow change falls below slp_tolerance. At the fixed point f = f₀ the secant (or tangent) row is the exact Weymouth equation π_a − e^s π_b = K_e f|f|.
Monolithic only: PlanningLP::resolve_scene_phases calls it after each (scene, phase) solve. SDDP re-issues the rows at the stored f₀ in every forward pass (update_lp) but does not move f₀.
Namespaces
- namespace gtopt
Classes
- struct gtopt::GasSlpStats
- Outcome of one
gas_slp_refinecall.