---
title: 'DistFlow: AC Branch-Flow Model in Distribution Networks'
url: https://www.emergentmind.com/topics/distflow
type: topic
---

# DistFlow: AC Branch-Flow Model in Distribution Networks

DistFlow usually denotes the branch-flow formulation of AC power flow on radial distribution networks, in which branch active and reactive power flows, squared voltage magnitudes, and squared current magnitudes are related through power-balance, voltage-drop, and current-flow equations. In contemporary usage, the term covers the classical nonlinear Baran–Wu equations, linearized and second-order-cone relaxations, data-driven formulations built from historical trajectories, and three-phase generalizations for unbalanced feeders; the same name has also been adopted independently in an unrelated reinforcement-learning context [2604.08403][1506.04773][2606.17914][2507.13833].

## 1. Classical branch-flow formulation

In its standard form, DistFlow is posed on a balanced, radial network \(G=(\mathcal N,\mathcal E)\) with a slack bus and directed branches. The canonical state variables are branch active and reactive power flows \(P_{ij},Q_{ij}\), squared line-current magnitude \(\ell_{ij}=|I_{ij}|^2\), and squared bus-voltage magnitude \(v_i=|V_i|^2\). Net nodal injections are denoted \(p_j,q_j\), and line parameters by \(r_{ij},x_{ij}\). A common statement of the model is
\[
P_{ij}=\sum_{k:(j,k)\in\mathcal E}P_{jk}+p_j+r_{ij}\ell_{ij},
\]
\[
Q_{ij}=\sum_{k:(j,k)\in\mathcal E}Q_{jk}+q_j+x_{ij}\ell_{ij},
\]
\[
v_j=v_i-2\bigl(r_{ij}P_{ij}+x_{ij}Q_{ij}\bigr)+(r_{ij}^2+x_{ij}^2)\ell_{ij},
\]
\[
P_{ij}^2+Q_{ij}^2=v_i\ell_{ij}.
\]
These equations encode branch-flow balance, Ohm’s law in voltage-drop form, and the exact current–power–voltage relation on each line [2604.08403][2307.09380].

The model is exact for steady-state AC power flow on a radial feeder, but it is nonconvex because of the quadratic equality \(P_{ij}^2+Q_{ij}^2=v_i\ell_{ij}\) [2604.08403]. Relative to bus-injection formulations, DistFlow eliminates explicit voltage-angle variables and works directly with branch quantities, which makes it structurally natural for feeders whose topology is a tree [2009.02088]. In a numerical comparison on the IEEE 33-bus radial distribution system, AC-OPF and exact DistFlow were reported to coincide exactly for the flexibility-domain problem considered there [2009.02088].

## 2. Linearizations and convex relaxations

A large part of the DistFlow literature concerns tractable approximations of the nonlinear model. The classical simplified DistFlow, often written sDistFlow or LinDistFlow, neglects the loss terms \(r_{ij}\ell_{ij}\), \(x_{ij}\ell_{ij}\), and \((r_{ij}^2+x_{ij}^2)\ell_{ij}\), yielding
\[
P_{ij}=\sum_{k:(j,k)}P_{jk}+p_j,\qquad
Q_{ij}=\sum_{k:(j,k)}Q_{jk}+q_j,
\]
\[
v_i-v_j=2\bigl(r_{ij}P_{ij}+x_{ij}Q_{ij}\bigr).
\]
The resulting model is linear, and in matrix form it becomes \(v^2\approx v_0^2\mathbf 1+Rp+Xq\) after appropriate elimination of branch variables [2209.04508][2011.09620]. This approximation is accurate when voltage deviations are small, angle differences are small, and losses are modest, but it omits the nonlinear coupling that represents ohmic losses and current magnitudes [2011.09620][2501.06917].

A second line of development replaces the nonconvex equality by the conic inequality
\[
P_{ij}^2+Q_{ij}^2\le v_i\ell_{ij},
\]
which yields a second-order-cone program once the remaining DistFlow constraints are written in \(v\)-space [1904.11559][2307.09380]. This relaxation preserves the exact branch balances and voltage-drop equations while convexifying the current relation. In the Convex DistFlow formulation, the same idea is often written as \(|S_{ij}|^2\le W_i l_{ij}\), where \(W_i=|V_i|^2\). For transmission systems, DistFlow has been extended to include bus shunts, line charging, and transformers, and the extended Convex DistFlow relaxation was shown to be equivalent to the corresponding extended SOC relaxation [1506.04773].

Several papers modify the linearization itself rather than only relaxing the nonlinear constraint. A parameterized linear power-flow model introduces a branch-specific parameter \(\alpha_{ij}\) through
\[
\hat v_i-\hat v_j=(2-\hat\alpha_{ij})(r_{ij}P_{ij}+x_{ij}Q_{ij}),
\]
and sDistFlow is recovered exactly by setting \(\hat\alpha_{ij}=0\) [2209.04508]. A different “modified DistFlow” formulation replaces \(P_{ij}\) and \(Q_{ij}\) by their ratios to voltage magnitude, using these ratios as state variables so that conventional cold-start linearization errors are reduced [2007.02074].

## 3. Extensions beyond balanced radial feeders

Although DistFlow originated as a balanced radial feeder model, later work generalizes it in several directions. The most direct is the three-phase unbalanced extension “Dist3Flow,” which uses the real and imaginary components of nodal voltages together with active and reactive power flows as state variables. Lines are represented by nonlinear forward and backward equations, loads are modeled with ZIP behavior, and DERs are modeled by P–Q control. The same formulation accommodates both radial and closed-ring topologies by changing the boundary conditions, and it is solved by a backward/forward sweep algorithm [2606.17914]. In validation against OpenDSS on a six-node unbalanced feeder derived from the IEEE 13-node test feeder, the reported maximum voltage magnitude error was \(E_V\le 5\times 10^{-5}\) p.u., the maximum phase-angle error was \(E_\delta=0^\circ\), and convergence occurred in fewer than 10 iterations for all tested cases [2606.17914].

A different extension takes a continuum limit along a long feeder. In “DistFlow ODE,” the discrete branch equations are homogenized into ordinary differential equations for \(P(x)\), \(Q(x)\), and \(V(x)\) along the feeder length, with boundary conditions at the substation and end of line [1209.5776]. This continuous model supports feeder-level analyses of voltage drop, total import, power losses, and critical feeder length, and it can include inverter-based, voltage-dependent reactive-power control. One notable result is that sufficiently long PV-rich feeders may exhibit multiple stable solutions, with the associated risk that a short fault near the head of the line can return the system to a low-voltage branch rather than the high-voltage operating point [1209.5776].

DistFlow has also been extended from distribution to transmission settings. The transmission-oriented extension retains the branch-flow viewpoint while adding bus shunts, line charging, and off-nominal transformer taps, thereby enlarging the original applicability of Convex DistFlow without abandoning its SOC structure [1506.04773]. Taken together, these developments show that DistFlow is not restricted to the single-phase, lossless, or strictly radial simplifications that are often associated with introductory presentations.

## 4. Data-driven inference, state estimation, and sensing

Recent work uses DistFlow as a structural prior in data-driven estimation. A notable example is the data-driven power flow framework for balanced radial distribution networks with sparse real-time data. There, the inputs are \(u(t)=\mathrm{col}(p(t),q(t))\), the outputs are \(y(t)=\mathrm{col}(P(t),Q(t),\ell(t),V(t),V_0(t))\), and block-Hankel matrices built from historical trajectories provide a behavioral representation. Under the rank condition
\[
\mathrm{rank}[H_1(u),H_1(y)]=3n+1,
\]
a candidate pair \((u,y)\) satisfies the affine DistFlow equations if and only if there exists a coefficient vector \(g\) with \(u=H_1(u)g\) and \(y=H_1(y)g\), while the nonlinear current relation is imposed explicitly or through an SOCP relaxation [2604.08403].

The same framework couples behavioral DistFlow with a sensor-placement problem based on Kron reduction and a mixed-integer assignment model. The goal is to choose a measured subset of buses under a sensor budget while minimizing worst-case voltage-reconstruction error and respecting radial-network structure [2604.08403]. On 47-, 85-, and 141-node feeders, the reported maximum voltage-magnitude error was at most \(1\times 10^{-3}\) p.u., with a sensor budget as low as \(25\%\) of nodes and a typical per-step solution time below \(0.1\) s; the reduced real-time SOCP was reported to solve in less than \(100\) ms [2604.08403].

State-estimation work extends DistFlow in another practical direction by adding shunt elements such as cable capacitances. In an enhanced DistFlow weighted least-squares estimator, shunt terms are inserted into the reactive-power balance, and measurement-device placement is determined by a greedy procedure that adds sensors until voltage-magnitude and line-current accuracy limits are satisfied [2007.15050]. DistFlow-derived bounds have also been used for safety certification rather than direct estimation: in resilient software-update scheduling for intelligent electronic devices, nonlinear DistFlow equations are transformed into affine worst-case voltage and current bounds, and the resulting rollout problem is reformulated as a vector bin-packing problem solvable in real time, including on a benchmark with 10,476 buses [2307.12277].

## 5. Optimization and control applications

DistFlow is deeply embedded in distribution-system optimization. In storage planning, it is used in a mixed-integer quadratically constrained program for the optimal sizing, siting, and operation of energy storage systems, where the AC network constraints are written in DistFlow form and the nonconvex current relation is relaxed to an SOC inequality [2307.09380]. In microgrid resilience under wildfire uncertainty, SOC-relaxed DistFlow serves as the network model in a two-stage stochastic optimal power flow, with scenario-dependent line outages and PV reductions encoded in the second stage [2405.10435]. In service-restoration and hardening problems, linearized DistFlow underlies stochastic multi-period MILP models for undergrounding lines and coordinating mobile generators while preserving radiality [2204.10407].

The same modeling pattern appears in more recent multi-energy and transportation-coupled problems. A thermal-electrical co-optimization framework for active distribution grids with EVs and heat pumps uses convex DistFlow to couple DER schedules, building thermal dynamics, voltage limits, and line ampacity limits. On a realistic 61-node LV network, the paper reports reductions of \(41\%\) in transformer aging, \(54\%\) in losses, and complete elimination of voltage violations, while convex DistFlow maintained sub-second runtimes across the tested DER penetrations [2601.21651]. In the open-source platform V2Sim, an optimized DistFlow model is used to represent the power distribution network side of microscopic vehicle-to-grid simulations, with EV charging loads entering as time-varying nodal demands and slow-charging-station V2G injections treated as dispatchable generation [2412.09808].

DistFlow also supports optimization under discrete structural decisions. A mixed-integer linear programming approach to phase allocation in unbalanced networks uses linearized DistFlow together with binary phase-consistency constraints so that downstream phase configurations cannot introduce phases absent upstream [2501.06917]. In distributed control and coordination, the SOCP relaxation of a DistFlow-based OPF has been solved by distributed algorithms over time-varying communication networks using primal–dual iterations, consensus, and gradient tracking [1904.11559].

## 6. Accuracy, exactness, and computational trade-offs

A recurring issue in the DistFlow literature is the trade-off between fidelity and tractability. Exact DistFlow retains losses and branch-current physics, but it remains nonconvex. Linearized DistFlow is far cheaper computationally, yet its omissions are systematic: sDistFlow always overestimates voltages and its error grows as loading departs from the zero-load linearization point [2209.04508]. On the IEEE 33-bus system, the reported maximum voltage-magnitude error of sDistFlow can exceed \(0.0025\) p.u. at base loading and reach \(0.015\) p.u. at \(1.5\times\) nominal loading, while parameterized corrections remain more accurate across the same range [2209.04508]. Offline parameter tuning can push the linear approximation substantially closer to nonlinear DistFlow: optimized LinDistFlow was reported to improve \(L_1\)-norm and \(L_\infty\)-norm voltage losses by up to \(92\%\) and \(88\%\), respectively, relative to traditional LinDistFlow [2404.05125].

The status of SOCP relaxations is more nuanced than the common presentation that “radiality implies exactness.” Several papers state sufficient conditions under which the relaxation is exact, including radial topology and mild loading assumptions, and some recent case studies found numerical exactness even when theoretical conditions were violated [2604.08403][2601.21651]. In the 61-node active-distribution-grid co-optimization study, the maximum gap
\[
\max_{(i,j)}\bigl|\ell_{ij}v_i-(P_{ij}^2+Q_{ij}^2)\bigr|
\]
at the SOCP solution was reported to be on the order of \(10^{-6}\) or smaller [2601.21651]. At the same time, the wildfire microgrid study notes that heavy loading or extreme conditions can make the relaxation inexact and yield nonphysical solutions, requiring feasibility checks or adjustment steps [2405.10435].

A sharper controversy appears in TSO–DSO flexibility-domain identification. In that comparison, exact DistFlow and AC-OPF coincided on the IEEE 33-bus feeder, whereas DistFlow-SOCP had the worst accuracy among AC-OPF, DistFlow, DistFlow-SOCP, and LinDistFlow [2009.02088]. The reported 24-hour computational costs for approximately 4,800 OPF solves were \(1798.3\) s for AC-OPF, \(666.2\) s for exact DistFlow, \(478.8\) s for DistFlow-SOCP, and \(2.3\) s for LinDistFlow [2009.02088]. The significance of that result is not that the conic relaxation is generally unusable, but that its approximation error is application-dependent and can be more consequential than its popularity suggests.

## 7. Other uses of the term

Outside power systems, “DistFlow” has been used as the name of an unrelated fully distributed reinforcement-learning framework for large-language-model post-training [2507.13833]. In that context, DistFlow denotes a multi-controller architecture in which each worker carries a DAG worker, distributed dataloader, and distributed databuffer, eliminating the centralized node used by hybrid-controller designs. The framework was reported to achieve near-linear scalability up to thousands of GPUs and up to a \(7\times\) end-to-end throughput improvement over state-of-the-art frameworks [2507.13833].

In the power-systems literature, however, DistFlow remains identified primarily with the branch-flow modeling paradigm. Its continuing importance lies in the fact that the same core equations support exact radial AC analysis, linear approximations, SOC relaxations, three-phase and transmission-oriented generalizations, sparse-sensor state estimation, and a wide spectrum of optimization models for modern active distribution networks.

Source: https://www.emergentmind.com/topics/distflow