StoredCut struct
#include <gtopt/sddp_cut_store.hpp>
A serialisable representation of a Benders cut.
Public functions
Public variables
- std::vector<std::pair<ColIndex, double>> coefficients
- Coefficient pairs: (column_index, coefficient).
- int extra
- IterationIndex iteration_index
- PhaseUid phase_uid
- Phase UID this cut was added to.
- ColIndex pivot_col
- double rhs
- Right-hand side (lower bound).
- RowIndex row
- double scale
- Row scale (physical → LP), mirrors SparseRow::scale.
- SceneUid scene_uid
- CutType type
Variable documentation
int gtopt:: StoredCut:: extra
4th element of :type:IterationContext — a free int discriminator that disambiguates multi-cut siblings (forward pass under multi_cut mode emits N feasibility cuts per (scene, phase) cell per iter; they share everything except this offset). Sentinel -1 = "no source context was
attached at store time"; matches :member:CutKey::extra default and round-trips unchanged.
IterationIndex gtopt:: StoredCut:: iteration_index
SDDP iteration index at which this cut was generated. Populated from the source SparseRow's :type:IterationContext at store time. Authoritative for all consumers that previously parsed the cut name (which has been removed).