gtopt/lp_stats.hpp file

Static analysis of LP coefficient matrices for numerical conditioning diagnostics.

Provides ScenePhaseLPStats and log_lp_stats_summary() — a lightweight reporting facility that logs min/max absolute coefficient, ratio, and conditioning quality per scene/phase. When the global coefficient ratio is below a configurable threshold the output is a single summary line; otherwise a per-scene/phase table is printed.

The actual min/max/nnz values are computed inside LinearProblem::flatten() when LpMatrixOptions::compute_stats is true, and stored in the FlatLinearProblem struct.

Namespaces

namespace gtopt

Classes

struct gtopt::RowTypeStats
Per-row-type coefficient statistics.
struct gtopt::ScenePhaseLPStats
Label + stats for a single scene/phase LP.