gtopt::line_losses::SegGeom struct

Geometry of one piecewise-linear segment built by add_segments for the static PWL approximation of the convex loss curve ℓ(f) = (R/V²)·f² on [0, envelope].

  • width — Δf covered by this segment (becomes the seg col's upper bound when caps are enforced; the LP picks Σ seg_k = |f|).
  • slope — chord slope of ℓ/(R/V²) on this segment, i.e. the geometric pre-factor. The actual loss-row coefficient is slope × R / V².

Public variables

double slope
double width