Calculating the locational marginal price and solving optimal power flow problem based on congestion management using GA-GSF algorithm
Calculating the locational marginal price and solving optimal power flow problem based on congestion management using GA-GSF algorithm
https://doi.org/10.1007/s00202-020-00974-z
ORIGINAL PAPER
Abstract
An important factor in reviewing the performance of generation units and calculating their profit is the calculation of their
locational marginal price (LMP), and this depends on our knowledge on the capacity of transmission lines and optimal power
flow (OPF) based on reality by which we aim to minimize the total cost of the generators, solve the congestion of transmission
lines, and hence, reduce the price of electricity in the market. Since power flow equations are nonlinear, they should be
solved using numerical and repetition-based methods. In this paper, genetic algorithm (GA) has been employed to solve these
equations, and in order to improve the performance of GA in its structure, generating scaling factor (GSF) has also been
used for simultaneous calculations of power passing through in transmission lines so that by gaining some knowledge on the
capacity of transmission lines, in addition to optimal power flow becoming real, we could determine the electricity price by
uniform market pricing or LMP methods depending on using the full capacity of lines and generating power of the units, and
thus, we can calculate the profit of generators. Finally, the output of the proposed GA-GSF algorithm would include values
of buses voltages, lines losses, injected power to buses, power passing through lines, total generation cost, and generators’
profits. Also, the proposed algorithm in this paper has been tested on IEEE 14-BUS, IEEE 30-BUS, IEEE 57-BUS network,
and the results show improvements on the OPF problem.
Keywords Locational marginal price · Optimal power flow · Congestion management · Genetic algorithm · Generating
scaling factor
123
Electrical Engineering
mostly used to solve nonlinear equations in these systems. best response. This process reduces the convergence speed,
In these methods, the equations are solved in sequential rep- makes the power flow real, and also reduces the costs com-
etitions and finally, by reaching a converging point, the end pared to other methods. In the following and after introducing
of the calculation. Also, in order to start the calculations GA-GSF algorithm, a 24-h power flow was conducted on an
in power flow equations, some guesses should be made for IEEE 14-BUS network and eventually by determining the
unknown parameters. If these primary values were guessed electricity price through UMP or LMP, the profit of gener-
more accurately and were close to the actual power system ators is calculated and the results are compared with other
performance, the equations would converge sooner. methods such as economic dispatching (ED), quadratic pro-
Usually, optimal power flow (OPF) is used for studies on gramming using Lagrangian coefficients. The results indicate
overload fix in transmission lines, transmission systems con- the proper performance of the GA-GSF algorithm, compared
trol, calculating the available transmission capacity (ATC), to other algorithms.
lines congestion management, determining the price of active Organization of this article is as follows: In the second part
and reactive power and locational marginal price (LMP). In of this article, we introduce the problem of optimal power
OPF, control variables are determined in a way that the objec- flow and how to formulize of this problem; in the third part,
tive variable is minimized, and simultaneously, a series of the implementation procedures of power flow process in the
equal constraints (i.e., power flow equations) and unequal proposed algorithm are defined, and we explain how to deter-
constraints (including control and utilization limitations) are mine the market place for electricity and how to calculate the
established. In this series, the objective function equals the profits of generators. In the 4th part, the optimization algo-
total cost of all of the generators and control variables are rithm of GA-GSF is presented; in the 5th part, the results of
the active powers produced by generators and state vari- the implementation of the proposed algorithm are presented
ables are the domain and angle of buses’ voltages. Also, and conclusions are made in part 6.
unequal constraints include minimum and maximum limi-
tations of control variables, minimum and maximum voltage
of buses, and maximum transmission powers of lines [2,
3]. Many classical optimization techniques such as linear
2 Defining the problem of OPF
programming [4], quadratic programming [5, 6], gradient
The goal of OPF is to minimize the total fuel cost of thermal
and Lagrange methods, and also many artificial intelligence
units and also to maintain optimal system performance in
(AI) techniques such as classical evolutionary programming
terms of limitation in generator’s active and reactive power
(CEP) [7], improved fast evolutionary programming (IFEP)
output, bus voltage, capacitor/shunt reactor, transformer tap
[7], genetic algorithm (GA) [8], particle swarm optimization
adjustment, and power flow of transmission lines. In fact,
(PSO) [9–20], differential evolution (DE) [21], ant colony
OPF is an important issue in economic evaluation of power
optimization (ACO) [22] are used to solve optimal power
systems that can be defined as an optimization problem con-
flow problem. Usually, classical optimization methods do not
sisted of the objective function and some constraints and
perform well due to congestion in local minimum points and
its limitations are related to physical laws governing trans-
early convergence and although metaheuristic methods are
mission systems and energy generation and utilization and
successful in finding the optimal answer, they are relatively
equipment limitations.
slow in reaching convergence.
Genetic algorithm (GA) is among the evolutionary algo-
rithm that employs techniques inspired by natural evolution 2.1 Problem formulation
such as heredity, crossover, selection, and intercourse to find
solutions for optimization problems. In Refs [23–26] and OPF problem’s standard can be written as following (1):
[27–29], genetic and PSO algorithms have been used to solve
optimal power flow problems.
Min {F(x)}, h(x) 0; g(x) ≥ 0 (1)
Genetic algorithm is one of the strongest methods in solv-
ing optimization problems of power systems, but due to
operational processes in it, it has a high processing speed. in which F(x) is the objective function, h(x) indicates equal
In this paper and in order to improve GA in solving the prob- constraints, g(x) is unequal constraints, and x is the vector
lem of optimal power flow, generating scaling factor (GSF) of control variables which gets changed by the control cen-
was used in its structure not only to prevent congestion in ter operator (including active and reactive power, amount of
minimum local points but also to act in a way that calcu- generation bus voltage, transformer taps, etc.). The nature of
lates the power flow for each change in control variables, the OPF problem is to reduce the objective function and to
and in case of violation of lines capacity, the algorithm will simultaneously establish power flow equations (equal con-
exit this optimal point and continues this process to reach the straint) without violating unequal constraints.
123
Electrical Engineering
The most important goal in the formulation of OPF is the OPF’s unequal constraints reflect the limitations in physical
minimization of the total cost of active power generation. equipment of the power system and also limitations cre-
Also, the cost function of each generation unit depends on its ated for the system’s reliability. The most common types
generated active power and it is shown as a quadratic curve. of unequal constraints are high voltage limitation in buses
Then, the objective function of the entire system is obtained connected to power and generation units and low voltage lim-
by summing the cost functions of each generator (2). itation in buses connected to power. Generation limitations
include maximum and minimum generated active power in
Ng
generators, maximum capacity of transmission lines, and
F(x) ai + bi Pgi + ci Pgi2 (2) limitation in tap adjustment of TCULs and phase change.
i1
Unequal constraints of problem variables include:
in which N g is the number of generation units which include High and low bands of active power generated in buses
slack bus, Pgi is the generation active power in bus number that have generators (8).
i, and a, b, and c are the coefficients of the cost function for
each generator. min
PGi ≤ PGi ≤ PGi
max
(8)
One of the important factors in the OPF is the power loss Maximum passing capacity for each transmission line
in the network which reduces the power from generation to can be defined based on MW/MVAR/MVA considering the
consumption. Therefore, the power produced by the gener- conductor’s temperature or because of concerns for system
ator is equal to power consumption and network losses (6) stability (14):
and (7).
N Pi, j ≤ Pi,max
j (14)
Pi P D + PLoss (6)
i1
Now we can see that the objective function F is a nonlinear
Nbus
Nbus
PLoss |Vi | V j Ybusi j cos θbusi j − δi + δ j (7) function and the number of equal and unequal constraints
i1 j1 increases depending on the network size.
123
Electrical Engineering
⎡ ⎤
3 Implementation stages of OPF process S1,2 . . . S1, j
and determining the market price ⎢ .. .. ⎥
⎢. . ⎥
of electricity ⎢ ⎥ j 2, . . . , Nbus
SFI ⎢ Sk,2 . . . Sk, j ⎥
⎢
⎥, (21)
⎢. . ⎥ i 1, . . . , Nbus
3.1 Implementing the process of optimal power flow ⎣ .. .. ⎦
Si,2 . . . Si, j
Here, the solution to the power flow problem is divided into 5
stages that are implemented by the proposed algorithm. The 5. Repetitive calculations of the following stages to reach
stages are as follows: convergence:
(A) Forming a broad form of the problem using a Jaco-
1. Per-unitization of values and forming network’s admit- bian matrix:
tance matrix (Y bus ) (15):
δi −1 Pi
⎡ ⎤ [J ] (22)
Y11 . . . Y1 j . . . Y1n Vi Q i
⎢ .. .. .. ⎥
⎢. . . ⎥ B. Calculating power changes:
⎢ ⎥
Ybus ⎢ Yk1 . . . Yk j . . . Ykn ⎥
⎢
⎥ (15)
⎢. .. .. ⎥
Ns
⎣ .. . . ⎦ Pi |Vi ||Yin | V j cos δ j − δi + θin + P Di ,
Yn1 . . . Yn j . . . Ynn j1
123
Electrical Engineering
In this case, the final cost of units is calculated by deriv- Here, i is an indicator for buses that have a final generator.
ing from the functions of generators’ costs and putting the The second case: for buses that do not have a generator
minimum generation power obtained in (27); considering the or those whose generator has reached their generation limits
information of generation units of the IEEE 14-BUS network (considering IEEE 14-BUS network)
given in [1], final cost of the generators for the minimum gen-
erating power will be as follows: [30]
π j LMP j K i · LMPi ,
dFi P min $ i
i
MCi Pi min
, i 1, 2, 3, 6, 8 j ∈ {{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14} − i}
dPimin MWh
(30)
(27)
123
Electrical Engineering
4 Proposed algorithm GA-GSF ators should be used and this process is repeated until the
capacity of lines is in its range. Also, network losses have
In this part and before introducing GA-GSF algorithm, the not been considered in this method. Finally, the output of
structure of ED-GSF methods, Lagrangian-GSF is defined the ED-GSF method will be the generation capability of
and in the following and in order to evaluate their per- generators, power passing from lines, and total generation
formance, considering the power demand curve in 24 h, costs.
power flow problem is distinctly implemented by these
algorithms, and finally, utilization cost and profit in 24 h
are calculated. Also, it should be noted that alongside
these methods, generating scaling factors (GSF) is used 4.2 Lagrangian-GSF
to establish relations between change in power injected
to buses with the change in power passing in network’s In this method, a Lagrange function is created as a mixture of
lines to properly manage power transmitting from branches objective function and functions of equal and unequal con-
and to obtain real power flow. Also, this matrix can straints along with proper Lagrange coefficients. The optimal
be calculated using the information of lines (line’s reac- point of Lagrange functions is the solution to the OPF prob-
tance). lem. Also to find the optimal point of Lagrange function, this
fact is used that in the optimal point, the gradient of Lagrange
4.1 ED-GSF function is zero in relation to all variables and Lagrange
coefficients. Therefore, solving the OPF problem depends on
In this method, the power supply is done based on full finding the answer to an equation system which is obtained
capacity from cheaper to more expensive generators, mean- by placing a zero for the gradient. So, in order to solve this
ing that by calculating the final cost of the generators, we system, first default values are considered for variables and
can obtain knowledge about the performance of genera- Lagrange coefficients as the default optimal point. Then, the
tors and supply power using cheaper generators and this amount of variables changes to make the gradient zero is cal-
reduces the operation costs. But sometimes, because of the culated and default values of variables get corrected and this
capacity of transmission lines, it is not possible to use the process continues until the answers converge. Now, consider
full capacity of a cheap generator. Therefore, a mecha- Eqs. (37).
nism should be designed so that the passing power from In the equation, x, beq, Ib, and ub are the vectors, A and
each line could be calculated for the amount of injected Aeq are the matrices, and c(x), ceq(x), and F(x) are the func-
power and this is possible by using the GSF matrix. So tions that change the vectors. F(x), c(x), and ceq(x) can be
first, the GSF matrix is formed according to stage 4, and nonlinear functions. In this method, constraints 1 and 2 have
in the following, we supply power using cheaper generators not been considered, constraint 3 is the indicator of power
and then we calculated the capacity of lines by stage 5c. passing capacity from each line, constraint 4 is the indicator
Now, if the capacity of lines is violated, again other gener- of total generation equal to power demand, and constraint 5
123
Electrical Engineering
indicates the lower and upper limit of generation capacity of IEEE 14 bus System
bus13
generators.
⎧ bus12 bus14
⎪
⎪ c(x) ≤ 0 (1)
⎪
⎪
bus11
⎨ ceq(x) 0 (2)
bus8
min(x)max(i)Fi (x) A · x ≤ b (3) (37) bus9
⎪
⎪
⎪
⎪ Aeq · x beq (4) bus10
⎩ bus7
lb ≤ x ≤ ub (5) bus6
bus1 bus4
This method has been implemented on MATLAB using
fminimax command like the following:
bus5
(Algorithm type: ‘minimax SQP, quasi-Newton,
line_search’)
bus2 bus3
x, fval, maxfval, exitflag, output, lamda
fminimax(fun, x0, A, B, Aeq, Beq, lb, ub)
Fig. 2 Sample network
123
Electrical Engineering
8000 2 1
6000 0 0.5
0 20 40 60 80 100 1 2 3 4 5 20 40 60 80 100
Generation Number of variables (5) Generation
15 6000
Stall (T)
10 4000 Stall (G)
Time
5 2000
Generation
0 0
0 10 20 30 40 50 0 10 20 30 40 50 0 20 40 60 80 100
Individual % of criteria met
Score Histogram transmission Power Power Loss
Number of individuals
50 100 2.5
40 2
50
30 1.5
MW
MW
20 1
0
10 0.5
0 -50 0
1-2 1-5 2-3 2-4 2-5 3-4 4-5 4-7 4-9 5-66-116-126-137-8 7-99-109-1410-11
12-13
13-14 1-2 1-5 2-3 2-4 2-5 3-4 4-5 4-7 4-9 5-66-116-126-137-8 7-99-109-1410-11
12-13
13-14
6235 6236 6237 6238 6239 6240 6241
Score (range) Line Line
100 1
PU
MW
50 0.5
0 0
P1 P2 P3 P6 P8 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Power Bus
and μi coefficients and limit violations through the penalty be more optimal when this value is between 0.8 and 0.85 and
function are included in the objective function. the smaller this value, the farther we are from the optimal
answer. In the GA-GSF method, a crossover value of 0.85
Ng
has been considered and mutation is of the Gaussian type.
FT F(x) ai + bi Pg i + ci Pg i 2 (38)
(i1)
Neq Nineq
f (x) FT + μi |gi (x)| + λ j h j (x) + penalty (39) • Work stages All the stages defined in Fig. 1 will be imple-
i1
i1
mented as the following by GA:
n
Penalty 100 ∗ abs Pi − P D − PLoss (40) (A) Creating an initial population
i1 (B) Calculating the fitness function f (x) using OPF (i.e.,
the objective function designed with 5 stages)
An important factor in GA is crossover that causes the (C) Selecting a specific number of initial population
creation of new generations with better characteristics and chromosomes and applying genetic operators (muta-
has a possibility between 0 and 1, and usually, the answer will tion and crossover)
123
Electrical Engineering
P1 (MW) 50 200 161.4592 154.7555 133.6103 138.7025 162.7528 135.75 131.7265 139.0018 132.6016
P2 (MW) 20 80 20 20 56.8206 59.5883 60.1288 20 23.3831 24.8658 26.6337
P3 (MW) 15 50 50 50 36.4725 33.2682 40.5898 50 50 50 50
P6 (MW) 10 30 10 30 24.9509 23.9271 21.6584 30 30 30 30
P8 (MW) 10 35 23.5941 10 28.8968 23.901 27.0935 23.25 23.8904 24.1745 24.5135
P1,2 (MW) 120 105.5066 101.8434 71.8454 75.8468 69.2586 93.1343 89.8782 88.4489 86.7446
P1,5 (MW) 65 49.8993 47.1566 40.0138 42.4686 40.2709 42.6157 41.8483 41.5107 41.1082
P2,3 (MW) 36 38.3397 37.8898 44.0003 46.6160 42.5510 35.9989 36 36 36
P2,4 (MW) 65 37.3628 36.4213 36.0876 38.4536 37.0483 32.4641 32.4664 32.4664 32.4663
P2,5 (MW) 50 28.1040 25.8323 26.8782 28.6654 28.0882 22.9713 23.0949 23.1483 23.212
P3,4 (MW) 63 − 5.8603 − 6.3102 − 13.7272 − 14.3158 − 11.0592 − 8.2011 − 8.2 − 8.2 − 8.2
P4,5 (MW) 45 − 40.3963 − 45.8344 − 40.1182 − 42.6453 − 39.1445 − 41.0784 − 40.5778 − 40.3572 − 40.0941
P4,7 (MW) 55 12.3473 16.6271 5.6951 9.0582 7.6087 8.2239 7.8275 7.6516 7.4417
P4,9 (MW) 32 11.7515 11.5184 8.9834 9.9250 9.7248 9.3175 9.2167 9.172 9.1186
P5,6 (MW) 45 30.0071 19.5545 19.1738 20.8887 21.6146 16.9086 16.7654 16.7019 16.6262
P6,11 (MW) 18 5.0543 10.8036 7.5338 7.9500 7.0210 9.2103 9.124 9.0858 9.0402
P6,12 (MW) 32 7.3615 8.2059 7.7257 7.7868 7.6503 7.9719 7.9592 7.9536 7.9469
P6,13 (MW) 32 16.3913 19.3450 17.6652 17.8790 17.4017 18.5265 18.4821 18.4625 18.4391
P7,8 (MW) 32 − 23.5941 − 10.0000 − 28.8968 − 23.9010 − 27.0935 − 23.25 − 23.8904 − 24.1745 − 24.5135
P7,9 (MW) 32 35.9414 26.6271 34.5919 32.9592 34.7022 31.4739 31.7179 31.8261 31.9552
P9,10 (MW) 32 7.4457 1.6964 4.9662 4.5500 5.4790 3.2897 3.376 3.4142 3.4598
P9,14 (MW) 18 10.7473 6.9491 9.1092 8.8342 9.4480 8.0017 8.0587 8.0839 8.114
P10,11 (MW) 12 − 1.5543 − 7.3036 − 4.0338 − 4.4500 − 3.5210 − 5.7103 − 5.624 − 5.5858 − 5.5402
P12,13 (MW) 12 1.2615 2.1059 1.6257 1.6868 1.5503 1.8719 1.8592 1.8536 1.8469
P13,14 (MW) 12 4.1527 7.9509 5.7908 6.0658 5.4520 6.8983 6.8413 6.8161 6.786
V1 (pu) 1.1000 1.1000 0.9558 0.9819 0.9965 – – 1.0600 1.0600
V2 (pu) 1.0804 1.0979 0.9565 0.9788 0.9860 – – 1.0350 1.0450
V3 (pu) 1.0544 1.0734 0.9592 0.9894 0.9810 – – 1.0000 1.0100
V4 (pu) – – – – – – – 1.0061 1.0232
V5 (pu) – – – – – – – 1.0098 1.0264
V6 (pu) 1.1000 1.0686 0.9512 0.9833 0.9945 – – 1.0600 1.0700
V7 (pu) – – – – – – – 1.0409 1.0540
V8 (pu) 1.0756 1.0354 0.9922 0.9774 0.9904 – – 1.0800 1.0900
V9 (pu) – – – – – – – 1.0241 1.0365
V10 (pu) – – – – – – – 1.0228 1.0348
V11 (pu) – – – – – – – 1.0376 1.0485
V12 (pu) – – – – – – – 1.0434 1.0538
V13 (pu) – – – – – – – 1.0370 1.0474
V14 (pu) – – – – – – – 1.0113 1.0230
Power losses 6.0533 5.7555 21.7511 20.3871 53.2233 – – 9.0422 4.7488
(MW)
Generation 6170.6 6165.6 6342.8 6203.1 7159.5 6128.5 6126.4 6332.7 6235.4
cost ($)
Processing 8.814 s 8.9 s 9.2 s 28.5 s 100.1 s 5.6 s 3.42 s 10.9 s 20.97 s
speed
123
Electrical Engineering
(D) Repeating part B and reviewing the establishment erators that have caused increased generation costs. Table 1
of the conditions and in case of violation, repetition compares the results from the proposed method with other
until reaching a more optimal answer. methods.
123
Electrical Engineering
1 2 3 4 5 6 7 8 9 10 11 12
1 0 0 0 0 0 0 0 0 0 0 0 0
2 10.4 13.29 14.3 14.98 15.98 16.65 17.66 18.34 19 20.01 21.02 21.7
3 82.9 85.79 86.8 87.48 88.48 89.15 90.16 90.84 91.5 92.51 93.52 94.2
4 36.5 39.39 40.4 41.08 42.08 42.75 43.76 44.44 45.1 46.11 47.12 47.8
5 0 0 0 0 1.88 2.55 3.56 4.24 4.9 5.91 6.92 7.6
6 0 2.79 3.8 4.48 5.48 6.15 7.16 7.84 8.5 9.51 10.52 11.2
7 0 0 0 0 0 0 0 0 0 0 0 0
8 0 0 0 0 0 0 0 0 0 0 0 0
9 18.2 21.09 22.1 22.78 23.78 24.45 25.46 26.14 26.8 27.81 28.82 29.5
10 0 0 1.6 2.28 3.28 3.95 4.96 5.64 6.3 7.31 8.32 9
11 0 0 0 0 0 0 0 0.14 0.8 1.81 2.82 3.5
12 0 0 0 0 0 1.05 2.06 2.74 3.4 4.41 5.42 6.1
13 0 2.05 4.06 4.96 6.56 7.5 9.02 10.04 11.1 12.01 13.12 13.5
14 0 2.1 4.54 6.96 8.58 9.3 10.8 11.6 12 13.1 14 14.9
PD (MW) 148 166.5 177.6 185 196.1 203.5 214.6 222 229.4 240.5 251.6 259
Bus load 13 14 15 16 17 18 19 20 21 22 23 24
1 0 0 0 0 0 0 0 0 0 0 0 0
2 20.01 19 18.34 16.65 14.23 16.65 18.34 20.01 18.34 16.65 14.23 13.29
3 92.51 91.5 90.84 89.15 87.38 89.15 90.84 92.51 90.84 89.15 87.38 85.79
4 46.11 45.1 44.44 42.25 41.08 42.25 44.44 46.11 44.44 42.25 41.08 39.39
5 5.91 4.9 4.24 2.55 0.88 2.55 4.24 5.91 4.24 2.55 0.88 0
6 9.51 8.5 7.84 6.15 3.08 6.15 7.84 9.51 7.84 6.15 3.08 2.79
7 0 0 0 0 0 0 0 0 0 0 0 0
8 0 0 0 0 0 0 0 0 0 0 0 0
9 27.81 26.8 26.14 24.45 22.01 24.45 26.14 27.81 26.14 24.45 22.01 21.09
10 7.31 6.3 5.44 3.45 2.18 3.45 5.64 7.31 5.64 3.45 2.18 0
11 1.9 0.9 0.3 0 0 0 0.14 1.81 0.14 0 0 0
12 4.41 3.4 2.74 1.05 0 1.05 2.7 4.5 2.7 1.05 0 0
13 11.81 10.8 10.14 8.05 6.08 8.05 10.14 11.81 10.14 8.05 6.08 2.05
14 13.21 12.2 11.54 9.75 8.08 9.75 11.54 13.21 11.54 9.75 8.08 2.1
PD (MW) 240.5 229.4 222 203.5 185 203.5 222 240.5 222 203.5 185 166.5
of [1, 31] are completely wrong. In the proposed method, any congestion in the IEEE 30-BUS network and also the
because of considering generating scaling factors, real power proposed algorithm has yielded a lower generation cost.
flow has been obtained. Also, the reason for reduced costs In Table 3, the proposed method has been compared to
in ED-GSF and LA-GSF methods is that they did not take methods of [1, 31]. As you can see, sometimes the capacity
into account the network losses. In the end, we can see that of some lines of the IEEE 57-BUS network has been vio-
in GA-GSF method, the generation costs, network losses, lated in methods of [1, 31], whereas in the proposed method,
and also the processing speed have significantly decreased in addition to not violating these limits, we have achieved
compared to GA [31] method. reduced generation costs. The lines that are very effective
Also, in order to better investigate the proposed method, in OPF are highlighted in italic and lines that exceed their
the GA-GSF method has been implemented on IEEE 30-BUS capacity limits are highlighted in bold.
and IEEE 57-BUS networks. Table 2 shows the power flow From the results of Tables 1, 2, and 3, we can conclude
results from the proposed method and [1], and there was not that the proposed algorithm not only makes the power flow
123
Electrical Engineering
500 Load2
Consumed power of Network 5 Simulation results
Load3
450 Load4
Load5
Imagine that Table 4 and Fig. 4 are the predictor curve of
400
Load6 power demand for an IEEE 14-BUS network in 24 h where
Load9
350
Load10
the load peak occurs at 12 midday and 8 PM. Now, in order to
Demand (MW)
123
Electrical Engineering
LMP
Bus 1 Bus 2 Bus 3 Bus 4 Bus 5 Bus 6 Bus 7 Bus 8 Bus 9 Bus 10 Bus 11 Bus 12 Bus 13 Bus 14
12 22.68 21.46 63.03 34.27 30.62 31.86 33.80 33.80 33.27 33.02 32.45 31.97 32.06 32.74
Demand (MW)
network losses, total generation cost, and electricity price 200
for 24 h of a day. From the results, we can see that one of the
limitations of this network is the 36-MW capacity of line 2–3 100
that has reached its maximum capacity at the time 12 midday. P1
P2
Therefore, in this hour, the price will be calculated based on 0
LMP and Table 6 shows LMP values for different buses. 1 2 3 4 5 6 P3
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
P6 Hour
Considering Table 5 information, the generation capacity P8
0
of generators and power passing through lines are, respec-
tively, shown in Figs. 5 and 6. As you can see, we can properly
-5
relate the changes in power injected to buses to the passing
MW
power in lines using GA-GSF and we could do power flow Power Loss
-10
in a way that, contrary to methods in [1, 31], does not vio-
late the capacity limits and we can obtain a real power flow.
-15
Now, the first question that comes to mind is that why bus 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
generator 2 generates less power compared to bus generators Hour
3, 6, and 8 that are more expensive? To answer this question,
Fig. 5 Generation power and network losses in GA-GSF method
Fig. 6 results can help us; in these results, the maximum gen-
eration capacity of each line and also the number of changes
in 24 h are specified. We can clearly see that the reason for ED-GSF method, generators 6 and 8 entered the circuit only
this problem is the 36-MW capacity of line 2–3 that don’t in load peak hours and were off most of the time. And in the
allow bus generator 2 to generate more power and this line NR-LA-GSF method, considering that quadratic equations
reaches its maximum capacity at 12 midday. Also, negative were solved on MATLAB to solve the problem, the answers
power columns indicate the reversed direction of power in are obtained for a maximum capacity of lines.
that line. So, considering the results of lines 3–4, power is
transferred from bus 4 to bus 3 and this is another reason for • Determining electricity price
the reduced power generation of bus generator 2. Therefore,
bus 3 power is supplied as the following:
In the GA-GSF method, considering the review of network
lines’ capacity and full capacity of lines 2–3 at 12 midday,
Load3 P2,3 + P3 + P3,4 LMP price should be calculated for buses at this hour and
for other hours (when lines are not full), UMP is considered
Figure 7 compares the results of power flow by NR-LA- and its values are shown in Fig. 8. As you can see from the
GSF, ED-GSF, and GA-GSF methods. As it was previously results of Fig. 8, the capacity of lines 2–3 was full and it
mentioned, in the IEEE 14-BUS network under study, the was not possible to generate more power by bus generators
capacity of lines 2–3 is one of the main barriers in increasing 1 and 2, and in order to compensate, we had to use the most
the production of generators 1 and 2. The condition of power economic generator, meaning generator 3. This itself has led
passing from lines 2–3 for NR-LA-GSF, ED-GSF, and GA- to the reduced price in buses 1 and 2 and increased price in
GSF methods is shown in Fig. 7. In the NR-LA-GSF method, bus 3, and its results are well shown in Fig. 8. Also in the
lines 2–3 are at its full capacity in all the hours. Therefore, NR-LA-GSF method, due to the full capacity of lines 2–3 at
for times when the capacity of lines 2–3 has reached its max, all times, there is no UMP and LMP should be calculated for
electricity price should be calculated as LMP. Figures 8 and 9 all 24 h. The results are shown in Fig. 9. As you can see in
show the electricity market price by NR-LA-GSF, ED-GSF, Fig. 8, electricity prices in buses 1 and 2 are less than other
and GA-GSF methods. Also, Fig. 7 results show that in the buses.
123
Electrical Engineering
Capacity (MW)
Capacity (MW)
Capacity (MW)
Capacity (MW)
120 65 65
Line1-2,full 120 Line1-5,full 65 Line2-4,full 65
Line2-3,full 36
60 32.5 36 32.5
0 0 0
0 12 24 0 12 24 0 12 24 0 12 24
Hour Hour Hour Hour
Capacity (MW)
Capacity (MW)
Capacity (MW)
Capacity (MW)
50 0 0
Line2-5,full 50 10
25 -20 -20
0
Line3-4,full 63 -40 Line4-7,full 55
Line4-5,full 45
0 -40 -10
0 12 24 0 12 24 0 12 24 0 12 24
Hour Hour Hour Hour
Capacity (MW)
Capacity (MW)
Capacity (MW)
Capacity (MW)
20
Line4-9,full 32 Line6-11,full 18 Line6-12,full 32
10 10 10 10
5 0 5 5
Line5-6,full 45
0 -10 0 0
0 12 24 0 12 24 0 12 24 0 12 24
Hour Hour Hour Hour
Capacity (MW)
Capacity (MW)
Capacity (MW)
Capacity (MW)
0 10
Line6-13,full 32 40 Line7-9,full 32
20
-20 20 0
10
Line7-8,full 32 Line9-10,full 32
0 -40 0 -10
0 12 24 0 12 24 0 12 24 0 12 24
Hour Hour Hour Hour
Capacity (MW)
Capacity (MW)
Capacity (MW)
Capacity (MW)
10 0 4 10
Line12-13,full 12 Line13-14,full 12
0 -5 2 5
Line9-14,full 18
Line10-11,full 12
-10 -10 0 0
0 12 24 0 12 24 0 12 24 0 12 24
Hour Hour Hour Hour
P3
P6
200 200 200
P8
0 0 0
0 12 24 0 12 24 0 12 24
Hour Hour Hour
Capacity (MW)
0 12 24 0 12 24 0 12 24
Hour Hour Hour
Fig. 7 Power flow results for NR-LA-GSF, ED-GSF, and GA-GSF methods
Now that the market price has been determined, we could each generator along with total GENCO profit in the GA-
calculate the profit for each generator. Table 7 shows the GSF method. As you can see, at 12 middays when there
calculations and the total profit of generators in 24 h in the was congestion in lines 2–3, the profits of bus genera-
GA-GSF method. tors have decreased because of reduced LMP, and at the
In the GA-GSF method, the total profit of generators same hour, because of increased LMP in buses 3, 6, and
equals 30,788.77$. Also, the highest profit belongs to bus 8, their profits have increased. These changes can be seen in
generator 1 and the least profit belongs to bus genera- Fig. 10.
tors 6 and 8 and this is because we tried to keep the Figure 11 shows the total profit made by NR-LA-GSF,
electricity price low and use expensive generators to the ED-GSF, and GA-GSF methods. By comparing the results,
least extent. Figure 10 shows the profit by the hour for we can see that the factors of loss, power flow method, and
123
Electrical Engineering
60 29 UMP,bus 1,2,3,4,5,6,7,8,9,10,11,12,13,14
UMP,bus 1,2,3,4,5,6,7,8,9,10,11,12,13,14
40 27
$/MWh
UMP UMP
25
20
LMP
23 LMP LMP
0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Hour Hour
63.03
57.12
55.04
52
LMP,Hour = 12 LMP,Hour = 10 LMP,Hour = 11 LMP,Hour = 15
$/MWh
31.515
27.52 28.56
26
64 64 64 64
LMP,bus 3
$/MWh
$/MWh
$/MWh
$/MWh
LMP,bus 1 LMP,bus 2 LMP,bus 4
32 32 32 32
0 0 0 0
0 12 24 0 12 24 0 12 24 0 12 24
Hour Hour Hour Hour
64 64 64 64
$/MWh
$/MWh
$/MWh
$/MWh
LMP,bus 5 LMP,bus 6 LMP,bus 7 LMP,bus 8
32 32 32 32
0 0 0 0
0 12 24 0 12 24 0 12 24 0 12 24
Hour Hour Hour Hour
64 64 64 64
$/MWh
$/MWh
$/MWh
$/MWh
0 0 0 0
0 12 24 0 12 24 0 12 24 0 12 24
Hour Hour Hour Hour
64 64
$/MWh
$/MWh
LMP,bus 13 LMP,bus 14
32 32
0 0
0 12 24 0 12 24
Hour Hour
determining electricity price have significantly influenced the the profit of generators by reducing losses and increasing
profit of generators, in a way that the profit from the GA-GSF electricity prices.
method is 38$ more than the NR-LA-GSF method that had Finally, according to the results, the advantage of the pro-
an LMP price during all hours and 12,081 $ more than ED- posed method compared to other methods can be described
GSF which has not considered the losses. Also, this profit as follows:
is obtained in a way that network losses have increased and
congestion occurs only at 12 midday. Therefore, we can say • Providing optimal power flow reality-based: using gener-
that apart from reduced generation costs, we can increase ating scaling factors in the algorithm structure to manage
123
Electrical Engineering
the congestion of lines. As opposed to the quasi-heuristic calculation to be brought closer to reality and with network
and quadratic programming methods introduced, no con- monitoring to identify network weaknesses.
gestion of the capacities of the lines occurred and actual • In addition to reducing production costs, generators profit
optimal power flow was presented. can be increased by reducing losses and optimizing elec-
• Presenting the weaknesses of the proposed designs using tricity prices over other methods.
metaheuristic algorithms. • Increasing the accuracy of the algorithm for the larger net-
• Calculating electricity market prices: In this project the works: while the accuracy of the algorithms in the IEEE
goal of reducing electricity prices based on the elimination 14-BUS network that has some restrictions compared to
of congestion lines. other methods is better.
• Increasing the computational speed of the algorithm with
considering the generating scaling factor: Such that for the
generation power, one can quickly check the condition of
the power passing on the lines so that the algorithm does 6 Conclusion
not get stuck at this point in case of violation the capacity
of the lines and can calculate the appropriate optimal point. In this article, we used the metaheuristic algorithm GA-GSF
• Including the terms of the losses in the power flow calcula- to solve the OPF problem and to calculate the locational
tions and monitoring of all network lines: This allows the marginal price (LMP). First, we introduced ED, NR, and
Lagrangian methods and then we used these methods in
genetic algorithm. In order to improve the structure of the
123
Electrical Engineering
G1 benfit G2 benfit
1500 300
genetic algorithm, we used GSF in the structure of GA, so
250 that we can relate the changes in the power passing through
1000 200 network lines to changes in the power of generators. And we
simultaneously check the conditions for establishing flow
$
150
500 100
power in the network for each variable and in case the
50
obtained minimum point violated the conditions, the process
0 0
0 2 4 6 8 10 12 14 16 18 20 22 24 0 2 4 6 8 10 12 14 16 18 20 22 24
will be repeated. In the end, the output of the proposed algo-
Hour Hour
G3 benfit G6 benfit rithm will be the power of generation units, network losses,
2000
100
bus voltage, generation cost, and power passing through
1500
lines, and by checking the capacity of lines, we could also
1000 50
calculate the market price of electricity and profit of genera-
$
500
0
tors.
0 An important issue in OPF is the lack of congestion in
-500
0 2 4 6 8 10 12 14 16 18 20 22 24
-50
0 2 4 6 8 10 12 14 16 18 20 22 24
network lines. Simulation results show the proper perfor-
Hour Hour mance of the GA-GSF algorithm compared to methods used
G8 benfit Genco=G1+G2+G3+G6+G8
in [1, 31], in a way that it has resulted in reduced losses, low
100 2000
processing time, reduced generation cost, and reality-based
50
1500 OPF.
$
1000
-50 0
0 2 4 6 8 10 12 14 16 18 20 22 24 0 2 4 6 8 10 12 14 16 18 20 22 24
Hour Hour
1000 1000
0 0
0 2 4 6 8 10 12 14 16 18 20 22 24 0 2 4 6 8 10 12 14 16 18 20 22 24
Hour Hour
ED-GSF (without Loss) GA-GSF
1000 1000
0 0
0 2 4 6 8 10 12 14 16 18 20 22 24 0 2 4 6 8 10 12 14 16 18 20 22 24
Hour Hour
x 10
4 Comparison of methods
3
benfit Total ($)
2.5
123
Electrical Engineering
References 18. Park J-B, Jeong Y-W, Lee W-N, Shin J-R (2006) An improved
particle swarm optimization for economic dispatch problems with
1. Vasant PM (2012) Meta-heuristics optimization algorithms in engi- non-smooth cost functions. In: IEEE power engineering society
neering, business, economics, and finance. p 734. https://doi.org/1 general meeting
0.4018/978-1-4666-2086-5 19. Thanushkodi K, Muthu Vijaya Pandian S, Dhivy Apragash RS,
2. Shahidehpour M, Alomoush M (2001) Restructured electrical Jothikumar M, Sriramnivas S, Vindoh K (2008) An efficient particle
power systems: operation, trading, and volatility. Marcel Dekker, swarm optimization for economic dispatch problems with nons-
New York mooth cost functions. WSEAS Trans Power Syst 3(4):257–266
3. Alomoush M (2003) Derivation of UPFC DC load flow model with 20. Meng Ke et al (2010) Quantum-inspired particle swarm optimiza-
examples of its use restructured power systems. IEEE Trans Power tion for valve point economic load dispatch. IEEE Trans Power
Syst 18(3):1173–1180 Syst 25(1):215–222
4. Stott B, Marinho JL (1979) Linear programming for power system 21. Vaisakh K, Srinivas LR (2005) Differential evolution approach for
network security applications. IEEE Trans Power Appar Syst PAS- optimal power flow solutions. J Theor Appl Inf Technol 2:261–268
98:837–848 22. Allaoua B, Laoufi A (2009) Optimal power flow solution using ant
5. Reid GF, Hasdorf L (1973) Economic dispatch using quadratic manners for electrical network. Adv Electr Comput Eng 9(1):34–40
programming. IEEE Trans Power Appar Syst PAS-92:2015–2023 23. Haibo Z, Lizi Z, Fanling M (1998) Reactive power optimization
6. Dommel HW, Tinney WF (1968) Optimal power flow solutions. based on genetic algorithm. In: International power conference on
IEEE Trans Power Appar Syst PAS-87:1866–1876 power system technology. pp 1448–1453
7. Sinha N, Chakrabarti R, Chattopadhyay PK (2003) Evolutionary 24. Sulaiman MH, Mustafa MW, Aliman O (2009) Transmission loss
programming techniques for economic load dispatch. IEEE Trans and load flow allocations via genetic algorithm technique. IEEE
Evol Comput 7(1):83–94 Xplore, TENCON
8. Bouktir T, Slimani L, Belkacemi M (2004) A genetic algorithm for 25. Hazra J, Sinha AK (2007) A study on real and reactive power
solving the optimal power flow problem. Leonardo J Sci 4:44–58 optimization using particle swarm optimization. In: International
9. Kennedy J, Eberhart RC (1995) Particle swarm optimization. In: conference on industrial and information systems. pp 323–328
Proceedings of IEEE international conference on neural networks 26. Rahul J, Sharma Y, Birla D (2012) A new attempt to opti-
(ICNN’95). Perth, Australia, vol IV, pp 1942–1948 mize optimal power flow based transmission losses using genetic
10. Chen CH, Yeh SN (2006) Particle swarm optimization for eco- algorithm. In: Computational intelligence and communication net-
nomic power dispatch with valve-point effects. In: 2006 IEEE works (CICN), IEEE Xplore
PES transmission and distribution conference and exposition Latin 27. Vu PT, Le DL, Vo ND (2010) A novel weight-improved particle
America, Venezuela swarm optimization algorithm for optimal power flow and eco-
11. Chaturvedi KT, Pandit M, Srivastava L (2008) Self organizing nomic load dispatch problems. In: Transmission and distribution
hierarchical particle swarm optimization for nonconvex economic conference and exposition
dispatch. IEEE Trans Power Syst 23(3):1079–1087 28. Kumar S, Chaturvedi DK, Grant L (2013) Optimal power flow
12. Yoshida H, Kawata K, Fukuyama Y, Nakanishi Y (2001) A par- solution using fuzzy evolutionary and swarm optimization. Int J
ticle swarm optimization for reactive power and voltage control Electr Power Energy Syst 47:416–423
considering voltage security assessment. IEEE Trans Power Syst 29. Goswamia SK, Acharjee P (2010) Multiple low voltage power flow
15(4):1232–1239 solutions using hybrid PSO and optimal multiplier method. Expert
13. Krost G, Venayagamoorthy GK, Grant L (2008) Swarm intelli- Syst Appl 37(3):2473–2476
gence and evolutionary approaches for reactive power and voltage 30. Najafi M, Ahmadi S, Dashtdar M (2015) Simultaneous energy and
control. In: 2008 IEEE swarm intelligence symposium reserve market clearing with consideration of interruptible loads as
14. Mo N, Zou ZY, Chan KW, Pong TYG (2007) Transient stability one of demand response resources and different reliability require-
constrained optimal power flow using particle swarm optimization. ments of consumers. Int J Emerg Electr Power Syst. https://doi.org/
IEEE Gener Transm Distrib 1(3):476–483 10.1515/ijeeps-2019-0018
15. Swarup KS (2006) Swarm intelligence approach to the solution of 31. Sinsuphan N, Leeton U, Kulworawanichpong T (2013) Optimal
optimal power flow. Indian Inst Sci 86(5):439–455 power flow solution using improved harmony search method.
16. Abou El-Ela AA, El-Sehiemy RAA (2007) Optimized generation Power Syst Res Unit 13(5):2364–2374
costs using modified particle swarm optimization version. WSEAS
Trans Power Syst 10(2):225–232
17. Abido MA (2002) Optimal power flow using particle swarm opti- Publisher’s Note Springer Nature remains neutral with regard to juris-
mization. Electr Power Energy Syst 24(2002):563–571 dictional claims in published maps and institutional affiliations.
123