S1019 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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)?

Name it

Mismatches

For the current guess of angles and magnitudes, compute each bus's injected Pi and Qi from the power-flow equations (lesson 17) and the mismatches ΔPi=Pisched−Pi, ΔQi=Qisched−Qi.

The Newton step

(J1J2J3J4)(ΔδΔ|V|)=(ΔPΔQ),J1=∂P∂δ,J2=∂P∂|V|,J3=∂Q∂δ,J4=∂Q∂|V|

Rows for ΔP exist at every non-slack bus and rows for ΔQ at every PQ bus; the Jacobian is square, of size 2(n−1)−nPV, and as sparse as Ybus. 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: P=Vsin⁡δ/X, Q=(V2−Vcos⁡δ)/X, and

J=1X(Vcos⁡δsin⁡δVsin⁡δ2V−cos⁡δ)

which at the flat start is 1XI.

Convergence

Near the solution, ek+1≈Cek2. 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
  1. Iterate from a flat start. Each Newton step updates δ and V together:
kδ (°)V (pu)largest mismatch
0011
1−11.4590.90.140
2−13.3700.858650.0095
3−13.52090.8553935.8 × 10⁻⁵
4−13.521850.85537272.2 × 10⁻⁹
  1. 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
  1. Size. N=2×1999−300=3698 rows and columns, 13.7 million entries if stored densely.
  2. Nonzeros. With about four neighbors per bus, each row has around a dozen nonzeros, so roughly 45,000: 0.3% of the matrix.
  3. Cost of factoring. Dense LU would cost 23N3≈3.4×1010 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
  1. The determinant. With P=Vsin⁡δ/X and Q=(V2−Vcos⁡δ)/X, the Jacobian's determinant works out to det⁡J=V(2Vcos⁡δ−1)X2
  2. At the solution. The solution is V = 0.855 pu at δ = −13.5°, where 2Vcos⁡δ=1.66: the determinant is 14.2.
  3. Where it vanishes. It vanishes where 2Vcos⁡δ=1, the nose of the P–V curve.
  4. 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 2Vcos⁡δ=1.

Check

In the two-bus Newton power flow with line reactance X = 0.1 pu, what's ∂P2/∂δ2 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 ek+1=Cek2 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 ΔP2?

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 2Vcos⁡δ (the determinant vanishes when it reaches 1)?

Check

For the two-bus case P=Vsin⁡δ/X, Q=(V2−Vcos⁡δ)/X.

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°.

Explain why

Why does Newton's method converge quadratically while Gauss–Seidel converges only linearly?

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.