gtopt/fcut_log.hpp file

PLP-style feasibility-cut debug log (plpfact.log analogue).

PLP writes every feasibility-cut event to a dedicated plpfact.log (gated by FactDBL >= 1): the infeasibility detection line, one coefficient line per cut variable, the RHS, and the install confirmation on the destination stage. gtopt mirrors that here as gtopt_fcut.log in the resolved log_directory (sibling of gtopt_<N>.log), gated by sddp_options.fcut_log / --fcut-log.

Record grammar (one line per record, grep-friendly keys, physical units — the emitted SparseRows are already physical-space):

INFEASIBLE iter=<i> scene=<s> phase=<p> cycle=<n> status=<solver status>
mode: <aggregated|multi_cut|state_repair|farkas_recursive> iter=… dest=<p-1>
cut: <Class>:<uid>[:<name>] <var> col=<c> coef=<v>
rhs: <sense> <v>
INSTALLED iter=<i> scene=<s> phase=<p> dest=<p-1> rows=<n>
HOLGURAS iter=<i> scene=<s> phase=<p> mode=<m> fact_eps=<eps>
FAIL iter=<i> scene=<s> phase=<p> status=<st> reason=<why>
ROLLBACK iter=<i> scene=<s> rows=<n>

The mode: + cut:/rhs: + INSTALLED block of one event is written as a single atomic record (forward passes run scene-parallel, so per-line writes would interleave across scenes).

Namespaces

namespace gtopt

Classes

class gtopt::FcutLogWriter
Mutex-serialised writer for the gtopt_fcut.log debug file.