Newton Raphson Method
Newton Raphson Method
BY:
PROF.J.N RAI
DTU
NR Application to Power Flow
We first need to rewrite complex power equations
as equations with real coefficients (we've seen this earlier):
Si Vi I * n * n
i Yik*Vk
*
Vi
i YikVk V k
k 1 1
These can be derived by defining
Vi Vi e ji Vi
i i k
e j cos j
ik 2
Real Power Balance Equations
n n
Pi jQi Vi ikVk Vi Vk e jik (Gik jBik )
* *
Si Y
k k
n 1 1
(cosik j sinik )(Gik jBik )
k Vi Vk
1
Resolving into the real and imaginary parts:
n
4
Power Flow Variables
For convenience, write:
n
5
Power Flow Variables
Assume the slack bus is the first bus (with a fixed
voltage angle/magnitude). We then need to
determine the voltage angle/magnitude at the other
buses.
We must solve f (x) 0, where:
2 P2 (x) PG2 PD2
x n f (x) Pn (x) PGn PDn
V 2 Q2 (x) QG 2 QD2
V n
Q (x) Q
n Gn Dn 6
N-R Power Flow Solution
The power flow is solved using the same procedure
discussed previously for general equations:
For v 0; make an initial guess of x, x(0)
While f (x(v) ) Do
v
7
Power Flow Jacobian Matrix
0 MW 200 MW
0 MVR 100 MVR
k 1Vi Vk (Gik sinik Bik cosik ) QGi QDi
0 bus two, the power balance equations are
For
(load real power is 2.0 per unit,
while reactive power is 1.0 per unit):
V2 V1 (10sin2 ) 2.0 0
V2 V1 (10cos2 ) V2 2 (10) 1.0 17
Two Bus Example, cont’d
P2 (x) 2.0 V2 (10sin2 ) 2.0
V2 (10cos2 ) V2 2 (10) 1.0
(x) 1.0 the
Q2calculate
Now power flow Jacobian
P2 ( x) P2
V2
J(x) 2
( x) Q2
Q 2 ( x) (x
)
V2
102 V2 cos2
10sin2
10 V2 2 10cos 2 20 2
sin V 18
Two Bus Example, First Iteration
2(0) 0
For v 0, guess x (0)
(0) . Calculate:
V2 1
V (0) (10sin (0) )
2.0 2.0
f (x(0) ) 2 2
V 2(0) (10cos 2(0) ) V2 (0) 2 (10) 1.0
1.788 8.199
0.2 1.9861 0.212
8.82 0.233
x(2)
0.9
1.788
8.199 0.279 0.8586
0.0145
f (x (2)
) x(3) 0.236
0.0190 0.8554
(3) 0.0000906
f (x ) Close enough!
V2 0.8554
0.0001175 13.52
14
Two Bus Solved Values
Once the voltage angle and magnitude at bus
2 are known we can calculate all the other
system values, such as the line flows and the
generator reactive power output
200.0 MW -200.0 MW
168.3 MVR Line Z = 0.1j -100.0 MVR
200.0 MW 200 MW
168.3 MVR 100 MVR
15
Two Bus Case Low Voltage Solution
This case actually has two solutions! The
second "low voltage" is found by using a low
initial guess.
0
Set v 0, guess x (0)
. Calculate:
0.25
V (0)
(10sin (0)
)
2.0 2
f (x(0) ) 2 2
V 2(0) (10cos 2(0) ) V2 (0) 2 (10) 0.875
1.0 (0)
10 V2 cos 2(0) 10sin2
2.5 0
J(x (0)
) (0)
10 V2(0) sin2 10cos 2(0) 20 V2 (0) 0
(0) 5
16
Low Voltage Solution, cont'd
0 2.5 0 1
0.8
Solve x
(1)
0.25 2 0 5 0.875 0.075
(2) 1.462 (2) 1.42 (3) 0.921
f (x ) x x
0.534 0.2336 0.220
Low voltage solution
-200.0 MW
200.0
831.7 MW
MVR Line Z = 0.1j -100.0 MVR
200.0 MW 200 MW
831.7 MVR 100 MVR
17
PV Buses
Since the voltage magnitude at PV buses is fixed there is
no need to explicitly include these voltages in x nor
write the reactive power balance equations:
– the reactive power output of the generator varies to
maintain the fixed terminal voltage (within limits),
so we can just set the reactive power product to
whatever is needed.
– An alternative is these variations/equations can be
included by just writing the explicit voltage constraint
for the generator bus:
|Vi | – Vi setpoint = 0
25
Three Bus PV Case Example
For this three bus case we have
170.0 MW 200 MW
68.2 MVR 100 MVR
Line Z = 0.1j Line Z = 0.1j
Three 1.000 pu
30 MW
63 MVR
26
PV Buses
• With Newton-Raphson, PV buses means that there
are less unknown variables we need to calculate
explicitly and less equations we need to satisfy
explicitly.
• Reactive power balance is satisfied implicitly by
choosing reactive power production to be
whatever is needed, once we have a solved case
(like real power at the slack bus).
• Contrast to Gauss iterations where PV buses
complicated the algorithm
27
Newton-Raphson Power Flow
Advantages
– fast convergence as long as initial guess is close to
solution
– large region of convergence
Disadvantages
– each iteration takes much longer than a Gauss-Seidel
iteration
– more complicated to code, particularly when
implementing sparse matrix algorithms
Newton-Raphson algorithm is very common in
power flow analysis.
33
THANK YOU!!