Mathematics 10 00140 v2
Mathematics 10 00140 v2
Mathematics 10 00140 v2
Article
Optimal Sizing of Stand-Alone Microgrids Based on Recent
Metaheuristic Algorithms
Ahmed A. Zaki Diab 1, * , Ali M. El-Rifaie 2, * , Magdy M. Zaky 3 and Mohamed A. Tolba 4,5, *
1 Electrical Engineering Department, Faculty of Engineering, Minia University, Minia 61111, Egypt
2 College of Engineering and Technology, American University of the Middle East, Egaila 54200, Kuwait
3 Nuclear Research Center, Engineering Department, ETRR-2, Atomic Energy Authority (EAEA),
Cairo 11787, Egypt; [email protected]
4 Nuclear Research Center, Reactors Department, Egyptian Atomic Energy Authority, Cairo 11787, Egypt
5 Electrical Power Systems Department, Moscow Power Engineering Institute, 111250 Moscow, Russia
* Correspondence: [email protected] (A.A.Z.D.); [email protected] (A.M.E.-R.);
[email protected] (M.A.T.)
Abstract: Scientists have been paying more attention to the shortage of water and energy sources all
over the world, especially in the Middle East and North Africa (MENA). In this article, a microgrid
configuration of a photovoltaic (PV) plant with fuel cell (FC) and battery storage systems has been
optimally designed. A real case study in Egypt in Dobaa region of supplying safety loads at a
nuclear power plant during emergency cases is considered, where the load characteristics and the
location data have been taken into consideration. Recently, many optimization algorithms have been
developed by researchers, and these algorithms differ from one another in their performance and
effectiveness. On the other hand, there are recent optimization algorithms that were not used to
solve the problem of microgrids design in order to evaluate their performance and effectiveness.
Optimization algorithms of equilibrium optimizer (EQ), bat optimization (BAT), and black-hole-based
Citation: Diab, A.A.Z.; El-Rifaie, A.M.; optimization (BHB) algorithms have been applied and compared in this paper. The optimization
Zaky, M.M.; Tolba, M.A. Optimal algorithms are individually used to optimize and size the energy systems to minimize the cost. The
Sizing of Stand-Alone Microgrids energy systems have been modeled and evaluated using MATLAB.
Based on Recent Metaheuristic
Algorithms. Mathematics 2022, 10, 140. Keywords: isolated microgrids; cost of energy (COE); loss of power supply probability (LPSP);
https://doi.org/10.3390/ optimization techniques
math10010140
source in distant zones [7–9]. PV plants became the main energy source in most of the
presented system configurations in Egypt as well as other countries [1–9]. Wind energy,
storage batteries, geothermal, wave, tidal energies, and fuel cells are other sources that can
be used with PV forming a hybrid system. The necessity of hybridization of other energy
sources with PV sources is due to the variation in the generated solar energy with many
factors such as meteorological conditions. Another suggested case study of a microgrid
is to feed the nuclear power plants (NPPs) during emergencies, enhancing the electrical
system safety and NPP reliability.
Design of emergency power systems provides electrically independent and physically
separated power distribution divisions. One is designated odd and the other even. The
distribution design provides power to redundant station loads and prevents failures or
damage of one division cascaded to the others. Integration of all power sources in a
microgrid arrangement enhances the safety of operation, normal shutdown, and unplanned
shutdown, as well as overall plant safety. In addition, it mitigates the negative impact of
emergency power absence on the environment. Solar and/or wind energy may supply the
services and emergency load, while fuel cells can be used as storage devices.
Backup diesel generators have been used for compensating the lack of solar energy
in the shortage periods [10]. However, the dependency on fossil fuels is still the main
problem besides environmental conditions [3]. On the other side, batteries storage units are
the first decision as a traditional storage component. The battery storage units assist the
system to be both stable and reliable. More attention has been paid to reducing the cost of
battery units and raising its efficiency and lifetime. Researchers have proposed the usage of
battery units to improve the power quality of power systems that are being interconnected
with renewable energy sources [7–10]. Fuel cells have been utilized as a reliable storage
device with acceptable efficiency [11]. Fuel cells have distinguished advantages compared
to the battery units, which include lower cost and less negative effect on the environment.
Water-based FC with a combined electrolyzer unit is the standard type that is used with
renewable energy sources. From the reported papers [7–12], it could be noted that the
battery storage units increase the cost of the COE of all configured systems. Moreover,
the grid-connected hybrid systems, in most cases, have the best COE. The reasons may
be summarized in the lower cost of kWh obtained from the grid compared to the initial
costs obtained from renewable energy sources. However, in recent years, acceptable rate
reduction in the initial costs of renewable energy sources increased the chances of using
such sources.
Several research studies have been carried to develop a reliable procedure to optimize
the configuration of hybrid energy systems. Few reported attempts considered real case
studies, while others focused on the techniques and methodologies [12–21]. Great efforts
have been made to better manage the uncertainties of renewable energy systems (RES), cost
of energy (COE), and load demands (LD) by various recent research studies. In [22], the
authors proposed the management strategy of RES uncertainties, the electricity price, and
LD based on a hybrid stochastic/robust (HSR) optimizer in different scenarios, which have
the advantage of improving the convergence characteristics. The authors in [23] developed
a distributed robust optimization approach to overcome the restrictions of the dispatchable
flexible resources taking into account the uncertainties from RES and LD based on different
constraints that can be appropriate in piratical schemes with tacking the transmission loss
in the consideration.
In 2020 [12], a hybrid configuration composed of PV plant, WT plant, battery units,
and diesel generators was designed, involving a comprehensive comparison between the
different possible configurations. The simulation and optimization process has been done
using HOMER® (Hybrid Optimization of Multiple Energy Resources, Boulder County,
CO, USA) and NEPLAN® (NEPLAN AG, Zurich, Switzerland) platforms. A case study
in Egypt has been considered for evaluating the designed configurations to determine
the best configuration involving renewable and conventional energy sources. The results
showed that the most effective design is the interconnected grid system with PV and diesel
Mathematics 2022, 10, 140 3 of 25
generators without any storage devices with a COE of 0.124 USD/kWh. A procedure for
designing an isolated microgrid in Con Dao Island in Vietnam has been presented in [13].
The results through HOMMER show that a reliable operation of the designed microgrid.
Away from the fixed configurational platforms, many optimization algorithms have
been proposed and applied for determining the optimal configuration of the microgrids.
In [14], the optimal sizing of the energy storage system using the state of energy model
was reported for an active distribution network. The results show an effective reduction
in the possible error in the sizing optimization considering the case of insufficient data
at the planning stage. In [15], a valuable effort has been made to present a method for
optimizing the size of battery and ultracapacitor hybrid storage systems. The technique
can be used for plug-in electric vehicles (PEVs) and smart grids. The presented energy
management method had been applied in real-time applications with Markov chain and
stochastic dynamic programming (SDP) algorithm. Moreover, a village in Egypt has been
recognized as a case study. A complete system from PV, wind, and diesel generators with
battery storage units has been developed to feed people with electricity [10]. A fuel cell and
renewable energy sources have been combined in an energy hybrid system [11]. Various
optimization algorithms of water cycle optimizer, hybrid particle swarm, whale optimizer,
and moth-flame optimizer have been applied for designing different configurations of
microgrids involving photovoltaic, diesel generators with battery storage units or hydro-
electric pumped storage considering real data have been presented in [6,11]. The results
show that the whale optimization algorithm and whale optimization algorithm gives the
best results regarding the best COE and convergence characteristics for the specified case of
study. A grid-connected photovoltaic and wind turbine hybrid system has been designed
with the application of the methods of GA and PSO as presented in [16]. The results
showed that the COE waw minimized by continuing feeding to the load demand. A techno-
economic of a stand-alone hybrid system involving hybrid pumped and battery storage
with photovoltaic has been presented with the application of the algorithms of GA, firefly
algorithm, and grey wolf optimizer in [17]. In [17], a case of study for feeding a low load
has been considered. The results prove the ability of the grey wolf optimizer to minimize
the COE of the system. To improve the energy-use efficiency in a case study related to
agricultural fields, GA has been applied to optimize the configuration of a hybrid energy
system for reducing environmental impacts [18]. In Spain, a PV/WT/Biomass/H2/fuel
cell hybrid system based on model predictive control and genetic algorithm results in a
COE of 0.123 USD/kWh [19].
The application of the optimization techniques is essential for finding solutions and
optimal configuration of the energy systems in many fields, such as agricultural, milling
industry, nuclear power plant systems, and flood control operations, to find the optimal
configuration with satisfying the constraints [20,21]. The optimization leads to finding
the optimum and finest solutions between reasonable alternates, which ensure satisfying
the considered problem constraints. Additionally, the complex task, the multidisciplinary
problem of designing the microgrid systems considering many variables and constraints,
leads to implementing it as an optimization problem to achieve one or more objectives such
as minimizing cost, minimizing loss of power supply probability, and/or maximizing the
energy reliability.
This paper presents a comprehensive comparison between the performances of three
metaheuristic methods of equilibrium optimizer (EQ), bat optimization (BAT), and black-
hole-based optimization (BHB) to optimize and get the techno-economic optimal configura-
tion of microgrids to evaluate their effectiveness. Acceptable convergence characteristics
of the three optimization techniques have been proved considering other optimization
problems. However, no attempt has been made to present a comprehensive comparison
between the performance of the three algorithms to optimize the sizing of such a hybrid
energy system of this paper. Therefore, for a closer look at their performance, the applica-
tion of these methods was considered to optimize the hybrid energy system (PV plant, FC
systems, and battery storage systems) considering a real case study of Egypt in the Dobaa
energy system of this paper. Therefore, for a closer look at their performance, the applica-
tion of these methods was considered to optimize the hybrid energy system (PV plant, FC
systems, and battery storage systems) considering a real case study of Egypt in the Dobaa
Mathematics 2022, 10, 140 region. Moreover, statistical tests were performed to evaluate the robustness of 4 ofthe
25 three
applied algorithms.
The article is developed as follows: Section 2 illustrates methods involving the system
region. Moreover,
configurations, statistical
complete tests were
microgrid performed to model,
mathematical evaluateenergy
the robustness of the three
management methodol-
applied algorithms.
ogy, the sizing of microgrid problem formalization, the applied optimization techniques,
The article is developed as follows: Section 2 illustrates methods involving the system
and the case of study. The numeric results and discussions are executed in Section 3. The
configurations, complete microgrid mathematical model, energy management methodol-
last section
ogy, contributes
the sizing to the
of microgrid conclusion
problem of the proposed
formalization, work.
the applied optimization techniques,
and the case of study. The numeric results and discussions are executed in Section 3. The
2. last
Methods
section contributes to the conclusion of the proposed work.
2.1. System Configurations
2. Methods
2.1.The configuration
System of a stand-alone microgrid is illustrated in Figure 1. This is a gen-
Configurations
eral configuration thatofcontains
The configuration a PVmicrogrid
a stand-alone power plant with FC.
is illustrated Moreover,
in Figure 1. Thisaisbattery was in-
a general
cluded as a storage
configuration device.a This
that contains system
PV power is with
plant designed to introduce
FC. Moreover, an was
a battery essential solution
included as in
remote areas.
a storage device. This system is designed to introduce an essential solution in remote areas.
Figure
Figure1.
1. Arrangement
Arrangement ofofthe
thestudied
studied microgrid.
microgrid.
the standard one of 1000 W/m2 , respectively. BT , TC , and TC_nom indicate temperature
coefficient module, cell temperature, and standard temperature of 25 ◦ C, respectively.
Furthermore, the cell temperature is estimated as follows:
TTest
TC (t) − Tambient = G (t) (2)
800
where Tambient and TTest denote the module’s ambient and tested temperatures, respectively.
where ECH (t) represents the charged energy during ∆t, which is one hour at instant t. Pload (t)
represents the load power at the same instant t, while η conv and η CH are the efficiencies of
converter and charging, respectively. Moreover, the state of charge is estimated as
where SOC (t) and SOC(t − 1) denote battery SOCs at two instances of t and t − 1, one-
to-one. Additionally, σ denotes the rate of self-discharging. While the discharging mode
energy and SOC can be calculated as follows:
2.2.3. Electrolyzer
The electrolyzer is implemented based on the water-electrolysis concept, producing
hydrogen and oxygen by flowing a DC-current among two electrodes. Subsequently, the
hydrogen is gathered on all sides of the anode surface. According to the water electrolyzer
mentioned by [25–27], the generated hydrogen is gathered at a pressure of 30 bar. This value
is very high as compared with the produced one from the reactant-pressure to supply the
proton exchange membrane fuel cell (PEMFC). In many studies, the generated hydrogen
from the electrolyzer can be supplied to the hydrogen tank, or its pressure is increased
to 200 bar by a compressor to boost the energy stored density [25]. The other studies
stated that the hydrogen evaluated from the electrolyzer is applied to a low-pressure tank
until it is charged; therefore, a compressor is utilized to force the stored hydrogen to a
high-pressure tank. Hence, the energy depleted by the compressor is decreased because it is
not in the process of launching the whole time [25,26]. In this work, the generated hydrogen
Mathematics 2022, 10, 140 6 of 25
is applied to the hydrogen tank. The electrolyzer can be simulated via the transmitted
power from the DC-bus to the hydrogen tank, and it can be expressed by the following
formula [25–27],
PElectro−tank = Pren− Electro × ηElectro (7)
where PElectro −tank is the output electrolyzer power that is injected into the hydrogen tank.
Pren−Electro is the output electrolyzer power. The η Electro is the electrolyzer efficiency.
where Ptank−FC (t) is the equivalent power that pulled out from the hydrogen tank and
applied to the fuel cell (FC), and η storage is the efficiency of the storage tank, and it indicates
the losses, and it can be provided as 95% for all operating scenarios [25]. ∆t is the interval
of the simulation process, and it is deemed to be one hour in the proposed work.
The mass of stored hydrogen Mtank in the tank can be expressed by the following
equation [25–27]:
E (t)
Mtank (t) = tank (9)
HHVH2
where HHV H2 is the higher heating value of hydrogen (HHV). In line with [26], the amount
of HHV is deemed as 39.7 kWh/m2 . The energy stored in the tank comes among a
predefined upper and lower limit of the tank capacity. According to some issues related to
hydrogen nature, there is a recommendation that the low quantity (lower limit) of stored
hydrogen is not discharged and can be considered here by 5%. Consequently,
where Mtank is ranged between the upper Mtank,max and lower Mtank,min limits of hydrogen
tank at time t.
cluded in the following six scenarios. The first three scenarios are related to the generated
energy from PV being less than the demand load; in this case, the battery and FC should
be operated to cover the load demand energy. The other three scenarios are related to the
generated energy from PV being larger than the demand load; in this case, the battery and
FC should be operated to store the extra energy.
2.3.1. Case 1
Scenario I:
The battery should operate in the discharging mode of the battery to feed the load
demand when renewable energy does not cover it. So, in this case, the load power shearing
is as follows:
Scenario II:
Continuously; if the renewable energy and battery do not cover the load demand, this
is the time of FC operation. The generated power from the FC is estimated as
PFC (t) × ∆t = ( Pload (t) − PPV (t) × ηconv ) × ∆t − EDIS (t) × ηconv (14)
Scenario III:
Continuously; if the renewable energy, battery, and FC, does not suffice the load needs,
there is a shortage in the energy to supply the load needs. The LPS should be calculated to
be minimized. Moreover, a solution of DG may be used.
2.3.2. Case 2
Scenario IV:
On the other hand, when the generated energy from renewables exceeds the load
demand, the battery will be operated in charging mode. The power fellow in this scenario
will be demonstrated as follows:
Scenario V:
Sometimes the battery is full in the time of the renewable energy is exceeds the load
demand. In this scenario, the extra energy will be stored in the FC tank. The power fellow
in this interval is expressed as:
Scenario VI:
Sometimes, the battery is full in the time of the renewable energy is exceeds the load
demand. The extra energy is supplied to the dummy load in this scenario. The dummy
load in this interval is expressed as
Pdummy (t) × ∆t = ( PPV (t) × ηconv − Pload (t)) × ∆t − ECH (t)) × ηconv − PFC−inv (t) × ηconv (17)
Mathematics 2022, 10, 140Pdummy ( t ) × Δ t = ( PPV ( t ) × η conv − Pload ( t )) × Δ t − E CH ( t )) × η conv − PFC − inv ( t ) × η conv (17)
8 of 25
Start Scenario I
return PV energy
Scenario II less than
Read data of Solar radiation, and
load power, units cost and desired Load Demand
Scenario III
LPSP
Scenario IV
Obtain the PV module, Electrolyzer, Hydrogen PV energy
tank, Fuel Cell, and battery specifications larger than
Scenario VI
Load Demand
Calculate energy balance Scenario V
E B (t ) = ( PPV (t ) × ηconv − Pload (t )) × Δt
No No Yes No
SOC (t − 1) > SOCmin EB > 0 SOC (t − 1) < SOCmax
draw energy hydrogen Energy to electrolysis
tank
Yes Yes
P (t ) − PWT (t ) P (t ) − Pload (t )
E DIS (t ) = ( load − PPV (t )) × η DIS × Δt ECH ( t ) = ( WT + PPV (t )) × η CH × Δt
ηconv η conv
Yes Yes
EDIS (t ) ≤ SOC (t − 1) − SOCmin ECH (t ) ≤ SOCmax − SOC (t − 1)
No
SOC (t ) = SOC (t − 1) − EDIS (t ) No SOC (t ) = SOC (t − 1) + ECH (t )
SOC (t ) = SOCmax
SOC (t ) = SOCmin
Calculate LPS Pdummy (t) ×Δt = ECH (t) − (SOCmax − SOC(t −1))
return Scenario II
return
Scenario III
LPS should be
minimized Exceed Energy to
Check the Mass of Check the Mass of
Dummy Load
H2 in the tank H2 in the tank
No Mtank(t-1)>Mtank, min Mtank(t-1)<Mtank, max
No
M tan k (t ) = M tan k (t − 1)
M tan k (t ) = M tan k (t − 1)
Yes Yes
Calculate LPS
Calculate Ptank-FC using Eq. (8) Calculate PElectro-tank using Eq. (4) Pdummy (t ) × Δt = ( PPV (t ) × ηconv − Pload (t )) × Δt
return
Calculate mass of H2 consumed Calculate mass of H2 added using
using Eq. (5 & 6) Eq. (5 & 6)
return
Yes Yes
Mconsumed < Mtank (t −1) − Mtank,min Madded < Mtan k,max − Mtan k (t −1)
return
Figure
Figure 2.2.Scenarios
Scenariosofofenergy
energymanagement
managementflowchart.
flowchart.
The net present cost (NPC) is utilized to estimate the whole cost of the hybrid micro-grid.
The system annual cost of investment Cann_tot can be expressed by the following formula:
where, Cann_cap , Cann_rep , and Cann_oper&maint are the annual costs of the system components,
system components’ replacements, operation and maintenance, respectively.
(a) The Annual Capital Cost of the Microgrid System
The capital recovery factor (CRF) is utilized changing the initial investment to annual
capital costs based on the following equation:
r × (1 + r ) Msys
CRF (r, Msys ) = (19)
(1 + r ) Msys − 1
where r and Msys are the rate of interest (%) and the life span of the whole hybrid system
under study.
The annual capital cost of the individual subsystems is evaluated using the next
expressions,
Cann_cap_PV = Ccap_PV ∗ CRF (r, MPV )
ann_cap_FC = Ccap_FC ∗ CRF (r, M FC )
C
(20)
Cann_cap_batt = Ccap_batt ∗ CRF (r, Mbatt )
Cann_cap_conv = Ccap_conv ∗ CRF (r, Mconv )
where Ccap_PV , Ccap_batt , Ccap_FC , and Ccap_conv are the initial capital cost of PV system
integration, the initial cost of the battery bank, and the initial cost of all components of
FC, respectively. MPV , Mbatt , and MFC are the lifetime of PV modules, battery banks, and
FC, consequently.
Therefore, the annual capital investment cost of the hybrid system is formulated
as follows:
Cann_cap = Cann_cap_PV
+Cann_cap_batt
(21)
+Cann_cap_FC
+Cann_cap_conv
where Cann_cap_PV , Cann_cap_batt , Cann_cap_FC , and Cann_cap_conv are the annual-capital-cost
share of the integration of the PV, FC, battery bank, and converter, consequently.
(b) The Operation and Maintenance Cost
The operation and maintenance cost of the proposed scheme is estimated in the
following form:
Coper&main = Coper&main_PV ∗ t PV
+Coper&main_batt ∗ tbatt
(22)
+Coper&main_conv ∗ tconv
+Coper&main_FC ∗ t FC
where, Coper&main_PV , Coper&main_batt , Coper&main_conv , and Coper&main_FC are the operation
and maintenance costs of PV, battery banks, converter, and FC per unit time, respectively.
t PV , tbatt , tconv , and t FC are the operating time of PV, battery banks, converter, and FC,
respectively.
(c) The Annual Replacement Cost
The replacement cost of the hybrid system components during its lifetime is deter-
mined by the next formula [10–27],
nrep jMsys /(nrep +1)
1+i
Crep = ∑ KCrep Cu 1+r
(23)
j =1
Mathematics 2022, 10, 140 10 of 25
where, i, KCrep , Cu , and nrep are the inflation-rate of replacement, the unit’s size utilized in
the system, the cost of the replaced units, besides the number of the replacements during
the project time Msys .
Hence, the net present cost (NPC) is expressed as follows,
Cann_tot
NPC = (24)
CRF
The cost of energy (COE) is defined as the generated electrical energy cost from the
hybrid system in (USD/kWh). The COE is expressed as
Cann_tot NPC
COE = h=8760
= ∗ CRF (25)
∑h=1 Pload ∑hh=
=1
8760
Pload
∑8760
t=1 LPS ( t )
LPSP = (27)
8760
∑t=1 Pload (t) × ∆t
In this work, the weighting factors Ψ 1 , Ψ 2 , and Ψ 3 are selected based on trial and
error to achieve the best results. This selection is considered according to the following
conditions; weighting factors summation are equal to unity, their values (0, 1), and the
Ψ 2 value must be higher than Ψ 1 , and Ψ 3 values for ensuring the whole system reliability.
Therefore, the produced Ψ 1 , Ψ 2 , and Ψ 3 values are 0.2, 0.6, and 0.2, respectively.
Equation (30) is considered as one of the optimization policies to assure that the power
storage per hour by hydrogen tank at a time should be performed within limits, and it can
be represented as
Mtank,min ≤ Mtank (t) ≤ Mtank,max (30)
Avoiding the over/under charging issues, the SOS of the battery bank is constrained
between its maximum SOCmax and minimum SOCmin values. Where the SOCmax is con-
sidered the full size of the battery, on the other hand, the SOCmin is subjected to the depth
of discharge. This condition can be illustrated by Equations (31) and (32):
LPSP ≤ β L (33)
where ε [−1, 1] is a random number, and Lt is the average of loudness at t time. In the
case of the bat being very close to prey, it reduces its loudness increasing the emitted rate of
pulses. It can be assumed that when a bat detected its prey, then the Lo = 1 and Lmin = 0,
and it can be formulated as
where α and γ are constant values that are α > 0 and γ < 1. In addition,
Mathematics 2021, 9, x FOR PEER REVIEWNotethat the initial values of Lo and ri can range between 0 and 1. 13 of 27
The steps of the BAT technique process can be deduced in the flowchart in Figure 3.
Figure3.3.Flowchart
Figure FlowchartofofBAT
BATtechnique.
technique.
2.5.2.
2.5.2. Black-Hole-Based OptimizationTechnique
Black-Hole-Based Optimization Technique(BHB) (BHB)
The
TheBHB
BHBtechnique
techniquewaswasinspired
inspiredby bythe
theblack-hole
black-holephenomenon
phenomenon[32]. [32].ItItisisa apopulation-
popula-
based algorithm,
tion-based where
algorithm, a “black-hole”
where a “black-hole” is is
known
knownasasthe thebest
best solution/candidate
solution/candidate ofof thethe
population
population at at every
every iteration, and the
iteration, and the other
other solutions
solutionsare areknown
knownasas“normal
“normalstars”. stars”.The
The
basic
basic election
election of the black hole is one one of of the
the genuine
genuine candidates
candidatesofofthe thepopulation.
population.The The
black hole attracts
black hole attracts all solutions based on their current placement,
solutions based on their current placement, including a random including a random
number.
number.The Thenormal
normalstars
starscan
canbebepulled
pulledaround
aroundthe theblack
blackhole
holeafter
afterthetheinitializing
initializingprocess.
pro-
In addition, the black hole will allow the too-closed stars to be gone
cess. In addition, the black hole will allow the too-closed stars to be gone forever. forever.
The
The proposed
proposed BHB can be formulated
formulated in inthe
thefollowing
followingprocess
process[32]:[32]:
Process
Process 1: Initializing. Forstars,
Initializing. For stars,aapopulation
populationsize size“N”
“N”has
hasbeenbeen generated
generated with
with ran-ran-
dom
domsittings
sittings in a research space
space that
thatisisdistributed
distributedininlimited
limitedupper
upper andand lower
lower boundaries.
boundaries.
Process
Process 2:2: Run
Run the
the program
programperforming
performingall allconstraints
constraintsfor forevery
everystar starofofthe
thepopulation.
popula-
Iftion.
the If
satisfied star constraints,
the satisfied then then
star constraints, it is workable;
it is workable;otherwise, it is it
otherwise, notis workable.
not workable.
Process
Process 3:3: Evaluate the
the fitness
fitness function
functionfor forevery
everyworkable
workablestar.star.
Process
Process 4:4: Record the best
best fitness/star
fitness/starasasthe theblack-hole
black-holeXBH XBH star.
star.
Process
Process 5: count tt ==1.1.
5: Start with count
Process
Process 6:6: Alter the sitting
sitting ofof every
everystarstarbased
basedon onthethefollowing
followingEquation
Equation(40): (40):
t +1 t t
Xit+
X 1 = =XiX
i
t + +rand
i
(0,1) ∗ ( X BH −−XXit););
randi (0,
i 1) ( XBH i (40)
(40)
i = i1,=2,
1, 3, .,N
2, .3,. ..., N
where t is the iteration number, Xi is the sitting of the star at iteration t, and XBH is the
sitting of the black-hole in the search space.
Process 7: If a star gets a sitting where the parameters of the proposed design are
lower than previous, then update their sittings as the following:
Mathematics 2022, 10, 140 13 of 25
Figure4.4.Flowchart
Figure Flowchart
ofof BHB
BHB technique.
technique.
Mathematics 2022, 10, 140 14 of 25
Ci = Bl + r ·( Bu − Bl ) (43)
where the Bl and Bu are the lower and upper boundaries of the search space, the r (0, 1) is
uniform random.
Based on evaluating the fitness function, the “C” can be upgraded via computing the
equilibrium solutions to deduce the best candidates. The upgrading process of the EQ
technique can be deduced in the following form:
G
Cnew = Ceq + (1 − E) + (C − Ceq )· E (44)
µ
where the exponential term “E” and the rate of generation “G” can be known as
Figure5.5.Flowchart
Figure Flowchart of EQ
EQ Technique.
Technique.
Locationofofthe
Figure6.6.Location
Figure the studied
studied microgrid.
microgrid.
Airtemperature—hourly
Air temperature—hourlyaverages
averages[°C]
[°C]
40.0
40.0
30.0
30.0
20.0
20.0
10.0
10.0
0.00.0
0 -0 -1 -1 -2 -2 -3 -3 -4 -4 -5 -5 -6 -6 -7 -7 -8 -8 -9 -910
- 10 - 11
- 11 - 12
- 12 - 13
- 13 - 14
- 14 - 15
- 15 - 16
- 16 - 17
- 17 - 18
- 18 - 19
- 19 - 20
- 20 - 21
- 21 - 22
- 22 - 23
- 23 - -
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9101011111212131314141515161617171818191920202121222223232424
Jan
Jan Feb
Feb Mar
Mar Apr
Apr May
May Jun
Jun
JulJul Aug
Aug Sep
Sep Oct
Oct Nov
Nov Dec
Dec
. .
Figure
Figure Temperature
8.8.8.
Figure Temperature for
Temperature the
forfor study
the
the area.
study
study area.
area.
Figure
Figure
Figure 9.9.9.
TheThe
The average
average
average load
load
load demand
demand
demand per
perper month.
month.
month.
Mathematics 2022, 10, 140 17 of 25
Figure 10. The load curve per day of the study area.
Figure 10. The load curve per day of the study area.
3. Results and Discussions
3. Results and Discussions
MATLAB package was used in order to determine the optimal configuration-based
individual
MATLAB optimization
package wasalgorithms.
used inFor each
order toalgorithm,
determinethe themaximum iterations and
optimal configuration-based
search agents number were considered to be 200 and 30, respectively. According
individual optimization algorithms. For each algorithm, the maximum iterations to this and
work, the capacity of the proposed microgrid (hybrid system) is realized as PV rated
power and their modules number, the mass of hydrogen tank, number of battery units,
the rated power of the electrolyzer and fuel cell. The optimization algorithm should
determine the configuration of the energy system to minimize the objective function. The
data specifications of the system components can be found in [11] and are given in Table 1.
The net present values are 546067.9, 550426, and 571437.7 for BAT, EQ, and BHB
optimizers, respectively. Although the net present value of EQ is higher than that of BAT
by 0.9664%, the recommended design is that of the EQ algorithm. This recommendation
is because of the decrease of the LPSP with the EQ algorithm rather than that of the BAT
algorithm. In general, the two designs based on BAT and EQ algorithms can be considered
Mathematics 2021, 9, x FOR PEER REVIEW
concerning the priority of LPSP or COE. Figures 11 and 12 visualize the obtained results of 20 of 2
the various configurations of the microgrid based on the three algorithms.
Figure
Figure 11.11. Indices
Indices of energy
of the the energy system
system based based on various
on various algorithms.
algorithms.
Figure
Figure 12. 12. Configuration
Configuration of thesystem
of the energy energy system
based basedalgorithms.
on various on various algorithms.
that the minimum and maximum obtained cost functions of BHB are 0.108078 and 0.124731,
respectively. In comparison, the stranded division and the average results of BHB are
0.41938 and 0.114019, respectively. The obtained results show that the best-obtained results
are acceptable for all algorithms, but EQ and BHB algorithms are better algorithms rather
than BAT. Furthermore, the statistical indices show that the divisions between the results
of individual runs of the BAT algorithm are bigger than those of the EQ and BHB.
Table 3. Statistical results of the three algorithms of BAT, EQ, and BHB.
The convergence curves of the 30 individual runs are shown in Figure 14 for the three
algorithms. Furthermore, the boxplot of the best objective functions is shown in Figure 13.
On the other side, the Wilcoxon signed-rank test was performed to validate the application
of the BAT, EQ, and BHB algorithms. The results show that the value of the rank h is 1
for the three algorithms, which indicates that the test rejects the null hypothesis of zero
median. Moreover, the p is 1.73 × 10− 6 , 1.82 × 10−5 , and 1.73 × 10−6 , which proves the
robustness of the BAT, EQ, and BHB algorithms, respectively. The box plot has been plotted
for the three algorithms for more visualization of the performance of the three algorithms,
Mathematics 2021, 9, x FOR PEER REVIEW 22 of 27
as shown in Figure 15. The figure demonstrates the superiority of the EQ algorithm for
optimizing the size of the microgrid for the considered case study.
Best Score
Mathematics 2022, 10, 140 Figure 14. Convergence curves of the three algorithms over 30 runs: (a) 30-run convergence
21 of 25 curves
of BAT, (b) 30-run convergence curves of EQ, and (c) 30-run convergence curves of BHB.
(a) (b)
Pdummy (Kw)
L PS (Kw)
(c)
Figure 16. The results for the operation of the microgrid over one year considering the optimal
configuration based on EQ technique. (a) Load, PV, and the different power. (b) Performance of the
charging and discharging of the storage units for the battery and FC. (c) Dummy load and LPSP.
Mathematics 2021, 9, x FOR PEER REVIEW 24 of 27
Mathematics 2022, 10, 140 Figure 16. The results for the operation of the microgrid over one year considering the23optimal
of 25
configuration based on EQ technique. (a) Load, PV, and the different power. (b) Performance of the
Pload (Kw)
PPV (Kw)
Pdiff (Kw) charging and discharging of the storage units for the battery and FC. (c) Dummy load and LPSP.
(a) (b)
(c)
Figure
Figure 17. 17. Numeric
Numeric results
results of microgrid
of the the microgrid operation
operation for working
for one one working dayoptimal
day via via optimal configura-
configuration
tion using EQ technique. (a) Load, PV, and the different power. (b) Performance of the charging and
using EQ technique. (a) Load, PV, and the different power. (b) Performance of the charging and
discharging of the storage units for the battery and FC. (c) Dummy load and LPSP.
discharging of the storage units for the battery and FC. (c) Dummy load and LPSP.
4. 4. Conclusions
Conclusions and
and Future
Future Directions
Directions
InIn thispaper,
this paper,a astand-alone
stand-alonemicrogrid
microgridhas
hasbeen
beendesigned
designed to feed emergency
emergency loads
loads of
ofaa nuclear plant using
nuclear power plant usingrecent
recentoptimization
optimizationalgorithms
algorithmsofofequilibrium
equilibrium optimizer
optimizer
(EQO), bat optimization (BAT), and black hole (BH). A comprehensive comparison between
the ability and performance of the algorithms was conducted to solve the problem of
microgrids design. A configuration of a microgrid consisting of a PV plant with FC
Mathematics 2022, 10, 140 24 of 25
and battery storage systems was optimally designed, and the possibility of integrating
with a nuclear power plant to enhance the emergency power supplies was studied. The
optimization algorithms are individually used to optimize and size the energy systems to
minimize the cost and ensure the optimized microgrid’s reliability. The energy systems
were modeled and evaluated in MATLAB.
The results show that the EQ algorithm has a better performance than the other
algorithms considering the best objective function value. The objective function was
improved to 0.1074 using the EQ algorithm, while its values were 0.112231 and 0.108078
with BAT and BHB. However, the COE of the EQ-based results is higher than the BAT
algorithm, while it is lower than the BHB. On the other hand, the reliability index of the EQ
algorithm is better than the BAT algorithm, which is the main reason to increase the COE of
the EQ algorithm. The results of BHB indicate that the LPSP is a smaller one with respect
to the EQ and BAT, while the dummy load of the BHB is higher than those of the BAT and
EQ algorithms. Finally, the designed microgrid based on the EQ and BHB is recommended
based on the obtained results of the simulation of the microgrid operation and statistical
analyses. It should be remarked that the storage energy cost is considered one of the main
reasons to increase the COE and affect the system reliability. Using other renewable energy
sources such as bioenergy or wind energy may enhance the system performance. Therefore,
in future work, different configurations of off-grid and grid-connected microgrids should
be designed to include a wind power plant, bioenergy, and/or diesel generator to increase
the system’s reliability and reduce the COE.
Author Contributions: Conceptualization, A.A.Z.D. and M.M.Z.; Methodology, A.A.Z.D. and M.A.T.;
Software, A.A.Z.D.; Data curation, A.A.Z.D., A.M.E.-R. and M.A.T.; Formal analysis, A.A.Z.D.,
A.M.E.-R. and M.A.T.; Visualization, A.A.Z.D., A.M.E.-R. and M.A.T.; Investigation, A.M.E.-R. and
M.M.Z.; Analysis, A.A.Z.D. and A.M.E.-R.; Writing—original draft, A.A.Z.D. and M.A.T.; Writing—
review and editing, A.A.Z.D., A.M.E.-R. and M.M.Z. All authors have read and agreed to the
published version of the manuscript.
Funding: This research received no external funding.
Institutional Review Board Statement: Not applicable.
Informed Consent Statement: Not applicable.
Data Availability Statement: Not applicable.
Acknowledgments: The researchers (Ahmed A. Zaki Diab and Mohamed A. Tolba) are funded by a
full scholarship (Mission 2020/21 and Mission 2019/20) from the Ministry of Higher Education of
Egypt. However, the current research work is not funded by the mentioned Ministry in Egypt or any
other organization/foundation.
Conflicts of Interest: The authors declare no conflict of interest. Non-financial competing interest.
References
1. The Arab Republic of Egypt, Ministry of Electricity and Energy. Egyptian Electricity Holding Company_Annual Report 2015–2016.
Available online: http://www.moee.gov.eg/english_new/report.aspx (accessed on 10 April 2021).
2. Sultan, M.H.; Kuznetsov, O.N.; Diab, A.A.Z. Site selection of large-scale grid-connected solar PV system in Egypt. In 2018
IEEE Conference of Russian Young Researchers in Electrical and Electronic Engineering (EIConRus); IEEE: New York, NY, USA, 2018;
pp. 813–818.
3. Sultan, H.M.; Diab, A.A.Z.; Oleg, N.K.; Irina, S.Z. Design and evaluation of PV-wind hybrid system with hydroelectric pumped
storage on the National Power System of Egypt. Glob. Energy Interconnect. 2018, 1, 301–311.
4. The Official Website of the Ministry of Electricity and Energy. Available online: http://www.moee.gov.eg (accessed on 10 April 2021).
5. Tolba, M.A.; Diab, A.A.Z.; Tulsky, V.N.; Abdelaziz, A.Y. LVCI approach for optimal allocation of distributed generations and
capacitor banks in distribution grids based on moth–flame optimization algorithm. Electr. Eng. 2018, 100, 2059–2084. [CrossRef]
6. Diab, A.A.Z.; Sultan, H.M.; Kuznetsov, O.N. Optimal sizing of hybrid solar/wind/hydroelectric pumped storage energy system
in Egypt based on different meta-heuristic techniques. Environ. Sci. Pollut. Res. 2019, 27, 32318–32340. [CrossRef] [PubMed]
7. Shouman, R.; El Shenawy, E.T.; Khattab, N.M. Market financial analysis and cost performance for photovoltaic technology through
international and national perspective with case study for Egypt. Renew. Sustain. Energy Rev. 2016, 57, 540–549. [CrossRef]
Mathematics 2022, 10, 140 25 of 25
8. Kamel, O.M.; Abdelaziz, A.Y.; Zaki Diab, A.A. Damping Oscillation Techniques for Wind Farm DFIG Integrated into Inter-
Connected Power System. Electr. Power Compon. Syst. 2020, 48, 1551–1570. [CrossRef]
9. Ngan, M.S.; Tan, C.W. Assessment of economic viability for PV/wind/diesel hybrid energy system in Southern Peninsular
Malaysia. Renew. Sustain. Energy Rev. 2012, 16, 634–647. [CrossRef]
10. Diab, A.A.Z.; Sultan, H.M.; Mohamed, I.S.; Kuznetsov, O.N.; Do, T.D. Application of different optimization algorithms for optimal
sizing of PV/wind/diesel/battery storage stand-alone hybrid microgrid. IEEE Access 2019, 7, 119223–119245. [CrossRef]
11. Diab, A.A.Z.; El-ajmi, S.I.; Sultan, H.M.; Hassan, Y.B. Modified farmland fertility optimization algorithm for optimal design of a
grid-connected hybrid renewable energy system with fuel cell storage: Case study of Ataka, Egypt. Int. J. Adv. Comput. Sci. Appl.
2019, 10, 119–132. [CrossRef]
12. Rezk, H.; Al-Dhaifallah, M.; Hassan, Y.B.; Ziedan, H.A. Optimization and Energy Management of Hybrid Photovoltaic-Diesel-
Battery System to Pump and Desalinate Water at Isolated Regions. IEEE Access 2020, 8, 102512–102529. [CrossRef]
13. Tran, Q.T.; Davies, K.; Sepasi, S. Isolation Microgrid Design for Remote Areas with the Integration of Renewable Energy: A Case
Study of Con Dao Island in Vietnam. Clean Technol. 2021, 3, 804–820. [CrossRef]
14. Xiang, Y.; Han, W.; Zhang, J.; Liu, J.; Liu, Y. Optimal sizing of energy storage system in active distribution networks using
Fourier–Legendre series based state of energy function. IEEE Trans. Power Syst. 2017, 33, 2313–2315. [CrossRef]
15. Lu, X.; Wang, H. Optimal sizing and energy management for cost-effective PEV hybrid energy storage systems. IEEE Trans. Ind.
Inform. 2019, 16, 3407–3416. [CrossRef]
16. Gonzalez, A.; Riba, J.R.; Rius, A.; Puig, R. Optimal sizing of a hybrid grid-connected photovoltaic and wind power system. Appl.
Energy 2015, 154, 752–762. [CrossRef]
17. Biswas, A.; Kumar, A. Techno-Economic Optimization of a Stand-alone PV/PHS/Battery systems for very low load situation. Int.
J. Renew. Energy Res. 2017, 7, 844–856.
18. Kaab, A.; Sharifi, M.; Mobli, H.; Nabavi-Pelesaraei, A.; Chau, K.W. Use of optimization techniques for energy use efficiency and
environmental life cycle assessment modification in sugarcane production. Energy 2019, 181, 1298–1320. [CrossRef]
19. Acevedo-Arenas, C.Y.; Correcher, A.; Sánchez-Díaz, C.; Ariza, E.; Alfonso-Solar, D.; Vargas-Salgado, C.; Petit-Suárez, J.F. MPC for
optimal dispatch of an AC-linked hybrid PV/wind/biomass/H2 system incorporating demand response. Energy Convers. Manag.
2019, 186, 241–257. [CrossRef]
20. Ciardiello, A.; Rosso, F.; Dell’Olmo, J.; Ciancio, V.; Ferrero, M.; Salata, F. Multi-objective approach to the optimization of shape
and envelope in building energy design. Appl. Energy 2020, 280, 115984. [CrossRef]
21. Gassar, A.A.; Koo, C.; Kim, T.W.; Cha, S.H. Performance Optimization Studies on Heating, Cooling and Lighting Energy Systems
of Buildings during the Design Stage: A Review. Sustainability 2021, 13, 9815. [CrossRef]
22. Chang, X.; Xu, Y.; Gu, W.; Sun, H.; Chow, M.-Y.; Yi, Z. Accelerated Distributed Hybrid Stochastic/Robust Energy Management of
Smart Grids. IEEE Trans. Ind. Inform. 2021, 17, 5335–5347. [CrossRef]
23. Chang, X.; Xu, Y.; Sun, H.; Khan, I. A distributed robust optimization approach for the economic dispatch of flexible resources.
Int. J. Electr. Power Energy Syst. 2021, 124, 106360. [CrossRef]
24. Ekren, O.; Ekren, B.Y. Size optimization of a PV/wind hybrid energy conversion system with battery storage using simulated
annealing. Appl. Energy 2010, 87, 592–598. [CrossRef]
25. Garcia, R.S.; Weisser, D. A wind–diesel system with hydrogen storage: Joint optimization of design and dispatch. Renew. Energy
2006, 31, 2296–2320. [CrossRef]
26. El-Sharkh, M.Y.; Tanrioven, M.; Rahman, A.; Alam, M.S. Cost related sensitivity analysis for optimal operation of a grid-parallel
PEM fuel cell power plant. J. Power Sources 2006, 161, 1198–1207. [CrossRef]
27. Kashefi, K.; Riahy, G.H.; Kouhsari, S.M. Optimal design of a reliable hydrogen-based stand-alone wind/PV generating system,
considering component outages. Renew. Energy 2009, 34, 2380–2390. [CrossRef]
28. Khan, M.J.; Iqbal, M.T. Pre-feasibility study of stand-alone hybrid energy systems for applications in Newfoundland. Renew.
Energy 2005, 30, 835–854. [CrossRef]
29. Mohamed, M.; Eltamaly, A.; Alolah, A.; Hatata, Y.A. A novel framework-based cuckoo search algorithm for sizing and optimiza-
tion of grid-independent hybrid renewable energy systems. Int. J. Green Energy 2018, 16, 86–100. [CrossRef]
30. Ramli, M.A.M.; Bouchekara, H.R.E.H.; Alghamdi, A.S. Optimal sizing of PV/wind/diesel hybrid microgrid system using
multiobjective self-adaptive differential evolution algorithm. Renew. Energy 2018, 121, 400–411. [CrossRef]
31. Yang, X.-S. A new meta heuristic bat-Inspired algorithm. In Nature Inspired Cooperative Strategies for Optimization (NISCO 2010);
Gonzalez, J.R., Ed.; Studies in Computational Intelligence; Springer: Berlin/Heidelberg, Germany, 2010; pp. 65–74.
32. Bouchekara, H.R.E.H. Optimal design of electromagnetic devices using a black-Hole-Based optimization technique. IEEE Trans.
Magn. 2013, 49, 5709–5714. [CrossRef]
33. Faramarzi, A.; Heidarinejad, M.; Stephens, B.; Mirjalili, S. Equilibrium optimizer: A novel optimization algorithm. Knowl.-Based
Syst. 2020, 191, 2020. [CrossRef]
34. Available online: Solargis.com (accessed on 15 April 2021).