DynamicAssignment struct
#include <gtopt/line_losses.hpp>
Result of compute_dynamic_loss_layout per line.
Encodes the two outputs of the dynamic rule:
Ksegment count assigned by the cube-root rule (Phase 1 — identical tocompute_adaptive_loss_segments)layoutPWL layout chosen by the mean-error allocator (Phase 2 —uniformfor most lines,midpointfor the heaviest mean-error contributors).
K = 0 and layout = LinePwlLayout::uniform signals a lossless line (R ≤ 0 or fmax ≤ 0); the caller's PWL builder should omit it.
Public variables
- int K
- LinePwlLayout layout