sddp_capacity_cuts.hpp file
Capacity-space projection of stored SDDP Benders cuts — the cut-extraction API for the OptGen-style investment master loop (deliverable 3 of the SDDiP campaign).
After an SDDP solve, the phase-0 optimality cuts bound the expected cost-to-go as a function of EVERY phase-0 outgoing state variable — reservoir energies AND the capacity accounting states (capainst / capacost, registered by CapacityObjectBase::add_to_lp via add_state_col). An investment master MIP needs those same cuts restricted to the capacity coordinates:
θ ≥ rhs − Σ_j coeff_j · K_j
(the stored row convention is α + Σ_j coeff_j·x_j ≥ rhs, so the master-facing support is rhs − Σ coeff·K). extract_capacity_cuts performs that projection, resolving every stored coefficient against the (scene, phase) state-variable registry and keeping exactly the capainst / capacost coordinates.
Projection caveat (design doc §7.3, docs/analysis/investigations/sddp/sddip_integer_expansion_2026-07.md): dropping a non-capacity coordinate (e.g. the reservoir efin) is exact only when that coordinate is pinned at the same value across master iterations (it is: phase-0 incoming reservoir state is the eini data). dropped_state_coefficients reports how many coordinates were projected away so callers can tell an exact pure-expansion projection (0 dropped) from the mixed-state case.
Namespaces
- namespace gtopt
Classes
- struct gtopt::CapacityCut
- A stored optimality cut projected onto capacity coordinates.
- struct gtopt::CapacityCutCoefficient