The DistFlow equations are a set of recursive algebraic equations that model the steady-state behavior of radial distribution networks, where power flows in a single direction from a substation to loads without loops. Unlike the general AC power flow equations used for meshed transmission systems, DistFlow leverages the tree topology to calculate voltage magnitudes and branch power flows sequentially from the terminal nodes back toward the source, dramatically reducing computational complexity.
Glossary
DistFlow Equations

What is DistFlow Equations?
The DistFlow equations are a simplified recursive branch-flow formulation specifically derived for modeling steady-state power flow in radial electrical distribution networks.
The formulation expresses the active power, reactive power, and squared voltage magnitude at a receiving node as functions of the sending-end values minus branch losses and voltage drops. This structure makes DistFlow the foundational engine for network reconfiguration algorithms, Volt-VAR optimization, and service restoration solvers, as it can be linearized into a convex form suitable for integration with Mixed-Integer Linear Programming (MILP) frameworks.
Key Characteristics of DistFlow Equations
The DistFlow equations form a simplified recursive power flow model specifically derived for radial distribution networks, enabling efficient voltage and branch flow calculations without the computational burden of full Newton-Raphson methods.
Recursive Branch Flow Formulation
DistFlow models power flow as a set of recursive equations that propagate from the substation outward to feeder endpoints. Unlike the full AC power flow, DistFlow leverages the radial topology to calculate branch flows and bus voltages sequentially.
- Real power flow: P_{k+1} = P_k - r_k · (P_k² + Q_k²)/V_k² - p_{k+1}
- Reactive power flow: Q_{k+1} = Q_k - x_k · (P_k² + Q_k²)/V_k² - q_{k+1}
- Voltage magnitude: V_{k+1}² = V_k² - 2(r_k·P_k + x_k·Q_k) + (r_k² + x_k²)(P_k² + Q_k²)/V_k²
This formulation eliminates the need for iterative Jacobian matrix inversions, making it computationally efficient for real-time applications.
Linearized DistFlow Approximation
For many optimization problems, the full DistFlow equations are linearized by neglecting the quadratic loss terms. This simplification, known as LinDistFlow, assumes losses are small relative to line flows.
- Linearized voltage drop: V_{k+1} ≈ V_k - (r_k·P_k + x_k·Q_k)/V_0
- Lossless branch flow: P_{k+1} = P_k - p_{k+1}, Q_{k+1} = Q_k - q_{k+1}
This approximation transforms the power flow into a linear set of equations, enabling formulation as a convex optimization problem suitable for mixed-integer linear programming solvers. The error introduced is typically less than 1% for well-designed distribution feeders.
Backward/Forward Sweep Algorithm
The DistFlow equations are solved computationally using the Backward/Forward Sweep (BFS) method, which exploits the radial structure for guaranteed convergence.
- Backward sweep: Starting from the terminal nodes, calculate branch currents by summing downstream loads and losses, propagating toward the substation
- Forward sweep: Starting from the substation with a known voltage, calculate voltage drops along each branch using the currents computed in the backward pass
- Iteration: Repeat until voltage magnitudes converge within a specified tolerance
BFS converges in 3-5 iterations for most distribution networks, compared to 10-20 iterations for Newton-Raphson on the same system.
Convex Relaxation for Optimal Power Flow
When embedded in optimization problems like network reconfiguration or Volt-VAR control, the DistFlow equations are relaxed using Second-Order Cone Programming (SOCP) to guarantee global optimality.
- Define auxiliary variables: l_k = (P_k² + Q_k²)/V_k² (squared current), v_k = V_k² (squared voltage)
- The non-convex equality l_k = (P_k² + Q_k²)/v_k is relaxed to the convex inequality: l_k ≥ (P_k² + Q_k²)/v_k
- This SOCP relaxation is exact for radial networks under mild conditions, meaning the relaxed solution satisfies the original non-convex constraints
This technique enables provably optimal solutions for problems that would otherwise be NP-hard.
Integration with State Estimation
DistFlow equations serve as the measurement model in distribution system state estimation (DSSE), relating sensor measurements to unknown bus voltages.
- Pseudo-measurements: Historical load profiles are treated as virtual measurements at unmonitored nodes, weighted by their variance
- Weighted Least Squares (WLS): The estimator minimizes the sum of squared residuals between measured and calculated values using DistFlow constraints
- Observability analysis: DistFlow enables assessment of whether the available measurement set is sufficient to uniquely determine all bus voltages
The recursive structure allows hierarchical state estimation, where feeder segments can be solved independently before aggregating results.
Three-Phase Unbalanced Extension
Standard DistFlow assumes balanced three-phase operation, but distribution systems are inherently unbalanced due to single-phase loads and asymmetric line configurations. The three-phase extension models each phase independently with mutual coupling.
- Phase impedance matrix: Z_{abc} ∈ ℂ^{3×3} captures self and mutual impedances between phases
- Coupled power flow: P_{a,k+1} depends on currents in all three phases through the full impedance matrix
- Neutral and ground modeling: The return path is explicitly modeled using Carson's equations for earth return impedance
This extension is critical for accurate voltage estimation in networks with high penetrations of single-phase rooftop solar.
DistFlow vs. Newton-Raphson Power Flow
Contrasting the recursive branch-flow formulation with the iterative nodal admittance method for solving steady-state voltages and flows in power networks.
| Feature | DistFlow | Newton-Raphson | Backward/Forward Sweep |
|---|---|---|---|
Network topology requirement | Radial only | Meshed or radial | Radial only |
State variable formulation | Branch power flows and squared voltage magnitudes | Nodal voltage magnitude and angle | Branch currents and nodal voltages |
Jacobian matrix construction | Not required | Required; updated each iteration | Not required |
Computational complexity per iteration | O(N) linear | O(N^3) cubic | O(N) linear |
Convergence rate | Linear | Quadratic | Linear |
Handles high R/X ratio lines | |||
Suitable for real-time distribution automation | |||
Typical iterations to convergence | 3-5 | 2-4 | 3-6 |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about the derivation, application, and limitations of DistFlow equations in radial distribution network analysis.
DistFlow equations are a simplified, recursive set of power flow equations specifically derived for radial distribution networks. Unlike the Newton-Raphson method used for meshed transmission systems, DistFlow exploits the tree-like topology of distribution feeders to calculate voltage magnitudes and branch power flows with high computational efficiency. They are used because traditional AC power flow methods often diverge on distribution systems due to high R/X ratios and long, radial topologies. The equations model the flow of active power P, reactive power Q, and the squared voltage magnitude V² from the substation outward to the feeder endpoints, making them ideal for real-time optimization tasks like Volt-VAR control and feeder reconfiguration.
Related Terms
Master the ecosystem surrounding DistFlow equations. These concepts are essential for understanding how simplified power flow models enable real-time grid optimization and automation.
Backward/Forward Sweep
The iterative load flow algorithm that directly implements the DistFlow logic. It calculates branch currents from the load end backward toward the substation, then updates voltage magnitudes from the source forward to the endpoints.
- Converges reliably in 3-5 iterations for radial networks
- Avoids the Jacobian matrix inversions required by Newton-Raphson
- Handles high R/X ratios that cause traditional methods to diverge
- Forms the computational core of most distribution automation platforms
Radiality Constraint
A fundamental operational rule requiring the distribution network to maintain a tree structure with no closed loops. DistFlow equations are only valid under this topology.
- Enables simple protection coordination with unidirectional fault currents
- Each load node has exactly one parent source node
- Reconfiguration algorithms must verify radiality after every switching operation
- Violations create circulating currents that invalidate the DistFlow voltage drop assumptions
Network Reconfiguration Algorithm
Computational logic that uses DistFlow equations as its power flow engine to evaluate candidate topologies. The algorithm searches for switch combinations that minimize losses while respecting voltage and thermal constraints.
- Branch exchange method: iteratively closes a tie switch and opens a sectionalizing switch
- MILP formulations: encode DistFlow as linear constraints with binary switch variables
- Heuristic approaches: use genetic algorithms or particle swarm optimization guided by DistFlow evaluations
- Real-time implementations re-run DistFlow every few seconds as load conditions change
Conservation Voltage Reduction (CVR)
An efficiency technique that lowers service voltage to the lower ANSI C84.1 bound (typically 114V on a 120V base). DistFlow equations provide the voltage profile visibility needed to implement CVR without violating minimum service levels.
- DistFlow calculates the voltage at every node under reduced setpoints
- Typical energy savings of 2-4% without customer impact
- Requires accurate DistFlow models to identify the limiting node on each feeder
- Combined with Volt-VAR optimization for coordinated reactive power control
Distribution System State Estimation
The algorithmic process of inferring voltage magnitudes and phase angles across the entire feeder using limited real-time sensor data. DistFlow equations serve as the measurement model that relates sensor readings to system states.
- Weighted least squares estimators use DistFlow as the process model
- Pseudo-measurements from historical load profiles fill gaps where sensors are absent
- Enables bad data detection when measurements violate DistFlow relationships
- Provides the situational awareness layer for advanced distribution automation
Soft Open Point (SOP)
A power electronic device replacing normally open tie switches with back-to-back converters. Unlike mechanical switches modeled by binary DistFlow variables, SOPs enable continuous active and reactive power flow control between feeders.
- DistFlow equations are extended with converter power injection terms
- Provides voltage support and loss minimization without topology changes
- Enables controlled loop operation while maintaining radial protection schemes
- Typically rated 1-5 MVA for medium-voltage distribution applications

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us