gtopt::sddp_file namespace

File naming patterns for per-scene cut files.

Variables

auto combined_cuts
auto debug_aperture_lp_fmt
auto debug_backward_lp_fmt
auto debug_lp_fmt
auto error_lp_fmt
auto error_scene_cuts_fmt
Error-prefixed cut file pattern for infeasible scenes (scene UID).
auto scene_cuts_fmt
Per-scene cut file pattern: format with scene UID.
auto stop_request
auto stop_sentinel
auto versioned_cuts_fmt
Versioned cut file pattern: format with iteration number.

Variable documentation

auto gtopt::sddp_file::combined_cuts

Combined cut file name (Parquet — typed schema with list<struct<key,val>> coefficients; bit-exact float64 storage).

auto gtopt::sddp_file::debug_aperture_lp_fmt

Debug LP file pattern for aperture clones: scene UID, target phase UID, aperture UID, iteration index. Used by the aperture backward pass when lp_debug is enabled and the current (scene, phase) falls inside the lp_debug_*_min/max filter window. The aperture UID disambiguates the N clones built from the same target phase.

auto gtopt::sddp_file::debug_backward_lp_fmt

Debug LP file pattern for backward-pass tgt LPs (one .lp file per (iter, scene, phase)) immediately before each tgt_li.resolve(opts). Captures the LP exactly as the solver sees it (post-update_lp_for_phase, post-apply_post_load_replay under compress). Active when lp_debug=true AND lp_debug_passes includes backward (or all). No mode tag in the filename — users that want to diff off↔compress dumps configure two separate log_directory paths and diff in bulk.

auto gtopt::sddp_file::debug_lp_fmt

Debug LP file pattern: scene UID, phase UID, iteration index, attempt counter. The attempt counter distinguishes successive writes of the same (scene, phase, iter) cell under the PLP-style backtracking forward pass — every time the loop re-enters a phase (after a backtrack from p → p-1), the LP snapshot carries the accumulated fcuts installed since the last visit, so a separate file is needed to preserve the chronology. attempt=1 is the first visit of that phase in this iteration; subsequent values reflect backtrack re-entries. Uses s{}_p{}_i{}_a{} short form matching error_lp_fmt.

auto gtopt::sddp_file::error_lp_fmt

Error LP file pattern for unrecoverable-infeasibility dumps. Arguments, in order: scene UID, phase UID, iteration index. Written under SDDPOptions::log_directory when the forward pass can produce no feasibility cut (phase 0, or relaxed clone still infeasible) AND SDDPOptions::lp_debug is true. Without lp_debug the dump is suppressed (each LP can be ~10 MB on a CEN-sized case and a stalled run can emit dozens per iteration). LinearInterface::write_lp appends the .lp extension.

auto gtopt::sddp_file::stop_request

Monitoring API stop-request file name: if this file exists, the solver stops gracefully after the current iteration (same behaviour as the sentinel file). Written by the webservice soft-stop endpoint as part of the bidirectional monitoring API. Complements rather than replaces the sentinel mechanism so that external scripts using the raw sentinel still work. The solver checks: sentinel_file exists || stop_request file exists.

auto gtopt::sddp_file::stop_sentinel

Sentinel file name: if this file exists in the output directory, the SDDP solver stops gracefully after the current iteration and saves cuts. Created externally (e.g. by the webservice stop endpoint).