source/line_lindistflow.cpp file

LinDistFlow rows of a line (network_model = "lindistflow").

Per block, with P the signed active flow A→B (the line's flow columns), Q a free reactive-flow column, w the buses' squared voltages (BusLP), r/x the series ohms at the line's voltage V [kV]:

Q balance: −Q at bus A, +Q at bus B voltage: w_a/t² − w_b − (2r/V²)·P − (2x/V²)·Q = 0 taps: fixed t = tap_ratio, or y = w_a/t² with w_a/t_max² ≤ y ≤ w_a/t_min² (exact for continuous t) MVA polygon: cos θ_k·P + sin θ_k·Q ≤ S, θ_k = 2πk/n, k = 0..n−1 (S = capacity column when the line expands, else the forward thermal limit of the flow columns) candidates: a line with no installed capacity and an expansion column C relaxes the drop row to |drop| ≤ M·(1 − C/C_max), M from the voltage bounds, plus |(2r/V²)·P + (2x/V²)·Q| ≤ M·C/C_max. With α = C/C_max the pair is the McCormick hull of the bilinear "drop of a fraction α of the circuit" z = α·(w_a/t² − w_b): exact with integer modules, and the LP relaxation lets a fractional build carry only the flow its fraction of the voltage band allows

Units: kV² = Ω·MW, so 2(rP + xQ)/V² is in p.u.² of the bus base. The model neglects the series losses r·(P² + Q²)/V² (the P-loss modes of use_line_losses still apply to the active balance).

Namespaces

namespace gtopt