Optimal Power Flow Using Improved Cross-Entropy Me
Optimal Power Flow Using Improved Cross-Entropy Me
Article
Optimal Power Flow Using Improved Cross-Entropy Method
Hao Su 1 , Qun Niu 1, * and Zhile Yang 2
1 Shanghai Key Laboratory of Power Station Automation Technology, School of Mechatronic Engineering and
Automation, Shanghai University, Shanghai 200444, China; [email protected]
2 Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences, Shenzhen 518055, China;
[email protected]
* Correspondence: [email protected]
Abstract: An improved cross-entropy (CE) method assisted with a chaotic operator (CGSCE) is
presented for solving the optimal power flow (OPF) problem. The introduction of the chaotic operator
helps to enhance the exploration capability of the popular cross-entropy approach while the global
best solution is preserved. To handle the constraints in the optimal power flow, an efficient constraint
handling technique with no parameter adjustment is also introduced. The approach is tested on
both the IEEE-30 bus system and the IEEE-57 bus system with different objective functions to verify
its effectiveness in comparison with a few other methods reported in the literature. Simulation
results confirm that the proposed method is capable of improving both the exploration ability and
the convergence speed of the conventional cross-entropy method. It outperforms the original cross-
entropy, its variant GSCE and other methods in most of the OPF study cases.
Keywords: optimal power flow; cross entropy; constraint handling; power system; optimization
1. Introduction
OPF is a popular topic in the field of power system dispatch which aims to opti-
mize selected objective functions with a set of control variables while meeting various
system equality and inequality constraints simultaneously [1]. The OPF problem is often
formulated as minimization of a quadratic fuel cost function without the consideration
of environmental concerns, power quality and other factors that are often presented in
Citation: Su, H.; Niu, Q.; Yang, Z. the practical power system operation [2]. Recently, carbon taxes have been introduced
Optimal Power Flow Using in many countries and regions with the aim to mitigate greenhouse effects, and emission
Improved Cross-Entropy Method. has also been considered as an objective in OPF problem. Meanwhile, voltage deviation
Energies 2023, 16, 5466. https:// and transmission loss are often included into the problem formulation [3]. To solve OPF
doi.org/10.3390/en16145466 problem, several conventional OPF methods are popular, such as the gradient method,
Academic Editor: Javier Contreras newton’s method, simplex method, sequential linear programming, sequential quadratic
programming and interior point methods [4]. Most of these conventional OPF methods
Received: 25 May 2023 assume that the cost function is linear, convex and continuous [5]. However, OPF problem
Revised: 3 July 2023
is often a non-linear, non-convex and non-continuous when some practical issues like the
Accepted: 8 July 2023
valve point effect, multi-fuel cost and prohibited operating zones are introduced which
Published: 19 July 2023
makes these conventional methods less effective for solving the OPF problem and even
may fail.
Recent advances in machine learning and artificial intelligence have led to the devel-
Copyright: © 2023 by the authors.
opment of more advanced algorithms with global search capabilities such as evolutionary
Licensee MDPI, Basel, Switzerland. algorithms, swarm algorithms and other heuristic algorithms. For examples, genetic al-
This article is an open access article gorithm (GA) [6], differential evolution (DE) [7], particle swarm optimization (PSO) [8],
distributed under the terms and harmony search algorithm (HSA) [9], teaching-learning-based optimization (TLBO) [10]
conditions of the Creative Commons and artificial bee colony optimization (ABC) [11] have been widely used. These algorithms
Attribution (CC BY) license (https:// require no information about derivatives, gradients and Hessian matrix, they usually adopt
creativecommons.org/licenses/by/ some random search strategies such as randomly generation population, crossover and
4.0/). mutation which can help the algorithm to jump out of the local optimum effectively.
Over the past years, a variety of heuristic algorithms for OPF problem have been
developed. An algorithm based on the modified shuffle frog leaping algorithm (MSLFA)
was presented to solve both single objective and multi-objective OPF problems [12]. A
strong mutation was added to the algorithm to improve diversity and avoid premature
convergence. Simulation results showed that MSLFA excels other approaches including
original SFLA reported in the literature. Later, Narimani el. presented a hybrid modified
PSO-SFLA (HMPSO-SFLA) algorithm which profit the superiority of both PSO and SFLA
algorithms to the problem of OPF [13]. A novel mutation named self-adaptive probabilistic
mutation operator is used to increase diversity of population. Simulation studies confirmed
that the HMPSO-SFLA outperforms MSLFA. Similarly, a hybrid modified imperialist com-
petitive algorithm and teaching and learning algorithm (MICA-TLA) was presented which
is demonstrated to be superior to the original version of ICA and TLA in solving OPF
problem [14]. In [15] , artificial bee colony (ABC) algorithm was employed in OPF problem,
achieving remarkable performance in IEEE 9-bus system, IEEE-30 bus system and IEEE
57-bus system. Roy and Jadhav proposed a Gbest guided artificial bee colony optimization
algorithm (GABC) for solving OPF problem [16]. In order to overcome the shortcoming
of poor local search ability in ABC, information of global best solution is used to direct
the search process towards global optimal in GABC. A modified teaching–learning based
optimization (MTLBO) algorithm was applied to both IEEE 30-bus system and IEEE-57
bus system [17]. In order to improve the performance of the original TLBO algorithm, a
self-adapting wavelet mutation strategy was introduced to achieve faster convergence and
avoid getting trapped in local optimum. Simulation result showed that MTLBO outper-
formed the original TLBO and other algorithms reported in the literature. Ghasemi el.
proposed an improved teaching-learning-based optimization with Lévy mutation strategy
for solving optimal power flow [18]. The introduction of Lévy mutation can improve the
diversity of population and exploration performance of algorithm. In [19], an adaptive
real coded biogeography-based optimization (ARCBBO) was proposed for solving OPF
problem. An adaptive Gaussian mutation was combined to ARCBBO to improve diversity
and exploration ability. Further, Biswas el. have investigated the performance of differential
evolution (DE) integrated with three different constraint handling techniques in OPF prob-
lem [20]. In [21], Jaya algorithm was applied in OPF problem on both IEEE-30 bus system
and IEEE-118 bus system. Simulation studies confirm that Jaya algorithm can converge
rapidly and provide feasible solutions. The authors in [22] proposed improved krill herd
algorithm (IKHA) to solve optimal power flow problem. Onlook search mechanism was
introduced to avoid trapping into local optimum and parameters adjustment was used
to improve both exploration and exploitation capability of algorithm. Simulation results
show that IKHA outperforms original krill herd algorithm and other algorithms in many
study cases.
The cross-entropy method is a kind of the probability algorithm proposed by Rubin-
stein in 1999 [23] for estimating the probabilities of rare events initially and then it was
applied to continuous optimization problems. Although CE method have been widely
used in the field of power system, for examples: economic emission dispatch [24], dynamic
economic dispatch [25], security-constrained optimal power flow (SCOPF) [26], dynamic
optimal power flow (DOPF) [27], optimal power flow problem with multiple renewable
source [28] and other fields such as: network reliability estimation [29], micro-scale manu-
facturing process [30] and high-speed train lateral control [31], its application to the OPF
problem is still limited. Furthermore, the process of CE method is quite different from the
most heuristic algorithms which means CE method has potential to be investigated and
improved. For examples, population is generated under the normal distribution in CE
method. The information provided by elite individuals is used to renew the parameters
of normal distribution hence to direct the search direction of algorithm. For these reasons,
CGSCE was proposed and applied in OPF problem in this study to investigate its effec-
tiveness in solving practical problems. According to our survey, most OPF approaches
using static penalty function method to handle infeasible individuals. This constraint
Energies 2023, 16, 5466 3 of 33
2. Problem Formulation
The main goal of OPF is to optimize selected objective functions while satisfy both
of equality constraints and inequality constraints. The problem can mathematically be
defined as follows:
Minimize F ( x, v) (1)
subject to:
hi ( x, v) = 0 i = 1, 2, . . . , m (2)
g j ( x, v) ≤ 0, j = 1, 2, . . . , n (3)
where F ( x, v) is the objective function in OPF problem, x is the vector of control variable, v is
the vector of state variable, hi ( x, v) is equality constraint, g j ( x, v) is inequality constraint, m
and n is number of equality and inequality constraint respectively. The objective functions
of a OPF problem commonly includes total fuel cost, emission, transmission loss, voltage
deviation and L-index [35].
x = [ PG2 , PG3 , . . . , PGNg , VG1 , VG2 , .., VGNg , QC1 , QC2 . . . , QCNc , Tt1 , Tt2 , . . . , Tt Nt ] (4)
where PGi is the ith generator active power output excluding the swing generator, VGi is
the ith generator bus voltage magnitude, QCi is injected reactive power of the ith shunt
VAR compensator, Tti is tap setting of ith transformer. Ng, Nc and Nt are the number of
generators, shunt VAR compensators and transformers respectively.
Energies 2023, 16, 5466 4 of 33
v = [ PG1 , VL1 , VL2 , .., VL Nl , QG1 , QG2 . . . , QGNg , STL1 , STL2 , . . . , STL Ntl ] (5)
where PG1 is active power output of swing generator, VLi is voltage magnitude of ith load
bus, QGi is reactive power demands of ith generator including swing generator, STLi is
the loading of ith transmission line. Nl, Ng and Ntl are number of load buses (PQ buses),
generators and transmission lines respectively.
Nb
∑ Vj
PGi − PDi = Vi Gij cos δi − δj + Bij sin δi − δj = 0 ∀i ∈ Nb (6)
j =1
Nb
∑ Vj
QGi − Q Di = Vi Gij sin δi − δj − Bij cos δi − δj = 0 ∀i ∈ Nb (7)
j =1
where PGi , QGi are active power and reactive power demand at ith bus, Vi is voltage
magnitude at ith bus, Nb is number of buses, Gij and Bij are transfer conductance and
transfer susceptance between bus i and j respectively.
PGmin
i
≤ PG ≤ PGmax
i
, i = 1, 2, . . . , Ng (9)
i
Qmin max
Gi ≤ Q G ≤ Q Gi , i = 1, 2, . . . , Ng (10)
i
• Transformer constraints:
VGmin
i
≤ V G ≤ VGmax
i
, i = 1, 2, . . . , Nt (11)
i
• Security constraints:
VLmin
i
≤ V L ≤ VLmax
i
, i = 1, 2, . . . , Nl (13)
i
max
STLi ≤ STL i
, i = 1, 2, . . . , Ntl (14)
3. Proposed Method
In this section, cross-entropy will be introduced briefly in Section 3.1. The principle of
CGSCE will be detailed in Section 3.2. Constraints handling techniques of the proposed
method will be introduced in Section 3.3. The general step of CGSCE for solving OPF
problem will be listed in Section 3.4.
Energies 2023, 16, 5466 5 of 33
where X is a random variable with probability density function f ( x, u), u is the parameter
of f ( x, u), S( X ) is a real-valued function defined in some set χ , γ is a real number, I {·} is
an indicator function, Eu {·} represents the mathematical expectation of random variable
under the probability density function f ( x, u).
If probability of event {S( X ) ≤ γ} is small, for example ` < 10−5 , this event can be
regarded as a rare event. A method to estimate the probability of rare events is to use
Monte-Carlo simulation. However, this method is commonly time-consuming due to the
fact that we need to produce simple with a large simple size many times to estimate the
probability of rare events accurately [39]. An alternative approach is to generate random
sample X1 , X2 , . . . , X N with importance sampling (IS) density g( x, v) which is different to
f ( x, u), and the estimation of ` becomes:
f ( x, u) f ( x, u)
Z
` = I{S(X )≤γ} g( x, v)dx = Eg I{S(X )≤γ} (16)
g( x, v) g( x, v)
N N
1 f ( Xi , u ) 1
`ˆ =
N ∑ I{S(Xi )≤γ}
g ( Xi , v )
=
N ∑ I{S(Xi )≤γ} W ( Xi ) (17)
i =1 i =1
If simple is generated under the g∗ ( x ), the variance of `ˆ is zero, we just need to produce
a simple to estimate (17) accurately [23,39]. It is impossible to acquire g∗ ( x ) through (19)
because it contains an unknown parameter ` which we want to estimate. Another way to
estimate g∗ ( x ) is setting parameter u in f ( x, u) to a given number v, and let f ( x, v) close
to g∗ ( x ) as possible. Under the f ( x, v), we can estimate ` accurately just through a few
samples. In order to let f ( x, v) approximate g∗ ( x ) as closely as possible, we can minimize
the Kullback-Leibler distance between g∗ ( x ) and f ( x, v) defined as follows:
g∗ ( x )
Z Z
∗
D( g ( x ) , f ( x, v)) = Eg∗ ln = g∗ ( x ) ln( g∗ ( x ) )dx − g∗ ( x ) ln( f ( x, v))dx (20)
f ( x, v)
The first part of (20) is constant, so minimizing (20) is equal to maximizing the second
part of (20): Z
max g∗ ( x ) ln( f ( x, v)) (21)
v
If we use again importance sampling on (25), the formula to estimate rare events
can be acquired. For the details of the CE method in estimating rare events, please refer
to [39]. Now we explain how the estimation of rare events can be converted to a continuous
optimization problem.
A continuous minimization problem can be defined as follows:
On one hand, the lager γ1 is, the higher probability that random variables I{S(Xi )≤γ1 }
will be generated under the f ( x, v). On the other hand, many families of pdfs assign
most of their probability mass close to a simple generated under these pdfs with high
probability. If γ1 is close to γ∗ , it is hopeful that simple generated under the f ( x, v) will be
close to γ∗ [39]. Furthermore, γ∗ is an unknown parameter we want to estimate, hence to
leading the failure choice of γ1 . These contradictions can be relieved through a two-phase
multi-level algorithm discussed in later.
In fact, CE method constructs sequences of γt , t = 1, 2, . . . and vt , t = 1, 2, . . . which
converge quickly to optimal points γ∗ and v∗ [38,39]. We firstly discuss how to achieve
v∗ , then the estimation of γ∗ will be introduced in later. It is difficult to solve (25) directly.
However, the formulation of (25) is similar to the function of maximum likelihood estima-
tion (MLE), therefore (25) can be solved by optimizing MLE through following formula:
N
v̂ = arg max L(v) = arg max
v v
∏ f ( xi , v ) (29)
i =1
Solving (25) is equivalent to solving following equivalent MLE formula based on (31):
v̂ = arg max
v
∑ ln( f ( Xi , v)) , i = 1, 2, . . . , N (32)
Xi : S ( Xi ≤ γ ∗ )
Initially, chose a relatively small parameter ρ, for example ρ = 0.01. Setting the original
parameter of density function as v0 = u. Let origin probability of even `1 = Pv0 (S( X ) ≤ γ1 )
is at least ρ, so that even though when N is moderate, individuals of sample satisfying
Xi ≤ γ1 will be generated with high probability under f ( x, v0 ). Although γ1 is unknown,
we can generate a sample X under the density function f ( x, v0 ), and use sample ρ − quantile
to estimate it:
γ̂1 = S(dρN e) (34)
where d.e is the function that round up a number to its nearest integer large than or equal
to this number.
In second iteration (t = 2), v̂1 can be calculated by γ̂1 through (33). Repeating above
procedure, a random sequence γ̂1 , γ̂2 , . . . which is monotonically decreasing with high
probability and γ∗ will be obtained in a finite number of iterations [40]. In summary, the
best solution of (26) can be achieved by solving (33) in a finite number of iterations. The
Energies 2023, 16, 5466 8 of 33
exact form of f ( x, v) is undefined until now, normal distribution N µ, σ2 is one of the best
N
1
∑ (Xi − X̄ )
2
σb2 = (36)
N i =1
where X̄ = N1 ∑iN=1 Xi .
Using normal distribution as probability density function, (33) can be solved by:
1
µ̂t =
Nρ ∑ Xi , i = 1, 2, . . . , N (37)
Xi : S( Xi ≤γ̂t )
1
∑
2
σb2 = ( Xi − X̄ ) , i = 1, 2, . . . , N (38)
Nρ Xi : S( Xi ≤γ̂t )
1 q
βt = β − β 1 − (41)
t
where t is the number of iterations, 0.5 < α ≤ 0.9, β ∈ [0.8, 0.99], q is an integer typically
between 5 and 10.
Figure 1 illustrates the shape of probability density function of normal distribution
with different parameters. It is evident that µ determines the center of the symmetry,
while σ determines the width of probability density function. Samples generated under
the normal distribution have high probability of being located around the centroid of the
symmetry. The larger σ is, the higher probability of a simple will be located far away from
the centroid of the symmetry.
0.08
=0, =10
=0, =5
0.07
=10, =10
=10, =5
0.06
0.05
0.04
0.03
0.02
0.01
0
-40 -30 -20 -10 0 10 20 30 40 50
β t = 0.382 × µ (42)
where µ is a random number generated under the uniform distribution U (0, 1).
According to Zhang’s report, when β ≤ 0.328, there is no specific β is absolutely better
than other β, so if β is randomized in (0, 0.382), it seems that GSCE can benefit from the
different value of β.
The parameter β also affects the convergence speed of CE method. According to the
simulation results discussed in section 4, a small β may slow down the convergence process.
In GSCE, β is limited to (0, 0.382) which is much smaller than that in (46), hence to slow
down the convergence process. Value of β for GSCE and CE in each iteration are plotted in
Figure 2.
To improve the exploration ability of CE method, the chaotic operator [42] in CGSCE
is used to determine β. Logistic map is selected as chaotic operator defined in (49), the
parameter α in smoothed updating process is set to 1, β is calculated as follows:
0.382µ, i f γ < pt
βt = (44)
β − β(1 − 1t )q , else
where pt is the probability used to determine the form of β in generation t, p1 = 0.2027.
µ and γ are random numbers generated under the uniform distribution U (0, 1), q is an
integer typically between 5 and 10.
Energies 2023, 16, 5466 10 of 33
0.9
GSCE
0.8 CE
0.7
0.6
0.5
Value of
0.4
0.3
0.2
0.1
0
0 50 100 150 200 250 300
Iteration
Figure 2. Plot of β in GSCE and CE.
The plot of chaotic sequences of Logistic map is given in Figure 3. It is obvious that
chaotic sequences of Logistic map locate between 0 and 1 irregularly. The advantages of
introduction of chaotic operator into proposed can be concluded as follows:
• In the initial stage of the algorithm, CGSCE has chance to acquire a big value of β due
to the probabilistic selection of (41) to renew β while β in GSCE is limited to (0, 0.382),
so CGSCE has chance to converge faster than GSCE in initial stage.
• In the final stage of the algorithm, CGSCE has chance to acquire a bigger value of β
than that in CE method given by (41).
• A large perturbation of β generated by chaotic operator can improve the exploration
ability of CGSCE.
0.9
0.8
value of p in logistic map
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 50 100 150 200 250 300
Iteration
Figure 3. Plot of chaotic sequence of Logistic map.
3.2.3. Archive
According to the simulation results, the best solutions of each iteration in CGSCE are not
always decrease monotonically. In other words, the best solution in the final iteration is not
always the best solution among all iterations. In CGSCE, the best solution in first generation
is preserved in an archive. In subsequent generations, if there exists a solution better than the
solution in archive, it will be added to the archive and previous solution in archive will be
Energies 2023, 16, 5466 11 of 33
removed, otherwise the solution in archive will remain the same. This can be done by using
SF to select best individual between current best individual and previous solution in archive.
In the final iteration, the solution in archive is regarded as the best solution.
j j
where Xi is jth component of individual Xi , Xmin is the lower bound of jth component of
j
population, Xmax is the upper bound of jth component of population.
j j j
where Λi is the constraints violation of jth state variable of individual i, Vmin and Vmax are
the lower bound and upper bound of jth state variable respectively.
The process of calculating total constraints violation is shown as follows:
In the beginning, all elements in ψ are set to 0. Then both state variable constraints
violation of each individual and all maximum constraint violation of corresponding each
state variables are recorded in Λ and Θ respectively. The number of infeasible individuals
may become zero after several iterations. In order to avoid unnecessary operations, only if
an infeasible individual exists in the current population will the calculation of the constraint
violation be implemented. This is same that we only calculate the constraints violation of
infeasible individuals. In order to make all state variables have fair contribution to total
constraints violation, it is necessary to normalize them. This can be done by using constraints
violation of ith state variable of an individual divided by maximum constraints violation of
corresponding state variables of the population. The obtained result is used as normalized
constraints violation of ith state variable of an individual. Due to the denominator of
normalized constraints violation is the component of Θ, the obtained normalized constraints
violation will become infinity when a component of Θ is 0. Furthermore, if a component
of Θ is 0, it means all individuals does not violate corresponding state variable. So, if a
component of Θ is 0, calculation violation of corresponding state variable must be neglected.
Energies 2023, 16, 5466 12 of 33
ℙ Λ
…
… …
𝛬!" 𝛬"" 𝛬"#$! 𝛬"#
Control variables
… … … …
𝑋%! 𝑋%" … 𝑋%&
𝛬!% 𝛬"% #$!
𝛬% #
𝛬%
…
ℙ%
…
State variables
𝜓 Θ
Θ
𝛬!! Θ!
≠0 =0 ≠0 ≠0
𝜓! SUM 𝛬!# Θ!
𝛬!$ Θ"
The pseudocode for calculating the total constraints violation is given in Algorithm 2.
where δ is the set of indices of state variable. µ used to record the index of infeasible
individual in P.
Energies 2023, 16, 5466 13 of 33
29
27 28
30 25
26
23
24
VAR compensator 19
15
18
Load
20
G 13
17
Bus
12 G
14 16 21
11 9 22
Transformers
4 10
G 1 3 8
Thermal Genetator
G
6 G
2 5 7
G G
Ng
Fc ( x, v) = ∑ ai + bi PGi + ci PGi 2 (47)
i =1
where Fc ( x, v) is total fuel cost, ai , bi , ci are fuel cost coefficients of ith generator. Coefficients
of all generators in the IEEE-30 bus system are listed in Table A1.
Energies 2023, 16, 5466 16 of 33
where Fc ( x, v) is total fuel cost, k is the type of fuel, ai,k , bi,k ci,k are the coefficients of fuel
cost of ith generator with fuel k when active power output lies in [ PGmin , Pmax Gi,k ].
i,k
In this paper, multiple fuels option is considered for generator 1 and generator 2, the
remaining generator are same as Case 1. Coefficient and corresponding power outputs of
generators are listed in Table A2.
Fuel 1
Fuel 2
Fuel 3
Fuel cost ($/h)
Fuel 3
Fuel 2
Fuel 1
𝑃!"#$
!,#
𝑃!"%&
!,#
, 𝑃!"#$
!,$
𝑃!"%&
!,$
, 𝑃!"#$
!,%
𝑃!"%&
!,%
Nl Nl
Fp ( x, v) = ∑ ∑ Gij Vi2 + Vj2 − 2Vi Vj cos(δi − δj ) (51)
i =1 j 6 = i
Energies 2023, 16, 5466 17 of 33
where Vi is voltage magnitude of ith load bus, δi is voltage angle ith bus, Gij is the transfer
conductance between bus i and bus j.
Study Case Basic Fuel Cost Multi-Fuel Option L-Index Emission Power Loss
Case 1 X
Case 2 X X
Case 3 X
Case 4 X
Case 5 X
Table 3. Simulation results of CGSCE, GSCE and CE for IEEE-30 bus system.
The standard deviation of results and average simulation time of three CE methods
in 30 runs for IEEE-30 bus system are provided in Table 4. The average simulation time
among three CE methods is quite similar in all 5 cases. The lowest standard deviation of
Energies 2023, 16, 5466 18 of 33
Case 1 and Case 2 among 30 runs can be achieved by CGSCE while CE perform best in
Case 4 and Case 5 for providing the lowest standard deviation.
The best solutions in 30 runs of CGSCE, GSCE and CE in study Case1 to Case 5 of
IEEE-30 bus system are detailed in Tables 5 and 6 respectively. In these two tables, columns
labeled by Min and Max records the lower bound and upper bound of control variables
and state variables correspondingly.
According to Tables 5 and 6, all three CE methods do not violate both control variables
and state variables using SF. As revealed in the simulation results, discrepancy of control
variables among these algorithms is quite small in Case 1, Case 2, Case 4 and Case 5
which in turn makes them have similar state variables and objective values. In Case 3, the
discrepancy among three CE methods is large than other 4 cases for the IEEE-30 bus system.
The power output of a generator, the only parameter included in the calculation of
fuel cost and emission should be discussed in detail. It seems that a higher fuel cost implies
a higher emission. However, a counterexample appears in Case 3 between CE and GSCE
where the fuel cost of GSCE is less than CE, but the emission of GSCE is higher than CE.
This phenomenon can be attributed to the discrepancy among generator cost coefficient
and emission coefficient. Moreover, the active power output given by these two algorithms
is quite different. In Case 1 and Case 2, three CE methods gave similar result for active
power output of generator which in turn to reduce difference of fuel cost and emission.
Table 4. Standard deviation and simulation time of CGSCE, GSCE and CE for IEEE-30 bus system.
Box plots of three CE methods for Case1 and Case2 are given in Figure 8. The best
results in each 30 runs of each CE method are used for box plots. It is clear that CGSCE
outperformed than other two CE methods in minimum value, average value and maximum
value in Case1. Furthermore, CGSCE is much robust than other two CE methods in Case1.
In Case2, although three CE methods provided similar results in minimum value and
average value, CGSCE is obvious much more robust than the other two CE methods for
providing much smaller maximum value in 30 runs.
800.54 720
800.535 710
700
800.53
690
800.525
680
800.52 670
660
800.515
650
800.51
CGSCE GSCE CE CGSCE GSCE CE
(a) (b)
Figure 8. Box plot of three CE methods in Case 1 and Case 2. (a) Case 1, (b) Case 2. The red bold +
specify the outliers.
Energies 2023, 16, 5466 19 of 33
Table 5. Simulation results of the best solutions of three CE methods in Case 1 to Case 3.
Table 5. Cont.
Table 6. Simulation results of the best solutions of three CE methods in Case 4 and Case 5.
Table 6. Cont.
Table 7 gives the comparison results of CGSCE and other algorithms for Case 1. CGSCE
performed best among these algorithms for providing least fuel cost.
Table 9 provides the comparison results of Case 3, which aims to minimize the L-
index of a power system. CE gave the best performance among all algorithms in this
case. However, the fuel cost provided by CE is much worse than two other CE methods.
Although GSCE provided best solution of fuel cost in Case 3, the emission and power flow
provided by GSCE is much worse than other two CE methods.
Table 10 is the comparison results of Case 4 which aims to minimize the emission.
Due to the small coefficients for the emission, results provided by all algorithms is quite
similar. Among these algorithms, three CE methods, MSA and SF-DE performed best with
0.20482 (t/h) of emission. Meanwhile, three CE methods gave excellent results in fuel cost
which means a less generating cost.
Simulation results of Case 5 are detailed in Table 11. In this case, the main goal of OPF
is to minimize the active power loss. As mentioned before, reducing active power loss of
transmission line will save the cost of generating. It is obvious that CGSCE outperformed
other algorithms in power loss. Other two CE methods named GSCE and CE gave second
and the third best result in power loss in this case respectively. Moreover, the voltage
deviation provided by CGSCE also outperformed other algorithms.
G G
2 1
G
17
3 15
16 G
4 45 14
12
5 13
44 46
18 38 49
19 48
G
47
6 26 20
37
27 21 39
22
28
23
57
VAR compensator
29
24
56
Load
52 40
36
Bus
7 53 42
25
Transformers
54 35
30 50
G 34
55
Thermal Genetator 33
31
10
32
11
51
43
41
9
G
4.4.1. Simulation Results of CGSCE, GSCE and CE for IEEE-57 Bus System
Comparison results for the three CE methods for IEEE-57 bus system are listed in
Table 12. The main goal of Case 6 is to minimize the basic quadratic fuel cost in IEEE-57
bus system. In this case, CGSCE outperformed the other two CE methods in providing
minimum value. In Case7, the best result was achieved by CGSCE with 0.5880 (p.u.).
Table 12. Simulation result of CGSCE, GSCE and CE for IEEE-57 bus system.
The standard deviation of results and average simulation time of three CE methods in
30 runs for IEEE-57 bus system are provided in Table 13. Similar to the results in IEEE-30
bus system, the average simulation time among three CE methods is quite similar in 2 cases
of IEEE-57 bus system. It should be noticed that the maximum function evaluation is 42,000
in IEEE-57 bus system while 30,000 in IEEE-30 bus system. It means the algorithm iterates
more times in IEEE-57 bus system than that in IEEE-30 bus system. The lowest standard
deviation of Case 6 and Case 7 among 30 runs can be achieved by CE.
Table 13. Standard deviation and simulation time of CGSCE, GSCE and CE for IEEE-57 bus system.
Figure 10 shows the voltage profile of load buses provided by CGSCE in Case 7.
According to Figure 10, the voltage of all load buses fluctuates around 1 p.u. with small
deviations which means the voltage is distributed equally in load buses.
0.5
0
0 5 10 15 20 25 30 35 40 45 50
Best solutions provided by the three CE methods are given in Table 14. Similar to Case
1 of IEEE-30 bus system, fuel cost in Case 6 of IEEE-57 bus system among three CE methods
are quite similar to each other. As shown in Table 14, the least fuel cost can be achieved
by CGSCE. Meanwhile, CGSCE also provided a less emission solution. In Case 7, CGSCE
outperformed the other two CE methods in both voltage deviation and L-index. Further,
the best solution of three CE methods do not violate any constraint of OPF while using SF
as constraint handling technique.
Energies 2023, 16, 5466 26 of 33
Table 14. Simulation results of the best solutions of three CE methods in Case 6 and Case 7.
and CE is observed but solution obtained by GSCE is obviously worse than CGSCE and
CE. It is clear that all the three CE methods need more iterations to converge to nearly best
result in Case 7 than that in Case 6.
980
CGSCE CGSCE
960 GSCE 950 GSCE
CE CE
940
900
920
Fuel cost ($/h)
880 800
860
750
840
700
820
650
800
0 50 100 150 200 250 300 0 50 100 150 200 250 300
Iteration Iteration
(a) (b)
0.45 13
CGSCE CGSCE
GSCE 12 GSCE
CE CE
0.4 11
10
Power loss (MW)
Emission (ton/h)
0.35 9
0.3 7
0.25 5
0.2 3
0 50 100 150 200 250 300 0 50 100 150 200 250 300
Iteration Iteration
(c) (d)
104
4
CGSCE CGSCE
6
GSCE GSCE
CE 3.5 CE
5.8
5.6 3
Fuel cost ($/h)
Voltage (p.u.)
5.4
2.5
5.2
5 2
4.8
1.5
4.6
4.4 1
4.2
0.5
0 100 200 300 400 0 100 200 300 400 500
Iteration Iteration
(e) (f)
Figure 11. The convergence comparison of three CE methods. (a) Case 1, (b) Case 2, (c) Case 4,
(d) Case 5, (e) Case 6, (f) Case 7.
Energies 2023, 16, 5466 30 of 33
The convergence property of CE method with different β is plotted in Figure 12. The
parameter α are all set to 1 and beta are set to 0.9, 0.7, 0.5 and 0.3 respectively. All cases are
run 30 times and the best solution among these 30 runs are used for plotting. As mentioned
before, β will influence the convergence speed of algorithm. It’s clear that the lager β is, the
faster CE method will converge to near optimal solution.
980
=0.9
960 =0.7
=0.5
=0.3
940
920
Fuel Cost ($/h)
900
880
860
840
820
800
0 50 100 150 200 250 300
Iteration
Figure 12. Comparison of CE method with different β in Case 1.
5. Conclusions
This paper describes the application of an improved cross-entropy method named
CGSCE to solve optimal power flow problems. The proposed method has been tested on
both IEEE-30 bus system and IEEE-57 bus system with 7 different study cases. The study
considers the minimization of fuel cost, voltage deviation, emission, active power losses
and L-index. In order to show the efficiency of CGSCE in solving OPF problems, CGSCE
has been compared with other algorithms report in literature. Simulation results shows
that CGSCE has competitiveness in solving OPF problems. Furthermore, proposed method
can provide no constraint violation individuals using SF as constraint handling technique
which means power system can operate in security. CGSCE has also been compared with
two other CE methods to show the efficiency of proposed innovation. Simulation results
shows that the introduction of chaotic operator can improve both the convergence speed
and exploration capability of proposed method.
Future research work including using CE method to solve muti-objective OPF prob-
lems, many-objecticve OPF problems, probabilistic optimal power flow problems and OPF
problems considering renewable source.
Author Contributions: Q.N. designed the research, H.S. and Q.N. proposed the innovation, H.S.,
Q.N. and Z.Y. performed and analyzed the experience, H.S., Q.N. and Z.Y. wrote the paper, Q.N.,
H.S. and Z.Y. revised the paper. All authors have read and agreed to the published version of
the manuscript.
Funding: This research was funded by China NSFC (61773252, 62003332) and Outstanding Young
Researcher Innovation Fund of Shenzhen Institute of Advanced Technology, Chinese Academy of
Sciences (201822).
Institutional Review Board Statement: Not applicable.
Informed Consent Statement: Not applicable.
Data Availability Statement: No new data were created or analyzed in this study. Data sharing is
not applicable to this article.
Energies 2023, 16, 5466 31 of 33
Acknowledgments: There is no any support which is not covered by the author contribution or
funding sections.
Conflicts of Interest: The authors declare that there is no conflict of interests regarding the publication
of this paper.
Abbreviations
The following abbreviations are used in this manuscript:
Appendix A
Table A1. Cost coefficients of all generators for IEEE-30 bus system.
Generator Bus a b c d e α β γ ω µ
G1 1 0 2 0.00375 18 0.037 4.091 −5.554 6.49 0.0002 2.857
G2 2 0 1.75 0.0175 16 0.038 2.543 −6.047 5.638 0.0005 3.333
G3 5 0 1 0.0625 14 0.04 4.258 −5.094 4.586 0.000001 8
G4 8 0 3.25 0.00834 12 0.045 5.326 −3.55 3.38 0.002 2
G5 11 0 3 0.025 13 0.042 4.258 −5.094 4.586 0.000001 8
G6 13 0 3 0.025 13.5 0.041 6.131 −5.555 5.151 0.00001 6.667
Table A2. Cost coefficients of generators 1 and 2 for IEEE-30 bus system considering multiple fuels.
References
1. Abou El Ela, A.A.; Abido, M.A.; Spea, S.R. Optimal power flow using differential evolution algorithm. Electr. Power Syst. Res.
2010, 80, 878–885. [CrossRef]
2. Zhang, J.R.; Tang, Q.H.; Li, P.; Deng, D.X.; Chen, Y.L. A modified MOEA/D approach to the solution of multi-objective optimal
power flow problem. Appl. Soft Comput. 2016, 47, 494–514. [CrossRef]
3. Biswas, P.P.; Suganthan, P.N.; Mallipeddi, R.; Amaratunga, G.A.J. Multi-objective optimal power flow solutions using a constraint
handling technique of evolutionary algorithms. Appl. Soft Comput. 2020, 24, 2999–3023. [CrossRef]
4. Frank, S.; Steponavice, I.; Rebennack, S. Optimal power flow: A bibliographic survey I. Energy Syst. 2012, 3, 221–258. [CrossRef]
Energies 2023, 16, 5466 32 of 33
5. Vaisakh, K.; Srinivas, L.R. Evolving ant direction differential evolution for OPF with non-smooth cost functions. Eng. Appl. Artif.
Intell. 2011, 24, 426–436. [CrossRef]
6. Holland, J.H. Adaptation in Natural and Artificial Systems; University of Michigan Press: Ann Arbor, MI, USA, 1975.
7. Storn, R.; Price, K. Differential evolution—A simple and efficient heuristic for global optimization over continuous spaces. J. Glob.
Optim. 1997, 11, 341–359. [CrossRef]
8. Kennedy, J.; Eberhart, R. Particle Swarm Optimization. In Proceedings of the ICNN’95—International Conference on Neural
Networks, Perth, Australia, 1 December 1995; pp. 1942–1948
9. Geem, Z.W.; Kim, J.H.; Loganathan, G.V. A New Heuristic Optimization Algorithm: Harmony Search. Simulation 2001, 2, 60–68.
[CrossRef]
10. Rao, R.V.; Savsani, V.J.; Vakharia, D.P. Teaching-learning-based optimization: A novel method for constrained mechanical design
optimization problems. Comput. Aided Des. 2011, 43, 303–315. [CrossRef]
11. Karaboga, D. An Idea Based on Honey Bee Swarm for Numerical Optimization; Technical Report-TR06; Erciyes University, Engineering
Faculty, Computer Engineering Department: Kayseri, Turkey, 2005.
12. Niknam, T.; Narimani, M.R.; Jabbari, M.; Malekpour, A.R. A modified shuffle frog leaping algorithm for multi-objective optimal
power flow. Energy 2011, 36, 6420–6432. [CrossRef]
13. Narimani, M.R.; Azizipanah-Abarghooee, R.; Zoghdar-Moghadam-Shahrekohne, B.; Gholami, K. A novel approach to multi-
objective optimal power flow by a new hybrid optimization algorithm considering generator constraints and multi-fuel type.
Energy 2013, 49, 119–136. [CrossRef]
14. Ghasemi, M.; Ghavidel, S.; Rahmani, S.; Roosta, A.; Falah, H. A novel hybrid algorithm of imperialist competitive algorithm and
teaching learning algorithm for optimal power flow problem with non-smooth cost functions. Eng. Appl. Artif. Intell. 2014, 29,
54–69. [CrossRef]
15. Adaryani, M.R.; Karami, A. Artificial bee colony algorithm for solving multi-objective optimal power flow problem. Int. J. Electr.
Power Energy Syst. 2013, 53, 219–230. [CrossRef]
16. Roy, R.; Jadhav, H.T. Optimal power flow solution of power system incorporating stochastic wind power using Gbest guided
artificial bee colony algorithm. Int. J. Electr. Power Energy Syst. 2015, 64, 562–578. [CrossRef]
17. Shabanpour-Haghighi, A.; Seifi, A.R.; Niknam, T. A modified teaching-learning based optimization for multi-objective optimal
power flow problem. Energy Convers. Manag. 2014, 77, 597–607. [CrossRef]
18. Ghasemi, M.; Ghavidel, S.; Gitizadeh, M.; Akbari, E. An improved teaching-learning-based optimization algorithm using Levy
mutation strategy for non-smooth optimal power flow. Int. J. Electr. Power Energy Syst. 2015, 65, 375–384. [CrossRef]
19. Kumar, A.R.; Premalatha, L. Optimal power flow for a deregulated power system using adaptive real coded biogeography-based
optimization. Int. J. Electr. Power Energy Syst. 2015, 73, 393–399. [CrossRef]
20. Biswas, P.P.; Suganthan, P.N.; Mallipeddi, R.; Amaratunga, G.A.J. Optimal power flow solutions using differential evolution
algorithm integrated with effective constraint handling techniques. Eng. Appl. Artif. Intell. 2018, 68, 81–100. [CrossRef]
21. Warid, W.; Hizam, H.; Mariun, N.; Abdul-Wahab, N.I. Optimal Power Flow Using the Jaya Algorithm. Energies 2016, 9, 678.
[CrossRef]
22. Chen, G.G.; Lu, Z.M.; Zhang, Z.Z. Improved Krill Herd Algorithm with Novel Constraint Handling Method for Solving Optimal
Power Flow Problems. Energies 2018, 11, 76. [CrossRef]
23. Rubinstein, R. The Cross-Entropy Method for Combinatorial and Continuous Optimization. Methodol. Comput. Appl. 1999, 1,
127–190. [CrossRef]
24. Wang, G.B.; Zha, Y.X.; Wu, T.; Qiu, J.; Peng, J.C.; Xu, G. Cross entropy optimization based on decomposition for multi-objective
economic emission dispatch considering renewable energy generation uncertainties. Energy 2020, 193, 982–997. [CrossRef]
25. Selvakumar, A.I. Enhanced cross-entropy method for dynamic economic dispatch with valve-point effects. Int. J. Electr. Power
Energy Syst. 2011, 33, 783–790. [CrossRef]
26. Carvalho, L.D.; da Silva, A.M.L.; Miranda, V. Security-Constrained Optimal Power Flow via Cross-Entropy Method. IEEE Trans.
Power Syst. 2018, 33, 6621–6629. [CrossRef]
27. Sarda, J.; Pandya, K.; Lee, K.Y. Dynamic optimal power flow with cross entropy covariance matrix adaption evolutionary strategy
for systems with electric vehicles and renewable generators. Int. J. Energy Res. 2021, 45, 10869–10881. [CrossRef]
28. Marcelino, C.G.; Perez-Aracil, J.; Wanner, E.F.; Jimenez-Fernandez, S.; Leite, G.M.C.; Salcedo-Sanz, S. Cross-entropy boosted
CRO-SL for optimal power flow in smart grids. Soft Comput. 2023, 27, 6549–6572. [CrossRef]
29. Hui, K.P.; Bean, N.; Kraetzl, M.; Kroese, D.P. The Cross-Entropy Method for Network Reliability Estimation. Ann. Oper. Res. 2005,
134, 101–118. [CrossRef]
30. Beruvides, G.; Quiza, R.; Haber Guerra, R.E. Multi-objective optimization based on an improved cross-entropy method. A case
study of a micro-scale manufacturing process. Inf. Sci. 2015, 334–335, 161–173. [CrossRef]
31. Tang, Q.; Ma, L.; Zhao, D.; Lei, J.; Wang, Y. A multi-objective cross-entropy optimization algorithm and its application in
high-speed train lateral control. Appl. Soft Comput. 2022, 115, 108151. [CrossRef]
32. Tessema, B.; Yen, G.G. A self adaptive penalty function based algorithm for constrained optimization. In Proceedings of the IEEE
International Conference on Evolutionary Computation, Vancouver, BC, Canada, 6–21 July 2006; pp. 246–253.
33. Mallipeddi, R.; Jeyadevi, S.; Suganthan, P.N.; Baskar, S. Efficient constraint handling for optimal reactive power dispatch problems.
Swarm Evol. Comput. 2012, 5, 28–36. [CrossRef]
Energies 2023, 16, 5466 33 of 33
34. Deb, K. An efficient constraint handling method for genetic algorithms. Comput. Method Appl. Mech. Eng. 2000, 186, 311–338.
[CrossRef]
35. Kessel, P.; Glavitsch, H. Estimating the Voltage Stability of a Power System. IEEE Trans. Power Deliv. 1986, 186, 346–354. [CrossRef]
36. Mohamed, A.A.; Mohamed, Y.S.; El-Gaafary, A.A.M.; Hemeida, A.M. Optimal power flow using moth swarm algorithm. Electr.
Power Syst. Res. 2017, 142, 190–206. [CrossRef]
37. Bouchekara, H.R.E.H.; Chaib, A.E.; Abido, M.A.; El-Sehiemy, R.A. Optimal power flow using an Improved Colliding Bodies
Optimization algorithm. Appl. Soft Comput. 2016, 42, 119–131. [CrossRef]
38. Kroese, D.P.; Porotsky, S.; Rubinstein, R.Y. The cross-entropy method for continuous multi-extremal optimization. Methodol.
Comput. Appl. 2006, 8, 383–407. [CrossRef]
39. De Boer, P.T.; Kroese, D.P.; Mannor, S.; Rubinstein, R.Y. A tutorial on the cross-entropy method. Ann. Oper. Res. 2005, 134, 19–67.
[CrossRef]
40. Rubinstein, R.Y. Optimization of computer simulation models with rare events. Eur. J. Oper. Res. 1997, 99, 89–112. [CrossRef]
41. Zhang, Y. Research on Load Dispatch of Power Systems Based on Improved Cross-Entroy Methods. Master’s Thesis, Shanghai
University, Shanghai, China, 2019.
42. Caponetto, R.; Fortuna, L.; Fazzino, S.; Xibilia, M.G. Chaotic sequences to improve the performance of evolutionary algorithms.
IEEE Trans. Evol. Comput. 2003, 7, 289–304. [CrossRef]
43. Zimmerman, R.D.; Murillo-Sánchez, C.E.; Thomas, R.J. MATPOWER: Steady-State Operations, Planning, and Analysis Tools for
Power Systems Research and Education. IEEE Trans. Power Appl. Syst. 2011, 26, 12–19. [CrossRef]
44. Li, S.J.; Gong, W.Y.; Hu, C.Y.; Yan, X.S.; Wang, L.; Gu, Q. Adaptive constraint differential evolution for optimal power flow. Energy
2021, 235, 121362. [CrossRef]
45. Daryani, N.; Hagh, M.T.; Teimourzadeh, S. Adaptive group search optimization algorithm for multi-objective optimal power flow
problem. Appl. Soft Comput. 2016, 38, 1012–1024. [CrossRef]
46. Khunkitti, S.; Siritaratiwat, A.; Premrudeepreechacharn, S. Multi-Objective Optimal Power Flow Problems Based on Slime Mould
Algorithm. Sustainability 2021, 13, 7448. [CrossRef]
47. Bouchekara, H.; Abido, M.A.; Boucherma, M. Optimal power flow using Teaching-Learning-Based Optimization technique.
Electr. Power Syst. Res. 2014, 114, 49–59. [CrossRef]
48. Abaci, K.; Yamacli, V. Differential search algorithm for solving multi-objective optimal power flow problem. Int. J. Electr. Power
Energy Syst. 2016, 79, 1–10. [CrossRef]
49. Kumari, M.S.; Maheswarapu, S. Enhanced Genetic Algorithm based computation technique for multi-objective Optimal Power
Flow solution. Int. J. Electr. Power Energy Syst. 2010, 32, 736–742. [CrossRef]
50. Reddy, S.S.; Bijwe, P.R.; Abhyankar, A.R. Faster evolutionary algorithm based optimal power flow using incremental variables.
Int. J. Electr. Power Energy Syst. 2014, 54, 198–210. [CrossRef]
51. Warid, W. Optimal power flow using the AMTPG-Jaya algorithm. Appl. Soft Comput. 2020, 91, 106252. [CrossRef]
52. Ghasemi, M.; Ghavidel, S.; Ghanbarian, M.M.; Gharibzadeh, M.; Vahed, A.A. Multi-objective optimal power flow considering the
cost, emission, voltage deviation and power losses using multi-objective modified imperialist competitive algorithm. Energy 2014,
78, 276–289. [CrossRef]
53. Duman, S.; Guvenc, U.; Sonmez, Y.; Yorukeren, N. Optimal power flow using gravitational search algorithm. Energy Convers.
Manag. 2012, 59, 86–95. [CrossRef]
54. Shaheen, A.M.; El-Sehiemy, R.A.; Farrag, S.M. Solving multi-objective optimal power flow problem via forced initialised
differential evolution algorithm. IET Gener. Transm. Distrib. 2016, 10, 1634–1647. [CrossRef]
55. Roy, P.K.; Paul, C. Optimal power flow using krill herd algorithm. Int. Trans. Electr. Energy Syst. 2015, 25, 1397–1419. [CrossRef]
56. Braund, M. Security constrained optimal power flow solution using new adaptive partitioning flower pollination algorithm.
Appl. Soft Comput. 2016, 46, 501–522.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual
author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to
people or property resulting from any ideas, methods, instructions or products referred to in the content.