Module-2 Optimal Power Flow
Module-2 Optimal Power Flow
PDi+jQDi
𝑁𝑁 𝑁𝑁
1
𝑌𝑌𝑖𝑖,𝑖𝑖 = � 𝑦𝑦�𝑖𝑖,𝑗𝑗 + � 𝑦𝑦�𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑖𝑖,𝑗𝑗
2
𝑗𝑗=1 𝑗𝑗=1
(**
)
⇒ Pi − jQi = Vi ⋅ Ii = Vi* ⋅ Ii
Pi − jQi
⇒ Ii =
*
Vi
N
I i = ∑ Y ij V j ∀ 𝑖𝑖 ∈ 𝑁𝑁
j =1
• We obtain,
Pi − jQi = Vi e − jδ i N
∑ Yij e
jθ ij
Vj e
jδ j N
= ∑ ViV jYij e
(
j θ ij +δ j −δ i )
j =1 j =1
∀ 𝑖𝑖 ∈ 𝑁𝑁
( )
N
Pi = ∑ ViV j Yij cos θ ij + δ j − δ i ∀ 𝑖𝑖 ∈ 𝑁𝑁
j =1
( )
N
Qi = − ∑ ViV jYij sin θ ij + δ j − δ i ∀ 𝑖𝑖 ∈ 𝑁𝑁
j =1
( )
N
Pi = ∑ ViV jYij cos θij + δ j − δ i ∀i ≠ slack
j =1
( )
N
Qi = − ∑ ViV jYij sin θ ij + δ j − δ i ∀i ≠ slack & i ≠ PV
j =1
( )
N
Pi = PGi − PDi = ∑ ViV jYij cos θij + δ j − δ i i ≠ slack
j =1
( )
N
Qi = QGi − QDi = − ∑ ViV jYij sin θ ij + δ j − δ i i ≠ slack ; i ≠ PV
j =1
Power System
PGi+jQGi |Vi|∠δi
Pi + jQi
PDi+jQDi
( )
N
Qi = − ∑ ViV jYij sin θ ij + δ j − δ i ∀i ≠ slack & i ≠ PV
j =1
• Using Taylor Series expansion on these equations, a linear
form representation can be obtained, as shown below,
* N * *
Si = Pi + jQi = V i I i = V i ∑ Y ij V j
j =1
( ) j (δ i −δ j )
N
= ∑ Vi V j Gij − jBij e
j =1
{ ( )
N Vi V j Gij cos δi − δ j + Bij sin δi − δ j ( )}
= ∑
j =1 +
{ ( ) (
j Vi V j Gij sin δi − δ j − Bij cos δi − δ j
)}
{ }
N
Pi = ∑ Vi V j Gij cos δ ij + Bij sin δ ij
j =1
{ }
N
Qi = ∑ Vi V j Gij sin δ ij − Bij cos δ ij
j =1
• Where δi - δj = δij
{ }
N 2
= − ∑ Vi V j Gij sin δ ij − Bij cos δ ij = −Qi − Bii Vi
j =1
j ≠i
∂Qi
{ }
N 2
= ∑ Vi V j Gij cos δ ij + Bij sin δ ij = Pi − Gii Vi
∂δ i j =1
j ≠i
23 Module-2 ECE666: Winter 2024
FDLF… contd.
Assumptions
• Since (δi-δj) is small, cos(δi-δj) ≅ 1, sin(δi-δj) ≅ 0
• Gijsin(δi-δj) is much smaller compared to Bij, Gij≅0
• Hence we have
∂Pi ∂Pi
≈ 0; ≈ 0 ⇒ [J 12 ] = 0
∂ Vi ∂Vj
∂Qi ∂Qi
≈ 0; ≈ 0 ⇒ [J 21 ] = 0
∂δ i ∂δ j
• Similarly,
∂Pi
= − Vi V j Bij
∂δ j
∂Pi
∆Pi = ⋅ ∆δ j = − Vi V j Bij ∆δ j
∂δ
j
∂Q
i
∆Qi = ⋅ ∆ V j = − Vi V j Bij ∆ V j
∂Vj
[ ]
ΔP = [V ]−1[ΔP ] = −[B ][Δδ]
~
[ ]
ΔQ = [V ]−1[ΔQ] = −[B ][Δ V ]
~
[ΔP] = −[B][Δδ]
• Note that
• Bij: element of susceptance matrix, p.u.
• δ: voltage angle, radians
• bij: susceptance of line i-j, p.u.
• PFlow: real power flow on line, p.u.
• Reactive power flow equation disappears because of assumptions.
• Bounds on angles
− π ≤ δ i ≤ π , ∀ i = 1,..., N
• 3-bus System:
( )(
J = a1P12 + b1P1 + c1 + a2 P22 + b2 P2 + c2 )
• Minimize: ( )(
J = a1P12 + b1P1 + c1 + a2 P22 + b2 P2 + c2 )
• Subject to
• Inequality Constraints:
− P1 ≤ 0
0.9 − V1 ≤ 0
P1 ≤ 5 p.u.
− P2 ≤ 0 V1 − 1.1 ≤ 0
P2 ≤ 2.5 p.u. 0.9 − V2 ≤ 0
− 0.2 − Q1 ≤ 0 V2 − 1.1 ≤ 0
Q1 ≤ 3 p.u.
0.9 − V3 ≤ 0
− 0.2 − Q2 ≤ 0
V3 − 1.1 ≤ 0
Q2 ≤ 1.5 p.u.
P1 + 10 V1 V2 sin (δ 2 − δ1 ) + 5 V1 V3 sin (δ 3 − δ1 ) = 0
Q1 − 15 V1 + 10 V1 V2 cos(δ 2 − δ1 ) + 5 V1 V3 cos(δ 3 − δ1 ) = 0
2
Q2 + 10 V2 V1 cos(δ1 − δ 2 ) − 15 V2 + 5 V2 V3 cos(δ 3 − δ 2 ) = 0
2
( )(
F = a1P12 + b1P1 + c1 + a2 P22 + b2 P2 + c2 )
+ λ1(P1 + 10 V1 V2 sin (δ 2 − δ1 ) + 5 V1 V3 sin (δ 3 − δ1 ))
+ λ2 (P2 + 10 V2 V1 sin (δ1 − δ 2 ) + 5 V2 V3 sin (δ 3 − δ 2 ))
+ λ3 (− 3.6392 − 5 V3 V1 sin (δ1 − δ 3 ) − 5 V3 V2 sin (δ 2 − δ 3 ))
• *********************************************************************
• Case-A: Cost Minimizing OPF Solution
• *********************************************************************
• Bus P-Optimal Q-Optimal λP λQ
• (MW) (MW) ($/MWh) ($/MVArh)
• 1 300.549 100.183 609.598 0.000
• 2 88.734 125.174 628.890 0.000
• 3 0.000 0.000 726.046 61.937
• Real MC denotes the effect on cost with change in demand at the bus
• Reactive MC denotes the effect on cost with change in reactive demand at the bus
• *********************************************************************
• Case-B: Loss Minimizing OPF Solution
• *********************************************************************
• Bus P-Optimal Q-Optimal λP λQ
• (MW) (MW) (MW/MWh) (MW/MVArh)
• 1 226.996 111.671 0.000 0.000
• 2 161.151 106.367 0.000 0.000
• 3 0.000 0.000 0.175 0.098
• Real MC denotes the effect on loss with change in demand at the bus
• Reactive MC denotes the effect on loss with change in reactive demand at a bus
• ********************************************
• Comparison of Two Cases
• ********************************************
• Case Total Cost Total Loss
• ($) (MW)
• A 121931.565 25.363
• B 145876.673 24.227
6 4
System data relating to generation and load 5
Bus Gen. Cap. MW Cost Ch., $/hr Load Voltage, p.u. MVAr support
1 426.932
862.364 240547.58
2 123.068
Controls Constraints
IT (δ, V ) ≤ ITMax
QiMin ≤ Qi ≤ QiMax
ViMin ≤ Vi ≤ ViMax
NG
Cost = ∑ Ci(Pi )
i =1
N
(
PInji = ∑ Bij δ i − δ j ) ∀ i = 1,..., N
j =1
PFlowij = −bij (δ i − δ j ) ∀ i, j = 1,..., N
− bij (δ i − δ j ) ≤ PFlowijMax ∀ i, j = 1,..., N
PiMin ≤ Pi ≤ PiMax ∀i ∈ NG
− π ≤ δ i ≤ π , ∀ i = 1,..., N