gtopt::FormatSI struct

Lazy SI-suffix wrapper. Holds a double; materialises into the formatted string only when consumed by {} (which fires AFTER spdlog's runtime level filter) or via the implicit operator std::string() for non-format-arg callers.

Used at ~5 sites per (iter, scene, phase) of an SDDP run: forward opex=…, backward cut z=…→α≥…, tgt re-solve z=…. On CEN-scale (16 scen × 51 phases × 30 iter) that's ~120 K format_si evaluations per run; at INFO+ level filter every one of those allocs is wasted.

Constructors, destructors, conversion operators

operator std::string() const

Public variables

double value