SolutionRow struct
#include <gtopt/solution_csv.hpp>
One solution.csv row: per-(scene, phase) status plus the cumulative solver-effort counters harvested from that cell's SolverStats.
Public variables
- double gap
- Final SDDP gap (0.0 for monolithic).
- double gap_change
- Final SDDP stationary gap-change (1.0 for monolithic).
- std::string_view gtopt_revision
- std::string_view gtopt_version
- std::size_t infeasible_count
- double kappa
- Cell condition number, or -1 when unavailable.
- double max_kappa
- Run-wide max kappa (SDDP summary; -1 for monolithic).
- double obj_value
- PhaseUid phase_uid
- double scale_objective
- SceneUid scene_uid
- std::size_t solve_calls
- initial_solve + resolve count on this cell
- double solve_ticks
- Cumulative deterministic solver ticks on this cell.
- double solve_time_s
- Cumulative solve wall seconds on this cell.
- int status
Variable documentation
std::string_view gtopt:: SolutionRow:: gtopt_version
The gtopt build that wrote the file (build_info()): the version, e.g. "1.1.0" or "1.2.0-dev", and the git describe revision of its source tree ("unknown" outside a git checkout). Same on every row.
std::size_t gtopt:: SolutionRow:: infeasible_count
Non-optimal solves (feasibility-cut hotspots)
double gtopt:: SolutionRow:: obj_value
Cell objective in PHYSICAL cost units (LinearInterface:: get_obj_value(): the LP-raw objective × scale_objective, constants included). Same convention for monolithic, SDDP and cascade — all three go through PlanningLP::write_out().
double gtopt:: SolutionRow:: scale_objective
Objective scale factor of the cell LP: obj_value / scale_objective is the LP-raw objective the solver reported. Emitted so consumers (e.g. the golden comparator tools/gtopt_compare_csv.py) can convert between raw and physical units without re-reading the case options.
int gtopt:: SolutionRow:: status
CLP status code, or -1 for a never-solved cell