Escolar Documentos
Profissional Documentos
Cultura Documentos
1
Announcements
2
Newton-Raphson Method
• To solve a set of nonlinear equations denoted by
f(x) = 0
•Derivation of N-R
N-R proceeds by method
iterativeislinearization
similar to the scalar case
f (xˆ ) f (x) J (x) x higher order terms
f (xˆ ) 0 f (x) J (x) x
x J (x) 1f (x)
x( v 1) x( v ) x( v )
x( v 1) x( v ) J (x( v ) ) 1f (x( v ) )
Iterate until f (x( v ) )
3
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.
2 P2 (x) PG 2 PD 2
n Pn (x) PGn PDn
x f ( x)
V Q2 (x) QG 2 QD 2
2
Vn Qn (x) QGn QDn
4
N-R Power Flow Solution
The power flow is solved using the same procedure
discussed with the general Newton-Raphson:
Set v 0; make an initial guess of x, x( v )
While f (x( v ) ) Do
5
Power Flow Formulation
• First consider the case that all buses are PQ-bus;
– 𝑃𝑖 and 𝑄𝑖 are specified; |𝑉𝑖 | and 𝜃𝑖 unknown
• This specification of the two bus variables leads to two
equality constraints (recall the real-valued power
balance equations)
𝑛
7
Power Flow Jacobian
• Elements of Jacobian matrix: differentiating each
function with respect to (wrt) every variable
• Consider the real power equation at bus i
𝑛
We have
𝜕𝑓𝑖𝑃
= 2 𝑉𝑖 𝐺𝑖𝑖 + σ𝑘≠𝑖 𝑉𝑘 𝐺𝑖𝑘 cos 𝜃𝑖𝑘 + 𝐵𝑖𝑘 sin 𝜃𝑖𝑘
𝜕|𝑉𝑖 |
𝜕𝑓𝑖𝑃
= 𝑉𝑖 (𝐺𝑖𝑘 cos 𝜃𝑖𝑘 + 𝐵𝑖𝑘 sin 𝜃𝑖𝑘 )
𝜕 𝑉𝑗
0 MW 200 MW
0 MVR 100 MVR
2 j10 j10
x Ybus
V2 j10 j10
10
Two Bus Example, cont’d
General power balance equations
n
Pi Vi Vk (Gik cosik Bik sin ik ) PGi PDi
k 1
n
Qi Vi Vk (Gik sin ik Bik cosik ) QGi QDi
k 1
Bus two power balance equations
V2 V1 (10sin 2 ) 2.0 0
V2 V1 (10cos 2 ) V2 (10) 1.0 0
2
11
Two Bus Example, cont’d
P2 (x) V2 (10sin 2 ) 2.0 0
Q2 (x) V2 (10cos 2 ) V2 (10) 1.0 0
2
200.0 MW 200 MW
168.3 MVR 100 MVR
15
Two Bus Case, Low Voltage Solution
200.0 MW 200 MW
831.7 MVR 100 MVR
17
Practical Power Flow Software
• Most commercial software packages have built in
defaults to prevent convergence to low voltage
solutions.
– One approach is to automatically change the load model from
constant power to constant current or constant impedance
when the load bus voltage gets too low
– In PowerWorld these defaults can be modified on the Tools,
Simulator Options, Advanced Options page; note you also
need to disable the “Initialize from Flat Start Values” option
– The PowerWorld case Bus2_Intro_Low is set solved to the
low voltage solution
– Initial bus voltages can be set using the Bus Information
Dialog
18
NR Initialization
• A textbook starting solution for the NR is to use “flat
start” values in which all the angles are set to the slack
bus angle, all the PQ bus voltages are set to 1.0, and all
the PV bus voltages are set to their PV setpoint values
• This approach usually works for small systems
• It seldom works for large systems. The usual approach
for solving large systems is to start with an existing
solution, modify it, then hope it converges
– If not make the modification smaller
– More robust methods are possible, but convergence is
certainly not guaranteed!!
19
PV Buses
• At PV–bus i (generator bus), 𝑃𝑖 and |𝑉𝑖 | are fixed
• Similar to slack bus, no need to include these |𝑉𝑖 |’s in x
or write the reactive power balance equations
– the reactive power output of the generator varies to maintain
the fixed terminal voltage (within limits)
• Otherwise, it can be included in x using an additional
equality for PV-bus i
𝑛
0.941 pu
One 1.000 pu Two -7.469 Deg
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
21
Modeling Voltage Dependent Load
So far we've assumed that the load is independent of
the bus voltage (i.e., constant power). However, the
power flow can be easily extended to include voltage
depedence with both the real and reactive load. This
is done by making PDi and Q Di a function of Vi :
n
Vi Vk (Gik cosik Bik sin ik ) PGi PDi ( Vi ) 0
k 1
n
Vi Vk (Gik sin ik Bik cosik ) QGi QDi ( Vi ) 0
k 1
22
Voltage Dependent Load Example
In previous two bus example now assume the load is
constant impedance, so
P2 (x) V2 (10sin 2 ) 2.0 V2
2
0
Q2 (x) V2 (10cos 2 ) V2 (10) 1.0 V2 0
2 2
23
Voltage Dependent Load, cont'd
0
Again set v 0, guess x (0)
1
Calculate
V2 (10sin 2 ) 2.0 V2
2 2.0
f(x )
(0)
V2 (10cos 2 ) V2 (10) 1.0 V2
2 2
1.0
10 4
J (x )
(0)
0 12
1
0 10 4 2.0 0.1667
Solve x (1)
1.0
1 0 12 0.9167
24
Voltage Dependent Load, cont'd
With constant impedance load the MW/Mvar load at
bus 2 varies with the square of the bus 2 voltage
magnitude. This if the voltage level is less than 1.0,
the load is lower than 200/100 MW/Mvar
160.0 MW -160.0 MW
120.0 MVR Line Z = 0.1j -80.0 MVR
0.894 pu
One 1.000 pu Two -10.304 Deg
160.0 MW 160 MW
120.0 MVR 80 MVR
25
Generator Reactive Power Limits
• The reactive power output of generators varies to
maintain the terminal voltage; on an actual generator this
is done by the exciter
• To maintain higher voltages requires more reactive power
• Generators have reactive power limits, which are
dependent upon the generator's MW output
• So for PV-bus i, we have 𝑄𝑖min ≤ 𝑄𝑖 ≤ 𝑄𝑖max
• These limits must be satisfied by the power flow solution.
26
Generator Reactive Limits, cont'd
• During power flow once a solution is obtained, check to
make sure every generator reactive power output 𝑄𝑖 is
within its limits
• If the reactive power is outside of the limits, fix Q at the
max or min value, and resolve treating the generator as
a PQ bus
– this is know as "type-switching"
– also need to check if a PQ generator can again regulate
• Rule of thumb: to raise system voltage we need to
supply more Vars
27
Switching Bus Status
• At iteration 𝜈, we use 𝐱 (𝜈−1) to compute 𝐱 (𝜈)
• Suppose that after N-R update 𝐱 (𝜈) violates the reactive
power limits at a PV-bus k
• Then, in iteration 𝜈, we need to change bus k to a PQ-bus
𝑄𝑘max 𝑖𝑓 𝑄𝑘 𝐱 𝜈 > 𝑄𝑘max
𝑄𝑘 = ቊ min
𝑄𝑘 𝑖𝑓 𝑄𝑘 𝐱 𝜈 < 𝑄𝑘min
• And 𝑉𝑘 should be included in x
• After computing 𝐱 (𝜈+1) , we may need to switch bus k
(𝜈+1) setpoint
back to a PV-one by comparing 𝑉𝑘 with 𝑉𝑘
How do we want to code up the N-R algorithm?
28
The N-R Power Flow: 5-bus Example
T2
800 MVA
1 T1 5 4 345/15 kV 3 520 MVA
Line 3
345 kV
50 mi
400 MVA 800 MVA
15 kV 15 kV
Line 2
Line 1
400 MVA 345 kV 345 kV 40 Mvar 80 MW
15/345 kV 100 mi 200 mi
2
280 Mvar 800 MW
Single-line diagram
Maximum
R’ X’ G’ B’ MVA
Table 2. Bus-to- per unit per unit per unit per unit per unit
Line input data Bus
2-4 0.0090 0.100 0 1.72 12.0
2-5 0.0045 0.050 0 0.88 12.0
4-5 0.00225 0.025 0 0.44 12.0
30
The N-R Power Flow: 5-bus Example
Maximum
R X Gc Bm Maximum TAP
per per per per MVA Setting
Table 3. Bus-to- unit unit unit unit per unit per unit
Transformer Bus
input data
1-5 0.00150 0.02 0 0 6.0 —
3-4 0.00075 0.01 0 0 10.0 —
2 P2 = PG2-PL2 = -8 V2, 2
Table 4. Input data Q2 = QG2-QL2 = -2.8
and unknowns
3 V3 = 1.05 Q3, 3
P3 = PG3-PL3 = 4.4
4 P4 = 0, Q4 = 0 V4, 4
5 P5 = 0, Q5 = 0 V5, 5
31
Five Bus Case Ybus
1 1
Y25 1.78552 j19.83932 per unit
R25 jX 25 0.0045 j 0.05
' '
' '
1 1 B24 B25
Y22 ' ' j j
R24 jX 24 R25 jX 25
' '
2 2
1.72 0.88
(0.89276 j 9.91964) (1.78552 j19.83932) j j
2 2
2.67828 j 28.4590 28.5847 84.624 per unit
33
Here are the Initial Bus Mismatches
34
And the Initial Power Flow Jacobian
35
And the Hand Calculation Details
MVA MVA
395 MW A
520 MW
MVA
1.000 pu 0.974 pu A A
1.019 pu 80 MW
0.000 Deg -4.548 Deg MVA MVA
-2.834 Deg 40 Mvar
1.050 pu
-0.597 Deg
0.834 pu Two
-22.406 Deg
800 MW
280 Mvar
37
Quasi-Newton Power Flow Methods
38
Dishonest Newton Method
• The simplest modification results when J is kept
constant for a number of iterations, say 𝐾 iterations
– Sometimes known as the Dishonest Newton method
−1
𝐱 (𝜈+1) = 𝐱 (𝜈) −𝐉 𝐱 ( 𝜈/𝐾 𝐾) 𝐟(𝐱 𝜈 )
39
Dishonest N-R Example, cont’d
x ( v 1)
x (v) 1 (v) 2
(0) (( x ) - 2)
2x
Guess x (0) 1. Iteratively solving we get We pay a price
v x ( v ) (honest) x ( v ) (dishonest) in increased
0 1 1 iterations, but
with decreased
1 1.5 1.5
computation
2 1.41667 1.375 per iteration
3 1.41422 1.429
4 1.41422 1.408
40
Numerical differentiation
41
Secant Method
• Consider a linear approximation of 𝑓
𝑔 𝑥 = 𝑔0 + 𝑔1 𝑥
with 𝑔 𝑥 (𝜈−1) = 𝑓 𝑥 (𝜈−1) and 𝑔 𝑥 (𝜈) = 𝑓 𝑥 (𝜈)
• The iterative solution to 𝑔 𝑥 = 0 becomes
−1
𝑓 𝑥 𝜈 −𝑓 𝑥 𝜈−1
𝑥 (𝜈+1) = 𝑥 (𝜈) − 𝑓 𝑥 (𝜈)
𝑥 𝜈 −𝑥 𝜈−1
42