gtopt::CascadeLevelStats struct

Statistics collected for each cascade level after solving.

Public variables

ApertureSummary apertures
Backward-pass aperture statistics of this level (all of its solves).
bool converged
Whether convergence tolerance was met.
int cuts_added
double elapsed_s
Wall-clock time for this level.
double gap
Final relative gap.
double gap_delta
gap − gap_initial (signed; negative = closed)
double gap_initial
First training iter's gap (level entry gap).
bool have_gap_delta
int iterations
Number of SDDP iterations (excludes final fwd pass).
double lower_bound
Final lower bound.
LpMatrixOptions lp_options
std::string name
Level name (from config or auto-generated).
double upper_bound
Final upper bound.

Variable documentation

int gtopt::CascadeLevelStats::cuts_added

Total cuts added across all iterations

bool gtopt::CascadeLevelStats::have_gap_delta

False when the level produced ≤1 iter (then gap_initial / gap_delta are undefined and the per-level / summary logs must suppress them).

LpMatrixOptions gtopt::CascadeLevelStats::lp_options

LP build options of the PlanningLP this level solved (inherited from the caller's PlanningLP when the level rebuilt its LP).