Académique Documents
Professionnel Documents
Culture Documents
To cite this article: Mohamed El-Hendawi, Hossam A.Gabbar, Gaber El-Saady & El-
Nobi A. Ibrahim (2018) Optimal operation and battery management in a grid-connected
microgrid, Journal of International Council on Electrical Engineering, 8:1, 195-206, DOI:
10.1080/22348972.2018.1528662
Article views: 84
ARTICLE
CONTACT Hossam A.Gabbar hossam.gabbar@uoit.ca Energy Systems and Nuclear Science Research Centre (ERC) - Room 4021 North Oshawa 2000
Simcoe Street North Oshawa, ON L1H 7K4
© 2018 The Author(s). Published by Informa UK Limited, trading as Taylor & Francis Group.
This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted
use, distribution, and reproduction in any medium, provided the original work is properly cited.
196 M. EL-HENDAWI ET AL.
the power from DER when the cost of the grid is lower hours. The EMS applies an optimization algorithm
than the operational cost of renewable energy to manage the power in the proposed model based
resources. In [7] the model only included PV and on minimizing the total operational cost. This paper
ESS. The priority is to supply the load demand. This uses Interior Search Algorithm (ISA) to solve the
research keeps the utility grid as the final choice to energy management optimization problem. The pro-
meet the load demand. It did not take into considera- posed MG is applied to a case study in Oshawa,
tion the time of use of the electricity prices. Ref [8,9]. Ontario, Canada.
study the optimal sizing for the DGs to minimize the The paper is organized as follows: Section 2, gives a
net present value of the MG while supplying the load brief overview of the proposed microgrid and the
with required power. Ref [10]. proposes a multi-objec- model of each source. Section 3 presents the energy
tive particle swarm optimization (MOPSO) algorithm management system optimization model. Section 4
to design an optimal grid-connected microgrid com- discusses the case study. In Section 5, the simulation
prising PV/wind/battery. The objective of the research results are presented and discussed. In Section 6, the
is to achieve minimum cost, reliable system and reduce conclusion summarizes the results.
pollutant emissions. Some papers choose different
types of storage system to achieve the reliability and
reduce energy costs. Ref [11]. performs a dynamic 2. Basic system modeling
power management strategy for the microgrid using The microgrid configuration is presented in Figure 1
PV, wind, and flywheel storage system. Also, ref [12]. which includes PV, WT, ESS and the main utility grid.
discusses optimal EM in a grid-connected mode using EMS takes a signal from each source of the circuit and
Gravitational search algorithm (GSA) algorithm. The applies optimization technique to determine the opti-
proposed model consists of a wind turbine, PV, elec- mal power flow direction. The step time for the pro-
trolyser, fuel cell and hydrogen storage tank which posed model is 1 hour. At each time step the generated
supplies the electrical and thermal load demand. power by each source must be calculated. This section
In the previous literature review, there are different discusses briefly the MG mathematical modelling of
types of DGs and ESS that comprise the grid-connected each component.
microgrid to supply the load demand. In such systems,
there are various operational scenarios that emphasis
the importance of EMS to show the priority to supply 2.1. PV model
the load with power from the DGs. If the DGs’ power is
The output power of PV system changes with the
higher than the demand, the excess of power will be
weather conditions. The power generated from the
stored in the battery until reaching the maximum
PV arrays at hour t is calculated as follow [13]
capacity. Afterwards, any residual power will be sold
to the grid. On the other hand, if the DGs’ power is Ppv ðtÞ ¼ Apv ηpv Gðt Þ (1)
lower than the demand, the battery will supply the load
with the shortage of power. If the RES and ESS still where ηpv is the PV panel reference efficiency, Apv ½m2
cannot supply the entire load demand, the remaining is the solar array surface area, and Gðt Þ is the solar
load demand is powered by the utility grid. irradiance ½kw=m2 :
This paper proposes an optimal operation of
energy management system in a microgrid to opti-
2.2. Wind generator model
mize the operating cost and achieve the system
reliability. The proposed microgrid MG includes A simplified model of a wind turbine produces elec-
three types of DGs: PV, WT, battery and operates trical power which has a linear relationship with the
in a grid-connected mode. In this work, using ESS wind speed. When the wind speed reaches a nominal
allows purchasing energy from the grid with low value, the wind turbine produces the nominal power.
prices to be stored in the battery units. This stored The wind turbine disconnects from the grid when the
energy can be recalled during high-peak price hours wind speed reaches the maximum wind value (cut-off
to compensate any shortage from the DGs. Also, if speed). On the other hand, the wind turbine does not
the demand is less than the power generated by the generate any power when the wind speed is equal or
DGs, the DGs and the grid store the excess power in lower than the minimum wind value (cut-in speed)
the ESS with low prices in the off-peak hours. since it does not have enough power to overcome the
Subsequently, the power will be sold to the utility friction of the turbine. The output power of wind
grid with the maximum price in the high-peak generator is calculated as follows [14]:
JOURNAL OF INTERNATIONAL COUNCIL ON ELECTRICAL ENGINEERING 197
8
< 0 v vci or v vco the battery during a period (Δt). ηch and ηdisch are the
Pw ðtÞ ¼ a:v3 ðt Þ b:Prate vci < v < vr (2) charging/discharging efficiencies of the battery which
:
Prate vr < v < vco are both set to be 0.9.
Where Cpv , CWG and CESS are the operational and 3.2.2. Source constraints
maintenance cost of the output power of PV, wind To keep the system stable, the DGs output power must
power and ESS. Also, Cgb ðt Þ and Cgs ðt Þ are the cost be within suitable limits. Also, there are many con-
of purchasing/selling power from/to the utility at straints that must be taken into consideration to main-
hour t. PPV ðt Þ; PWG ðt Þ, PESS ðt Þ are the output tain the lifetime of the battery and prevent its damage.
power of the DGs and ESS. Pgs ðtÞ and Pgb ðt Þ are There is a limit on the amount of energy stored in the
the input/output power to/from the grid. T is the battery (presented as the state of charge (SOC)). The
total period which is from 1 to 24 hour. x is the input/output power of the battery is limited by the
state variable which represent the output power of maximum charging/discharging power [18].
the DGs and the charging/discharging power of the min
PPV ðt Þ PPV ðtÞ PPV
max
ðtÞ (7)
ESS. So, at each time the decision variables con-
sisted of:
min
PWG ðtÞ PWG ðt Þ PWG
max
ðt Þ (8)
xðtÞ ¼ ½PPV ðt Þ PWG ðt Þ PESS ðt Þ t ¼ 1; 2; . . . . . . T (5)
min
PESS ðt Þ PESS ðt Þ PESS
max
ðt Þ (9)
Interior Search Algorithm (ISA) algorithm as one of the (3) Divide other elements into two groups ran-
types of the heuristic algorithms. domly. If r1 α, the element goes to the mirror
group, else it goes to the composition group.
Where α is a tuned parameter and r1 is a ran-
3.4. ISA optimization dom number between 0 and 1.
(4) In case of composition group, each variable
ISA is a new and important optimization techniques
has been changed randomly within the limited
that is fast, reliable, and flexible to solve different
constraint with respected to the following
optimization problems. ISA is a novel optimization
formula.
technique given by Amir H. Gandomi in 2014 [20].
In this paper, ISA has been applied to acquire the
j
optimal economic power management of the pro- xi ¼ LBj þ UBj LBj r2 (12)
posed microgrid. ISA designed related to the aes-
thetic techniques used for interior design and Where r2 is a random number between 0 and 1. LB
decoration to satisfy the client point of view. is the lower limit and UB is the upper limit.
Usually, when the designer begins to design the
interior elements of a building, he starts to compose (5) To get the position of the new mirror element, put
the elements from the wall and then it will be easy to a mirror between the global best element and each
design the other parts because the space will be element of the group then calculate the value of the
limited. However, in ISA method the designer fitness function of each element. The following
arranges the composition of elements randomly to formula calculates the position of the mirror:
reach to the most beautiful view. This arranges in
elements composition is accepted only when it j j1
xm;i ¼ r3 xi
j
þ ð1 r3 Þxgb (13)
achieves a more decorative view based on the client
point of view. ISA optimization technique has been The new mirror element can be calculated as follows:
designed based on this idea. The element (state vari- j j j1
able) place is changed when it gives a more decora- xi ¼ 2xm;i xi (14)
tive view (a better fitness value) and when the client (6) If the new fitness function is better than the old
accepts the decoration view (the constraints are satis- fitness function, the new element replaces the old
fied). The designers put mirrors near the most dec- element. If not, the old element will be kept in
orative element to increase their beauty. This process the next iteration.
is used in the optimization method by placing a (7) If the iterations did not finish, these steps would
mirror near the global best function to improve the begin again from step 2.
solution.
ISA has different stages to reach to the optimum Most of optimization algorithms have two para-
cost function. The value of the state variables are meters at least that should be tuned to improve the
changed only if it provides a better fitness function simulation results. One the advantage of this method is
and is within the limited constraints. On the other that there is only one parameter (α) which should be
hand, this method uses a mirror to tune the state tuned. The range of α is varied between 0 and 1.
variables to achieve the best solutions. The state vari- Therefore, by changing the value of α, the best solution
ables split into two categories; the composition cate- could be reached.
gory and the mirror category. Figure 3 shows the
flowchart of the ISA optimization steps.
The optimization steps for EMS using ISA is given 4. Case study
bellow [21]:
The developed strategy is applied to a set of houses
connected together which are located in Oshawa,
(1) Generate Random initial elements (state vari-
j Ontario, Canada. The hourly output power profile of
ables) xi within the upper and lower constraints
the wind and PV system changes with the time of day
j
and compute the fitness function f xi value. and season. In this paper, the PV and wind profile for
(2) Find the best element of the initial population a weekday in the winter season, as shown in Figure 4.
which is the minimum fitness function. The The forecasted curve for the hourly load demand
element with the best solution called the global during the year is related to IESO Ontario [22] as
j
best (xgb ). shown in Figure 5. The profile of the load during
200 M. EL-HENDAWI ET AL.
one day in the winter season is shown in Figure 6. The supposed to be 10%, 90% and 50%, respectively.
limits and economic parameters of PV, WT and ESS Table 2 illustrates the variation of the grid tariff
are illustrated in Table 1. The minimum, maximum through the winter season in Oshawa with respect to
and initial state of charge (SOC) of the ESS is the Ontario Energy Board [23].
JOURNAL OF INTERNATIONAL COUNCIL ON ELECTRICAL ENGINEERING 201
Figure 5. Hourly electrical power consumption of the load during one year.
Table 1. Technical and economical parameters of DGS and ESS. from the grid and there will not be any power
Type PV Wind ESS that can be sold to the grid. To apply this mode,
Lower limit (kW) 0 0 −20 it is assumed that another set of homes is
Upper limit (kW) 25 20 20
Operational & Maintenance Cost ($/kW) [1] 0.01 0.01 0.01
coupled with the previous loads, which simply
duplicates the load demand.
(1) Mode 1 ‘small-scale load’: The DGs power is Case 1: The base case study where the demand is
more than the demand in a specific hour and supplied by the utility grid only (DGs and ESS are
less in other hours of the day. So, the MG may not included).
sell or purchase power to/from the grid depend- Case 2: In mode 1, The MG supplies the load with
ing on the objectives of the operating strategy. the demanded power and the excess of power will
The load in this mode consisted of a set of be stored in the battery until reaching the max-
homes and the demand is shown in Figure 6. imum capacity. The utility grid is the final choice.
(2) Mode 2 ‘large-scale load’: The demand is con- In mode 2, battery and DGs provide the load
stantly higher than the DGs power. thus, the with power and the power shortage is covered
shortage of the power demand can be bought by the grid.
Case 3: The proposed case study, where the demand Case 3) Purchasing electricity and selling electricity,
is supplied from DGs, battery or the utility grid with DGs and ESS;
depending on the electricity time-of-use price for This strategy allows the MG to acquire economic
minimum cost. benefits by selling the electricity to the grid with
high price and purchasing it with low price.
Therefore, the buying cost is lower than the selling
5. Results and discussions cost and the total cost is $-0.517 per day as shown in
Table 3. Also, the purchased power from the grid
This section presents the results for the studied micro-
(153.42 kWh) is lower than the sold power to the
grid based on the proposed formulation. In this paper,
utility grid (261.92 kWh). Figure 7(b) shows that the
a working winter day has been selected as an example
battery charges in the off-peak price periods and
to test the model and it can be executed for any day of
discharges in the other hours of the day. This case
the year. Figure 7 gives the power flow results in the
study demonstrates a high potential savings for the
MG for mode 1 and Figure 8 illustrates the results of
total operating cost.
the proposed MG for mode 2. The comparison between
the three case studies are presented in Table 3. The
outcomes of the proposed microgrid system are repre-
5.2. Results for mode 2 ‘Large-Scale Load’
sented in the following subsections.
Case 1) purchasing electricity, without DGs and ESS;
Case 2) purchasing electricity, with DGs and ESS;
5.1. Results for mode 1 ‘Small-Scale Load’ Case 3) purchasing electricity and selling electricity,
with DGs and ESS;
This mode will be discussed with the three cases to
As mentioned before, in case 1 the load is completely
illustrate the advantages of the proposed strategy to
supplied by the utility grid. Also, in mode 2 the load is
minimize the cost.
doubled so the purchasing price is increased. In case2
Case 1) Purchasing electricity, without DGs and ESS; and case 3, DGs and ESS are connected to the utility
In this case, the load is fully supplied from the utility grid to supply the load. However, in each of the previous
grid. Where the DGs and ESS are disconnected from cases, the MG can purchase power from the utility grid
the utility grid. Table 3 gives the total cost of the while in case 3 the MG can sell/buy power to/from the
purchased power from the grid according to the elec- utility grid. In case 2, the ESS charge in the period
tricity time-of-use price periods. The load absorbs 378 (09:00–17:00) as in this period the generated power
kWh per day from the utility grid and the purchased from the PV is at its maximum, while in the evening
cost is $48.84 per day. Also, the reliability is missing in there is not enough irradiance to generate power from
this case as if there is any fault in the utility grid, the PV so the ESS discharges the stored power. Table 3 gives
load will be disconnected. the amount of energy sold or bought from the utility
Case 2) Selling electricity, with DGs and ESS; grid. Also, it gives the costs for electricity trade with the
utility grid for the three cases.
In this case, the DGs supply the load with the required Figure 8 shows the power flow in the proposed MG
power and store the surplus power in the ESS until it in case 2 and 3. Where as shown in Figure 8(a), in
reaches the maximum capacity. If there is more power case 2, the power is purchased from the utility grid to
unexploited, it will be sold to the utility grid. Figure 7(a) cover the shortage to supply the load. On the other
illustrates that all the power is stored in the battery and no hand, Figure 8(b) shows that in case 3, the MG will
power sold to the utility grid, since the battery did not sell and buy power to/from the utility grid according
reach the maximum capacity. As shown in Table 3, the to the electricity time-of-use price periods. Table 3
system costs are reduced by 92.26% so the daily saving is shows a comparison between the three case studies
$45.06 per day; as it did not buy any power from the grid of two modes of operation in terms of minimum cost.
and the residual power stored in the ESS. The total cost, in From results, the case 3 is more effective than the
this case, is only the maintenance cost of DGs and ESS. other two cases. Where the previous analysis, and
Figure 7(a) shows that the battery discharges when the the aforementioned results indicate high potential
DGs’ power is lower than the load demand and charges savings for the total operating cost in the two modes
when the DGs’ power is higher than the load demand. of operations.
JOURNAL OF INTERNATIONAL COUNCIL ON ELECTRICAL ENGINEERING 203
Figure 7. Microgrid optimal power flow for Mode 1 (a)case 2. (b) case 3.
204 M. EL-HENDAWI ET AL.
(a)
(b)
Figure 7. (Continued).
(a)
(b)
Figure 8. Microgrid optimal power flow for Mode 2 (a)case 2. (b) case 3.
JOURNAL OF INTERNATIONAL COUNCIL ON ELECTRICAL ENGINEERING 205
Energy. In: IEEE Swarm Intelligence Symposium, microgrids. Renew Sustain Energy Rev. 2016
Honolulu, HI, 2007; pp. 250–257. 2017;69(November):9–18.
[11] Boukettaya G, Krichen L. A dynamic power manage- [17] Zhang K, Mao C, Lu J, et al. Optimal control of state-
ment strategy of a grid connected hybrid generation of-charge of superconducting magnetic energy storage
system using wind, photovoltaic and Flywheel Energy for wind power system. IET Renew Power Gener.
Storage System in residential applications. Energy. 2014;8(1):58–66.
2014;71:148–159. [18] Elsied M, Oukaour A, Gualous H, et al. An advanced
[12] Rouholamini M, Mohammadian M. Energy manage- energy management of microgrid system based on
ment of a grid-tied residential-scale hybrid renewable genetic algorithm. IEEE Int Symp Ind Electron,
generation system incorporating fuel cell and electro- Istanbul, 2014;pp. 2541–2547.
lyzer. Energy Build. 2015;102:406–416. [19] Rouholamini M, Mohammadian M. Heuristic-based
[13] Justo JJ, Mwasilu F, Lee J, et al. AC-microgrids power management of a grid-connected hybrid energy
versus DC-microgrids with distributed energy system combined with hydrogen storage. Renew
resources: A review. Renew Sustain Energy Rev. Energy. 2016;96:354–365.
2013;24:387–405. [20] Gandomi AH. Interior search algorithm (ISA): A novel
[14] Gabbar HA, El-Hendawi M, El-Saady G, et approach for global optimization. ISA Trans. 2014;53
al. Supervisory Controller for Power Management of (4):1168–1183.
AC/DC Microgrid. In: The 4th IEEE International [21] Kumar M, Rawat TK, Jain A, et al. Design of Digital
Conference on Smart Energy Grid Engineering, Differentiators Using Interior Search Algorithm.
Oshawa, ON, 2016; pp. 147–152. Procedia Comput Sci. 2015;57:368–376.
[15] Elsied M, Oukaour A, Youssef T, et al. An advanced [22] Ontario’s Independent Electricity System Operator.
real time energy management system for microgrids. [cited 2017 May 01]. Available from: http://www.ieso.
Energy. 2016;114:742–752. ca/power-data
[16] Arani AAK, Karami H, Gharehpetian GB, et al. [23] Ontario Energy Board. [cited 2017 May 01]. Available
Review of Flywheel Energy Storage Systems struc- from:https://www.oeb.ca/rates-and-your-bill/electricity-
tures and applications in power systems and rates.