Optimal Power
Optimal Power
e-mail: [email protected]
1
Optimal Power Flow (OPF)
𝐎𝐏𝐅 = 𝐄𝐃 + 𝐋𝐨𝐚𝐝 𝐅𝐥𝐨𝐰 + (𝐂𝐨𝐧𝐬𝐭𝐫𝐚𝐢𝐧𝐭𝐬 𝐚𝐧𝐝 𝐋𝐢𝐦𝐢𝐭𝐬)
OPF is a non-convex, nonlinear, and large-scale
problem.
The main aim of using OPF in power systems is to
obtain the optimal objective functions by setting the
control variables.
The control variables involve real power output of
generation units except the slack bus, the voltages
magnitude at generator buses, regulating tap setting
at transformers, and the VAR compensators
connected to transmission lines
OPF requires satisfying equality and inequality
constraints, and technical limits.
2
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Optimal Power Flow (OPF)
The objective functions that will be optimized are:
The total fuel cost of generation units
Active power losses in transmission lines
Total emission
Total voltage deviation
Voltage stability index of system
Other functions
Weighted combinations of the above functions
3
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Optimal Power Flow (OPF): Cont.
OPF considers the impact of the transmission system
OPF functionally combines the power flow with
economic dispatch, constraints, and limits
OPF minimizes cost function (or other objective),
such as operating cost, taking into account realistic
equality and inequality constraints and limits:
Equality constraints
Inequality constraints
Limits
Available Controls: generator MW outputs,
transformer taps and phase shift angles, voltage
magnitudes at generator buses (controlled by
exciters), reactive power from VAR resources, etc.
4
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Equality constraints
Bus real and reactive power balance
Generator voltage setpoints
Area MW interchange
Inequality constraints
Transmission line/transformer/interface flow limits
Generator MW limits
Generator reactive power capability curves
Bus voltage magnitudes
Available Controls
Generator MW outputs
Transformer taps and phase shift angles
𝒇𝟏 = 𝑪𝒊 𝑷𝑮𝒊
𝒊=𝟏
6
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
The Valve-Point Effect
8
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Figure: Fuel cost considering valve-point effects
9
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Objective Functions: cont.
2. Active Power Losses
The purpose of using this objective function is to
minimize the active power transmission losses in the
power system ( 𝑃𝐿𝑜𝑠𝑠 ). The objective function is
described as follow:
𝑁𝐿
10
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Objective Functions: Cont.
3. Emission objective
The emission produced by a generating unit can be expressed as a
quadratic emission function, as follows:
𝑬𝒊 𝑷𝑮𝒊 = 𝒂𝒊 + 𝒃𝒊 𝑷𝑮𝒊 + 𝒄𝒊 𝑷𝟐𝑮𝒊 + 𝒅𝒊 𝐞𝐱𝐩 ( 𝒊 𝑷𝒎𝒂𝒙
𝑮𝒊 ) 𝒌𝒈/𝒉
𝑎𝑖 : Constant emission coefficient of unit 𝑖, 𝑘𝑔/ℎ
𝑏𝑖 : Linear emission coefficient of unit 𝑖, 𝑘𝑔/𝑀𝑊ℎ
𝑐𝑖 : Quadratic emission coefficient of unit 𝑖, 𝑘𝑔/(𝑀𝑊 2 ℎ)
𝑑𝑖 , 𝑖 : Constant for valve position of unit 𝑖, 𝑘𝑔/ℎ, 1/𝑀𝑊
𝒇𝟑 = 𝑬𝒊 𝑷𝑮𝒊
𝒊=𝟏
11
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Objective Functions: Cont.
𝒇𝟒 = |𝑽𝒊 − 𝟏|
𝒊=𝟏
12
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Objective Functions: Cont.
5. Voltage stability enhancement
𝒇𝟓 = 𝒎𝒂𝒙 𝑳𝒋 ; 𝒋 = 𝟏, 𝟐, … , 𝑵𝑫
13
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Steady-State Voltage Stability Index Calculations
Let 𝑁𝑔 number of generator buses, and 𝑁𝑑 number of load buses. Using
nodal analysis, the power system can be described by the equation:
𝑰=𝒀𝑽
If system buses are numbered such that the first 𝑁𝑔 buses are the generator
buses and the rest 𝑁𝑑 buses are the load buses, then the last equation can
be written as:
𝑰𝐺 𝒀𝐺𝐺 𝒀𝐺𝐷 𝑽𝐺
=
𝑰𝐷 𝒀𝐷𝐺 𝒀𝐷𝐷 𝑽𝐷
With some manipulations, the last system of equations can be written in the
following hybrid from:
𝑽𝐷 𝒁 𝑭𝐷𝐺 𝑰𝐷
= 𝐷𝐷
𝑰𝐺 𝑲𝐺𝐷 𝒀𝐺𝐺 𝑽𝐺
where,
−1
𝒁𝐷𝐷 = 𝒀𝐷𝐷 𝑭𝐷𝐺 = −𝒀−1 𝐷𝐷 𝒀𝐷𝐺
𝑲𝐺𝐷 = 𝒀𝐺𝐷 𝒀−1 𝐷𝐷 𝒀𝐺𝐷 = 𝒀𝐺𝐺 − 𝒀𝐺𝐷 𝒀𝐷𝐷−1
𝒀𝐷𝐺
14
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
The sub-matrix 𝑭𝑫𝑮 is the one that we will use for steady-state stability
purposes. This sub-matrix is a 𝑁𝑑 × 𝑁𝑔 complex matrix, whose jth row
refers to the jth load bus and ith column refers to the ith generator bus. If
the jith complex entry of 𝑭𝐷𝐺 is referred to as 𝑭𝐷𝐺 𝑗𝑖 , then this entry can
be expressed in rectangular form as:
𝑭𝐷𝐺 𝑗𝑖 = 𝑀𝑗𝑖 + 𝑗𝑁𝑗𝑖
The steady-state voltage stability indicator (index) at bus load bus 𝑗,
which is referred to as 𝐿𝑗 , can be expressed as :
𝑁𝑔
𝑭𝐷𝐺 𝑗𝑖 𝑽𝑖
𝐿𝑗 = 1 − ; 𝑗 ∈ 𝑆𝐿
𝑽𝑗
𝑖=1
where 𝑺𝑳 is the set of load buses. By substituting the values of the
complex quantities in rectangular form in the last equation we can
express the L-index as follows:
𝑁𝑔 𝑉𝑖 𝑀𝑗𝑖 +𝑗𝑁𝑗𝑖 (𝑐𝑜𝑠𝛿𝑖 +𝑗 𝑠𝑖𝑛𝛿𝑖 )
𝐿𝑗 = 1 − σ𝑖=1 ; 𝑗 ∈ 𝑆𝐿
𝑉𝑗 (𝑐𝑜𝑠𝛿𝑗 +𝑗 𝑠𝑖𝑛𝛿𝑗 )
15
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
The L-index is expressed as:
𝑁𝑔
𝑉𝑖 𝑀𝑗𝑖 + 𝑗𝑁𝑗𝑖 (𝑐𝑜𝑠𝛿𝑖 + 𝑗 𝑠𝑖𝑛𝛿𝑖 )
𝐿𝑗 = 1 − ; 𝑗 ∈ 𝑆𝐿
𝑉𝑗 (𝑐𝑜𝑠𝛿𝑗 + 𝑗 𝑠𝑖𝑛𝛿𝑗 )
𝑖=1
16
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Minimization of multi-objective function
𝒇 = 𝒘𝒊 𝒇𝒊 = 𝒘𝟏 𝒇𝟏 + 𝒘𝟐 𝒇𝟐 + 𝒘𝟑 𝒇𝟑 + ⋯ + 𝒘𝑵𝒐 𝒇𝑵𝒐
𝒊=𝟏
Where 𝑤𝑖 is the weighting factor of the 𝑖 𝑡ℎ objective function. There are
many approaches to determine 𝑤𝑖 , one of them is given by:
𝒇𝒊
𝒘𝒊 =
𝒔𝒇𝒊
where 𝑓𝑖 is the 𝑖 𝑡ℎ objective function and 𝑠𝑓𝑖 is a scalar factor of 𝑓𝑖 . The
target of using this objective function is to minimize the active power loss,
generation fuel cost, emission , and others, simultaneously.
17
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Constraints and Limits
The above objective functions are subjected to the equality and
inequality constraints and limits as follows:
18
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Inequality constraints
Bus voltages are state variables originated from the solution of the
power flow problem. If 𝑉𝐺𝑖 is the terminal voltages at the voltage
controlled bus 𝑖, these constraints with regard to the bus voltage
limits are defined as:
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑉𝐺𝑖 ≤ 𝑉𝐺𝑖 ≤ 𝑉𝐺𝑖 ; 𝑖 = 1, 2, … , 𝑁𝑔
19
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Inequality constraints
Capacity limits for switchable capacitor banks:
Capacitor banks can modify capacity by switching/removing some
of the capacitors. If 𝑁𝐶 indicates the number shunt VAR
compensators and 𝑄𝐶𝑖 is the output of shunt VAR compensators at
bus 𝑖, these have a zone of operation with lower and upper limits
and defined as:
𝑸𝒎𝒊𝒏
𝑪𝒊 ≤ 𝑸𝑪𝒊 ≤ 𝑸𝒎𝒂𝒙
𝑪𝒊 ; 𝒊 = 𝟏, 𝟐, … , 𝑵𝒄
Transformer tap setting constraints:
There are transformers can modify the output voltage by
changing their taps. Transformers can accomplish this
operation while energized. If 𝑁𝑘 indicates the number of tap
changing transformers, these limits associated with tap ratio of
transmission line 𝑘 (𝑡𝑘 ) can be defined as:
𝒕𝒎𝒊𝒏
𝒌 ≤ 𝒕𝒌 ≤ 𝒕𝒎𝒂𝒙
𝒌 ; 𝒌 = 𝟏, 𝟐, … , 𝑵𝒌
20
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Inequality constraints
Security constraints for transmission lines:
Line flow through each transmission line must be restricted
by their capacity limits. Capacity limits are usually
expressed in terms of apparent power or real power flow
or current. 𝑆𝑙 or |𝑺𝑙 | defines the apparent power flow of
ith transmission line and 𝑆𝑙𝑚𝑎𝑥 defines the maximum
apparent power flow limit of transmission line 𝑙. This
constraint is usually formulated, in terms of apparent
power or real power or current in the line 𝑙, as follows:
𝑺𝑙 ≤ 𝑆𝑙𝑚𝑎𝑥 ; 𝑙 = 1, 2, … , 𝑁𝐿
or 𝑃𝑙 ≤ 𝑃𝑙𝑚𝑎𝑥 ; 𝑙 = 1, 2, … , 𝑁𝐿
or | 𝑰𝑙 | ≤ 𝐼𝑙𝑚𝑎𝑥 ; 𝑙 = 1, 2, … , 𝑁𝐿
21
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
DC OPF
Recall that the DC load flow (DCLF) is concerned only with real
power and phase angles. It does not consider reactive power
and changes in voltage magnitudes. In DCLF, we assume that
the power system is lossless, the system has a flat profile of
voltages, and differences in phase angles are very small.
Assumptions in DCLFF:
𝑟𝑖𝑗 = 0 : neglect resistances in transmission lines.
𝑉𝑖 = 𝑉𝑗 = 1 𝑝. 𝑢. ; 𝑖 = 1, 2, … , 𝑛: the system has a flat profile of
voltages
(𝛿𝑖 −𝛿𝑗 ) is very small: differences in phase angles are very
small for a system operating in normal conditions, therefore
𝑠𝑖𝑛(𝛿𝑖 −𝛿𝑗 ) ≅ (𝛿𝑖 −𝛿𝑗 ) (angles in rad).
22
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
The net injected real power at bus 𝑖 (𝑃𝑖 = 𝑃𝐺𝑖 − 𝑃𝐷𝑖 ) at bus 𝑖 is:
𝒏 𝒏
(𝛿𝑖 −𝛿𝑗 )
𝑃𝑖 = 𝐵𝑖𝑗 (𝛿𝑖 −𝛿𝑗 ) =
𝑥𝑖𝑗
𝑗=1 𝑗=1
25
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Solution:
𝑁𝑔=2
2 2
𝑓 = 𝐶𝑖 𝑃𝐺𝑖 = 𝐶1 𝑃𝐺1 + 𝐶2 𝑃𝐺2 = 𝛼1 + 𝛽1 𝑃𝐺1 + 𝛾1 𝑃𝐺1 + 𝛼2 + 𝛽2 𝑃𝐺2 + 𝛾2 𝑃𝐺2
𝑖=1
2 2
𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑓 = 𝛼1 + 𝛽1 𝑃𝐺1 + 𝛾1 𝑃𝐺1 + 𝛼2 + 𝛽2 𝑃𝐺2 + 𝛾2 𝑃𝐺2
(𝛿1 −𝛿2 )
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑇𝑜 𝑃𝐺1 − 𝑃𝐷1 = 𝑃12 ; 𝑃12 =
𝑥12
(𝛿2 −𝛿1 )
𝑃𝐺2 − 𝑃𝐷2 = 𝑃21 ; 𝑃21 =
𝑥21
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃𝐺1 ≤ 𝑃𝐺1 ≤ 𝑃𝐺1
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃𝐺2 ≤ 𝑃𝐺2 ≤ 𝑃𝐺2
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃12 ≤ |𝑃12 | ≤ 𝑃12
2 2
𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑓 = 100 + 4 𝑃𝐺1 + 0.02 𝑃𝐺1 + 200 + 8 𝑃𝐺2 + 0.04 𝑃𝐺2
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑇𝑜
(𝛿1 −𝛿2 )
𝑃𝐺1 − 4 = or 𝑃𝐺1 −20 𝛿1 + 20 𝛿2 − 4 = 0
0.05
(𝛿2 −𝛿1 )
𝑃𝐺2 − 5 = 0.05 or 𝑃𝐺2 +20 𝛿2 − 20 𝛿2 − 5 = 00.0 ≤ 𝑃𝐺1 ≤ 6.0
0.5 ≤ 𝑃𝐺2 ≤ 4.0
−1.5 ≤ |𝑃12 | ≤ 1.5
𝑺𝒖𝒃𝒋𝒆𝒄𝒕 𝑻𝒐
𝑷𝑮𝟏 + 𝟐𝟎 𝜹𝟐 − 𝟒 = 𝟎
𝑷𝑮𝟐 − 𝟐𝟎 𝜹𝟐 − 𝟓 = 𝟎𝟎. 𝟎 ≤ 𝑷𝑮𝟏 ≤ 𝟔. 𝟎
𝟎. 𝟓 ≤ 𝑷𝑮𝟐 ≤ 𝟒. 𝟓
−𝟏. 𝟓 ≤ |𝑷𝟏𝟐 | ≤ 𝟏. 𝟓
The above optimization problem can be solved by any nonlinear optimization
solver (such as 𝑓𝑚𝑖𝑛𝑐𝑜𝑛 in MATLAB). The solution is:
𝛿1 = 0 𝑟𝑎𝑑 = 0 𝑑𝑒𝑔
𝛿2 = −0.075 𝑟𝑎𝑑 = −4.2972 𝑑𝑒𝑔
𝑃𝐺1 = 5.5 𝑝. 𝑢. = 550 𝑀𝑊
𝑃𝐺2 = 3.5 𝑝. 𝑢. = 350 𝑀𝑊
𝑃12 = 1.5 𝑝. 𝑢. = 150 𝑀𝑊
𝐶1 𝑃𝐺1 = 5.5 = 8350 $/ℎ
𝐶2 𝑃𝐺2 = 3.5 = 7900 $/ℎ
𝐶𝑇𝑜𝑡𝑎𝑙 = 16250 $/ℎ
27
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Example: DC OPF (3-Bus System)
For the three-bus system shown, if all values are given in p.u. and let bus 1 is
the reference bus. The line power limits for lines 1 − 2 and line 1 − 3 are 5
and 3 p.u., respectively. The operating (production) costs and limits of the
three units are:
2
$
𝐶1 𝑃𝐺1 = 100 + 400 𝑃𝐺1 + 200 𝑃𝐺1 ; 0.0 ≤ 𝑃𝐺1 ≤ 6.0
ℎ
2
$
𝐶2 𝑃𝐺2 = 200 + 800 𝑃𝐺2 + 400 𝑃𝐺2 ; 0.5 ≤ 𝑃𝐺2 ≤ 4.0
ℎ
2
$
𝐶3 𝑃𝐺3 = 100 + 800 𝑃𝐺3 + 200 𝑃𝐺3 ; 1.0 ≤ 𝑃𝐺3 ≤ 5.0
ℎ
Write the mathematical model of the DC OPF of this system.
28
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
−𝑗40 𝑗20 𝑗20 0 0 0 −40 20 20
𝒀 = 𝑗20 −𝑗20 0 = 0 0 0 + 𝑗 20 −20 0
𝑗20 0 −𝑗20 0 0 0 20 0 −20
−40 20 20
𝑩 = 20 −20 0
20 0 −20
Bus 1 is the reference bus, therefore, we remove the first row and the
first column from 𝑩:
−20 0 20 0 0.05 0
𝑩′ = ; −𝑩′ = , − 𝑩′ −1
=
0 −20 0 20 0 0.05
𝑁𝑔=3
29
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
2 2
𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑓 = 𝛼1 + 𝛽1 𝑃𝐺1 + 𝛾1 𝑃𝐺1 + 𝛼2 + 𝛽2 𝑃𝐺2 + 𝛾2 𝑃𝐺2
2
+𝛼3 +𝛽3 𝑃𝐺3 + 𝛾3 𝑃𝐺3
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑇𝑜
(𝛿1 −𝛿2 ) (𝛿1 −𝛿3 )
𝑃𝐺1 − 𝑃𝐷1 = 𝑃12 + 𝑃13 ; 𝑃12 = , 𝑃13 =
𝑥12 𝑥13
(𝛿2 −𝛿1 )
𝑃𝐺2 − 𝑃𝐷2 = 𝑃21 ; 𝑃21 =
𝑥21
(𝛿3 −𝛿1 )
𝑃𝐺3 − 𝑃𝐷3 = 𝑃31 ; 𝑃31 =
𝑥31
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃𝐺1 ≤ 𝑃𝐺1 ≤ 𝑃𝐺1
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃𝐺2 ≤ 𝑃𝐺2 ≤ 𝑃𝐺2
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃𝐺3 ≤ 𝑃𝐺3 ≤ 𝑃𝐺3
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃12 ≤ | 𝑃12 | ≤ 𝑃12
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃13 ≤ |𝑃13 | ≤ 𝑃13
30
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
2 2 2
𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑓 = 100 + 4 𝑃𝐺1 + 0.02 𝑃𝐺1 + 200 + 8 𝑃𝐺2 + 0.04 𝑃𝐺2 + 100 + 8 𝑃𝐺3 + 0.02 𝑃𝐺3
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑇𝑜
𝑃𝐺1 − 5 = 20(𝛿1 −𝛿2 ) + 20(𝛿1 −𝛿3 )
−3 ≤ |𝑃13 | ≤ 3
But 𝛿1 = 0 (reference bus)
31
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
2 2 2
𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑓 = 100 + 4 𝑃𝐺1 + 0.02 𝑃𝐺1 + 200 + 8 𝑃𝐺2 + 0.04 𝑃𝐺2 + 100 + 8 𝑃𝐺3 + 0.02 𝑃𝐺3
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑇𝑜
33
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
Solution:
𝒚12 = 4 − 𝑗20 = 𝑔12 + 𝑗𝑏12 ; 𝑔12 = 4 ; 𝑏12 = −20
𝒚21 = 4 − 𝑗20 = 𝑔21 + 𝑗𝑏21 ; 𝑔21 = 4 ; 𝑏21 = −20
𝑁𝑔=2
34
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
2 2
𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑓 = 𝛼1 + 𝛽1 𝑃𝐺1 + 𝛾1 𝑃𝐺1 + 𝛼2 + 𝛽2 𝑃𝐺2 + 𝛾2 𝑃𝐺2
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑇𝑜 𝑃𝐺1 − 𝑃𝐷1 = 𝑃12 ; 𝑃12 = 𝑉12 𝑔12 − 𝑉1 𝑉2 [𝑔12 cos 𝛿1 −𝛿2 + 𝑏12 sin 𝛿1 −𝛿2 ]
𝑃𝐺2 − 𝑃𝐷2 = 𝑃21 ; 𝑃21 = 𝑉22 𝑔21 − 𝑉2 𝑉1 [𝑔21 cos 𝛿2 −𝛿1 + 𝑏21 sin 𝛿2 −𝛿1 ]
𝑄𝐺1 − 𝑄𝐷1 = 𝑄12 ; 𝑄12 = −𝑉12 𝑏12 − 𝑉1 𝑉2 [𝑔12 sin 𝛿1 −𝛿2 − 𝑏12 cos 𝛿1 −𝛿2 ]
𝑄𝐺2 − 𝑄𝐷2 = 𝑄21 ; 𝑄21 = −𝑉22 𝑏21 − 𝑉2 𝑉1 [𝑔21 sin 𝛿2 −𝛿1 − 𝑏21 cos 𝛿2 −𝛿1 ]
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃𝐺1 ≤ 𝑃𝐺1 ≤ 𝑃𝐺1
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃𝐺2 ≤ 𝑃𝐺2 ≤ 𝑃𝐺2
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑄𝐺1 ≤ 𝑄𝐺1 ≤ 𝑄𝐺1
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑄𝐺2 ≤ 𝑄𝐺2 ≤ 𝑄𝐺2
𝑉1𝑚𝑖𝑛 ≤ 𝑉1 ≤ 𝑉1𝑚𝑎𝑥
𝑉2𝑚𝑖𝑛 ≤ 𝑉2 ≤ 𝑉2𝑚𝑎𝑥
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃12 ≤ |𝑃12 | ≤ 𝑃12
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃21 ≤ |𝑃21 | ≤ 𝑃21
𝑚𝑖𝑛 𝑚𝑖𝑛
In the solution, we assume that 𝑃12 = 𝑃21 = 0.
35
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
2 2
𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑓 = 100 + 4 𝑃𝐺1 + 0.02 𝑃𝐺1 + 200 + 8 𝑃𝐺2 + 0.04 𝑃𝐺2
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑇𝑜 𝑃𝐺1 − 4 = 𝑃12 ; 𝑃12 = 𝑉12 (4) − 𝑉1 𝑉2 [(4) cos 𝛿1 −𝛿2 + −20 sin 𝛿1 −𝛿2 ]
𝑃𝐺2 − 5 = 𝑃21 ; 𝑃21 = 𝑉22 (4) − 𝑉2 𝑉1 [(4) cos 𝛿2 −𝛿1 + −20 sin 𝛿2 −𝛿1 ]
𝑄𝐺1 − 1 = 𝑄12 ; 𝑄12 = −𝑉12 −20 − 𝑉1 𝑉2 [(4) sin 𝛿1 −𝛿2 − (−20) cos 𝛿1 −𝛿2 ]
𝑄𝐺2 − 2 = 𝑄21 ; 𝑄21 = −𝑉22 −20 − 𝑉2 𝑉1 [(4) sin 𝛿2 −𝛿1 − (−20) cos 𝛿2 −𝛿1 ]
0.0 ≤ 𝑃𝐺1 ≤ 6.0
0.5 ≤ 𝑃𝐺2 ≤ 4.0
−5.0 ≤ 𝑄𝐺1 ≤ 5.0
−5.0 ≤ 𝑄𝐺2 ≤ 5.0
0.95 ≤ 𝑉1 ≤ 1.05
0.95 ≤ 𝑉2 ≤ 1.05
0.00 ≤ |𝑃12 | ≤ 1.5
0.00 ≤ |𝑃21 | ≤ 1.5
36
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
The solution is:
2
$
𝐶1 𝑃𝐺1 = 100 + 400 𝑃𝐺1 + 200 𝑃𝐺1 ; 0.0 ≤ 𝑃𝐺1 ≤ 6.0
ℎ
2
$
𝐶2 𝑃𝐺2 = 200 + 800 𝑃𝐺2 + 400 𝑃𝐺2 ; 0.5 ≤ 𝑃𝐺2 ≤ 4.0
ℎ
$ 2
𝐶3 𝑃𝐺3 = 100 + 800 𝑃𝐺3 + 200 𝑃𝐺3
; 1.0 ≤ 𝑃𝐺3 ≤ 5.0
ℎ
The limits of bus voltage magnitudes and reactive power of generators are:
38
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
39
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
The Formulation of the AC OPF Optimization Problem of the example is:
41
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
2 2 2
𝑀𝑖𝑛 𝑓 = 𝛼1 + 𝛽1 𝑃𝐺1 + 𝛾1 𝑃𝐺1 + 𝛼2 + 𝛽2 𝑃𝐺2 + 𝛾2 𝑃𝐺2 + 𝛼3 + 𝛽3 𝑃𝐺3 + 𝛾3 𝑃𝐺3
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑇𝑜
𝑃𝐺1 − 𝑃𝐷1 = 𝑃12 + 𝑃13
𝑃𝐺2 − 𝑃𝐷2 = 𝑃21 + 𝑃23
𝑃𝐺3 − 𝑃𝐷3 = 𝑃31 + 𝑃32
𝑄𝐺1 − 𝑄𝐷1 = 𝑄12 + 𝑄13
𝑄𝐺2 − 𝑄𝐷2 = 𝑄21 + 𝑄23
𝑄𝐺3 − 𝑄𝐷3 = 𝑄31 + 𝑄32
𝑚𝑖𝑛 𝑚𝑎𝑥 𝑚𝑖𝑛 𝑚𝑎𝑥 𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃𝐺1 ≤ 𝑃𝐺1 ≤ 𝑃𝐺1 𝑃𝐺2 ≤ 𝑃𝐺2 ≤ 𝑃𝐺2 𝑃𝐺3 ≤ 𝑃𝐺3 ≤ 𝑃𝐺3
𝑚𝑖𝑛 𝑚𝑎𝑥 𝑚𝑖𝑛 𝑚𝑎𝑥 𝑚𝑖𝑛 𝑚𝑎𝑥
𝑄𝐺1 ≤ 𝑄𝐺1 ≤ 𝑄𝐺1 𝑄𝐺2 ≤ 𝑄𝐺2 ≤ 𝑄𝐺2 𝑄𝐺3 ≤ 𝑄𝐺3 ≤ 𝑄𝐺3
𝑉1𝑚𝑖𝑛 ≤ 𝑉1 ≤ 𝑉1𝑚𝑎𝑥 𝑉2𝑚𝑖𝑛 ≤ 𝑉2 ≤ 𝑉2𝑚𝑎𝑥 𝑉3𝑚𝑖𝑛 ≤ 𝑉3 ≤ 𝑉3𝑚𝑎𝑥
𝑚𝑖𝑛 𝑚𝑎𝑥 𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃12 ≤ |𝑃12 | ≤ 𝑃12 𝑃21 ≤ |𝑃21 | ≤ 𝑃21
𝑚𝑖𝑛 𝑚𝑎𝑥 𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃13 ≤ |𝑃13 | ≤ 𝑃13 𝑃31 ≤ |𝑃31 | ≤ 𝑃31
𝑚𝑖𝑛 𝑚𝑎𝑥 𝑚𝑖𝑛 𝑚𝑎𝑥
𝑃23 ≤ |𝑃23 | ≤ 𝑃23 𝑃32 ≤ |𝑃32 | ≤ 𝑃32
The minimum real power line limits is zero, or 𝑃𝑖𝑗𝑚𝑖𝑛 = 0 .
42
Prof. Muwaffaq I. Alomoush, Yarmouk University, Irbid, Jordan
2 2 2
𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑓 = 100 + 4 𝑃𝐺1 + 0.02 𝑃𝐺1 + 200 + 8 𝑃𝐺2 + 0.04 𝑃𝐺2 + 100 + 8 𝑃𝐺3 + 0.02 𝑃𝐺3