S10 · Lesson 19 · Newton–Raphson power flow
Power mismatches, the four blocks of the Jacobian, solving for every angle and magnitude correction at once with sparse factorization, quadratic convergence in a handful of iterations, and handling PV buses and limits
In 1967 William Tinney and Clifford Hart showed that Newton's method, combined with sparse matrix techniques, could solve power flows for large systems in a few iterations, and it has been the industry standard ever since. Each iteration linearizes all the power equations together around the current guess and solves for every correction at once. Near the solution the number of correct digits roughly doubles every step, so three to five iterations finish the job whatever the system's size.
- The largest power mismatch at each iteration for the two-bus case (X = 0.2, load 1 + j0.5), on a log scale, for Newton–Raphson and for Gauss–Seidel.
- Newton's mismatch goes 1, 0.14, 0.0095, 5.8 × 10⁻⁵, 2.2 × 10⁻⁹: the exponent roughly doubles each step. That's quadratic convergence.
- Gauss–Seidel's falls by a fixed factor each sweep, a straight line on this plot.
Predict
From a flat start, what does Newton's first step give for the two-bus case (X = 0.2, load 1 + j0.5)?
At the flat start the Jacobian is diagonal, with = 5, and the mismatches are −1 and −0.5. So Δδ = −0.2 rad (−11.46°) and ΔV = −0.1. Close to Gauss–Seidel's first iterate, but the next steps converge far faster.
Name it
Mismatches
For the current guess of angles and magnitudes, compute each bus's injected and from the power-flow equations (lesson 17) and the mismatches , .
The Newton step
Rows for ΔP exist at every non-slack bus and rows for ΔQ at every PQ bus; the Jacobian is square, of size , and as sparse as . Solve with sparse LU, update, recompute mismatches, and stop when the largest is below about 10⁻⁶ pu (0.1 kW on 100 MVA).
Two buses
With the load bus's δ and V as unknowns and lossless X: , , and
which at the flat start is .
Convergence
Near the solution, . Far from it, or near the nose of the P–V curve where the Jacobian becomes singular, Newton can diverge; then a damped step or a continuation method that traces the curve is used. PV-bus var limits are checked after each iteration, converting buses to PQ as needed.
Worked example
Iterate Newton on the two-bus case.
Show the solution
- Iterate from a flat start. Each Newton step updates δ and V together:
| k | δ (°) | V (pu) | largest mismatch |
|---|---|---|---|
| 0 | 0 | 1 | 1 |
| 1 | −11.459 | 0.9 | 0.140 |
| 2 | −13.370 | 0.85865 | 0.0095 |
| 3 | −13.5209 | 0.855393 | 5.8 × 10⁻⁵ |
| 4 | −13.52185 | 0.8553727 | 2.2 × 10⁻⁹ |
- Compare with Gauss–Seidel. Four iterations reach 10⁻⁹, against twelve Gauss–Seidel sweeps to reach 10⁻⁶.
Answer Newton reaches δ = −13.52185° and V = 0.8553727 pu, with a mismatch of 2.2 × 10⁻⁹, in four iterations.
Worked example
How big is the Jacobian for a 2000-bus case with 300 PV buses, and how sparse?
Show the solution
- Size. rows and columns, 13.7 million entries if stored densely.
- Nonzeros. With about four neighbors per bus, each row has around a dozen nonzeros, so roughly 45,000: 0.3% of the matrix.
- Cost of factoring. Dense LU would cost operations; sparse LU with a good ordering needs a tiny fraction of that.
Answer 3698 rows and columns, 13.7 million entries, of which only about 45,000 (0.3%) are nonzero.
Worked example
For the two-bus case with X = 0.2 pu and a load of 1 + j0.5 pu, evaluate the Newton Jacobian's determinant at the solution. What makes it vanish?
Show the solution
- The determinant. With and , the Jacobian's determinant works out to
- At the solution. The solution is V = 0.855 pu at δ = −13.5°, where : the determinant is 14.2.
- Where it vanishes. It vanishes where , the nose of the P–V curve.
- What that means. That's why Newton's method slows and fails as a case approaches voltage collapse, and why that singularity is used to find the loadability limit.
Answer the determinant is 14.2 at the solution, and it vanishes at the nose of the P–V curve, where .
Check
In the two-bus Newton power flow with line reactance X = 0.1 pu, what's at the flat start?
Check
A load of 0.5 pu sits at the end of X = 0.2. What angle does Newton's first step from a flat start give the load bus?
Check
A load of P + j0.2 pu at the end of X = 0.2. What voltage magnitude does Newton's first step give?
Check
Near the solution Newton's error obeys with C = 1. Starting from 0.1, what's the error after two steps?
Check
A two-bus case has the load bus guessed at 0.9∠−5° behind X = 0.2, with 1 pu of load. What's the real power mismatch ?
Check
A case has 300 buses, 30 of them PV. How many rows does its Newton Jacobian have?
Check
A two-bus Newton power flow has the load bus at 0.9∠−5° behind lossless X = 0.2 pu.
(a)
What is the Jacobian's determinant?
(b)
What is (the determinant vanishes when it reaches 1)?
Check
For the two-bus case , .
Step 1
What is ∂P/∂δ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is ∂Q/∂V?
Step 3
What is the Jacobian's determinant?
Explain why
Why does Newton's method converge quadratically while Gauss–Seidel converges only linearly?
Newton's method replaces the power equations by their tangent-plane approximation at the current guess and solves that linear system exactly. The error it makes comes only from the curvature it ignored, which is proportional to the square of how far the guess is from the solution, so each step squares the error. Gauss–Seidel instead solves each bus's equation with its neighbors held at old values; the error it leaves is a fixed fraction of the previous error, set by how strongly the buses are coupled, so it shrinks by roughly the same factor every sweep. Quadratic convergence wins dramatically once the guess is close, which is why Newton needs only a handful of iterations.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.