You are on page 1of 5

Multi-Source Energy Mixing for Renewable Energy

Microgrids by Particle Swarm Optimization


Cemal Keles1, Baris Baykant Alagoz2, Asim Kaygusuz1
1
Department of Electrical-Electronics Engineering, Inonu University, Malatya, Turkey
2
Department of Computer Engineering, Inonu University, Malatya, Turkey
cemal.keles@inonu.edu.tr

Abstract— Distributed intelligence is one of the prominent offer efficient and reliable energy delivery under increasing
prospects of future smart grids besides distributed generation, generation and demand uncertainties. The recent studies on the
distributed storage and demand side load management. This next generation power systems continue to overcome major
study illustrates utilization of particle swarm optimization (PSO) deficiencies of old systems. Optimal and automated energy
method for cost-efficient energy management in multi-source
management is one of the key assets for today’s smart grid
renewable energy microgrids. PSO algorithm is used to find out
optimal energy mixing rates that can minimize daily energy cost researches because energy users, who will play a productive-
of a renewable microgrids under energy balance and anti- consumer (prosumers) role in the future smart grid, need faster
islanding constraints. The optimal energy mixing rates can be and optimal energy management and control systems [2-4].
used by multi-pulse width modulation (M-PWM) energy mixer Optimization techniques offer intelligent and automated
units. In our numerical analyses, we consider a multi-source solutions for planning and management of power systems and
renewable energy grid scenario that includes solar energy system, they can contribute to solutions of supply-demand balance,
wind energy system, battery system and utility grid connection. energy reliability, sustainability and cost efficiency problems.
We assume that variable energy pricing is used in utility grid to However, analytical optimization methods require accurate and
control energy dispatches between microgrids. This numerical
analysis shows that the proposed scheme can adjust energy
complete modeling of energy systems [5] and solutions of
mixing rates for M-PWM energy mixers to achieve the cost- these methods may not be practical since an accurate modeling
efficient and energy balanced management of microgrid under of systems cannot be obtained because of large scale and
varying generation, demand and price conditions. The proposed diversity of grid components, including not only power devices
method illustrates an implementation of distributed intelligence and distribution lines but also consumers and energy suppliers.
in smart grids. Therefore, future energy grid can introduce very high
uncertainty, even resulting from social, economical and
Index Terms—Intelligent systems, particle swarm optimization, physiological factors. Consequently, complete and reliable
cost efficient energy mixing, microgrid, smart grid.
modeling of complex and uncertain structure of smart grid may
not be possible in future, since increasing sophistication and
I. INTRODUCTION flexibility of smart grids, which are resulting from dynamic
Today, energy community agrees that conventional pricing, demand side load management operations, distributed
electricity grids do not fully respond demands of today's energy renewable energy generator integration and interactions of
communities. Sustainability, reliability and efficiency of prosumers. At this point, heuristic methods can present some
energy systems are the main concerns. Therefore, the smart advantageous because they do not strongly depends on
grid is shaping around these concerns to have an inhabitable mathematical models of systems and they can perform
world in future. The decrease of the fossil fuel sources and rise optimization based on set and trail method. Another advantage
of ecological issues pressurize transformation of the existing of heuristic methods is the low-computational complexity and
electricity grid to smarter energy networks. Preliminary, their algorithmic simplicity, which make them suitable for
utilization of renewable energy sources has to be increased for distributed implementations in low-cost agent based
more eco-friendly and sustainable energy grids. To deal with applications.
the intermittent generation character of renewable energy The heuristic methods can search wide ranges of a solution
sources, future’s electricity grid must benefit from the recent space independent of its complexity. This is why; they are
advances in information, communication, and control suitable for optimization problems of power systems [6].
technologies for the integration of small and large scale Previously, several popular heuristic methods such as particle
distributed generators and storage units into the utility grid [1]. swarm optimization, genetic algorithm, artificial neural
Conventional electricity grid, providing one-way energy networks, fuzzy logic, artificial bee colony, ant colony
flows from a central station to consumers, has an old algorithms have been used in various optimal energy
construction and therefore observability, controllability and management studies. PSO has been widely used in many
accordingly management of these grids are not sufficient to energy management problems; for photovoltaic, wind, diesel

978-1-5386-1880-6/17/$31.00 ©2017 IEEE

Authorized licensed use limited to: INTERNATIONAL ISLAMIC UNIVERSITY. Downloaded on August 26,2021 at 11:52:32 UTC from IEEE Xplore. Restrictions apply.
systems [7-10], for hybrid energy management of electric By considering unit energy prices, which are cs for solar
vehicles [11, 12], for optimal planning the use of household system, cw for wind system, cb for battery and cg for utility
appliances to limit domestic energy consumption and to reduce
energy costs during the day [13-15], for optimization of the grid, cost function to be optimized for a cost-efficient
long-term operation for the hybrid system [16], for the solution management of the microgrid is written as,
of the balance problem between production and consumption
[17]. A comparative evaluation of the performance of different F = α s c s E s + α w c w E w + α b cb E b + α g c g E g (2)
heuristic algorithms such as genetic algorithm, binary PSO, ant
colony algorithm, artificial bee colony, firefly algorithms [6, PSO
18] has been presented for microgrids and home energy Algorithms
management systems.
In the current study, we used PSO algorithm for optimal
planning of energy mixing rates of a multi-source renewable Mixing
Utility Rates
energy microgrid that involves solar, wind, battery systems and Load1
Grid
utility grid connection. The proposed algorithm is designed to
control Time Rate Multi-Pulse Width Modulation (TRM- Energy
PWM) energy mixer component that was introduced in [19]. Solar Mixer Load2
Simulation results show that the proposed method can achieve Energy (TRM-PWM)
the adjustment of energy mixing rates of TRM-PWM energy
mixers for the cost-efficient and energy-balanced management Wind Load3
of multi-source renewable microgrids according to instant Energy
generation, load and price data. When future predictions of
generation, demand and price profiles are provided, the method Battery Bus
can give a cost efficient management plan for microgrids. This System
study illustrates an implementation of the distributed
intelligence in microgrid management problems. Fig.1. A general architecture of optimal microgrid management systems [5,
19]

II. METHODOLOGY In the case of digital system implementation, we assume


that the mixing rate coefficients are updated with Δt time
A. Background Information for Energy Mixing by Time Rate increments by PSO algorithm. In this case, the cost function to
Multi-PWM in Renewable Microgrids minimize is written by average output power of resources for
TRM-PWM is a pulse wide modulated switching method Δt interval as [5],
that can mix energy flow from various energy sources by
allocating pulse wide duration at different time rates for several F (α ) = α s cs Ps Δt + α w cw Pw Δt + α b cb Pb Δt + α g c g Pg Δt (3)
sources [19]. Figure 1 shows a block diagram for multi-source
energy mixing systems for optimal microgrid management. where, Ps , Pw , Pb and Pg are the average output powers of
This system is composed of renewable energy sources, battery
system, loads, intelligent algorithm and TRM-PWM energy the solar system, the wind system, the battery system and the
mixer and utility grid connection. In the previous work, we utility grid, respectively. For this system, mixing rate vector is
investigated implementation of Random Search Optimization denoted by α = [α s α w α b α g ] . To avoid the energy shortage
(RSO) for cost-efficient management of renewable energy grid and possible outage risks in the grid, energy balance state
using TRM-PWM [5]. In this paper, the intelligent algorithm should be preserved by satisfying the condition of E D = EG .
block is implemented by using PSO algorithm and the
Here, E D and EG stand for the energy demand and the
management performances are investigated.
Total energy, which is a mixture of renewable energy, energy generation, respectively. To perform energy balance
battery and utility grid energy, is written as [5], action at Δt increments, by considering Eq. 1 and
PD Δt = PG Δt for energy balance, the following condition is
EG = α s E s + α w E w + α b Eb + α g E g (1) written for balancing energy demand and generation in the
grid [5].
where, α s is the mixing rate of solar energy E s , α w is the
γPD = α s Ps + α w Pw + α b Pb + α g Pg (4)
mixing rate of wind energy E w , α b is the mixing rate of
battery energy E b and α g is the mixing rate of utility grid
where, the parameter PD is the average power demand of
energy E g [19]. microgrid. The value of γ > 1 provides a virtual demand to
reduce possibility of energy shortage by allowing slight

Authorized licensed use limited to: INTERNATIONAL ISLAMIC UNIVERSITY. Downloaded on August 26,2021 at 11:52:32 UTC from IEEE Xplore. Restrictions apply.
redundant generation [3, 5, 20]. By using energy balance • Step 1: For optimization of α = [α s α w α b α g ] vector,
constraint, given by Eq. 4, we calculate the mixture rate of the
collect current value of overall generations ( EG ),
utility as,
overall demand ( E D ) and price ( cs , cw , cb , cg ) data
α g = (γPD − α~s Ps − α~w Pw − α~b Pb ) / Pg (5) from the grid.
• Step 2: Set an initial values to the position and
Accordingly, the state of α g ≤ 0 indicates islanding mode velocity of particles randomly within the search ranges.
• Step 3: Determine local best position and global best
of microgrid. For detection of islanding mode and positions by calculating costs of particles according to
automatically performing anti-islanding by the proposed objective function (Eq. 6).
method, we modified the cost function regarding to the value
• Step 4: Update particle positions by using Eq. 7 and
of α g as follows, (8).
• Step 5: If maximum number of iteration is completed,
­αs cs Ps Δt + αwcw Pw Δt + αbcb Pb Δt + αg cg Pg Δt αg > 0 end optimization, update α = [α s α w α b α g ] vector
F (α ) = ® (6)
¯ Fh αg ≤ 0 and go to Step 1. Otherwise, go to Step 3.

where, Fh is very high cost value to move particles away from To apply the optimal mixing rates to TRM-PWM energy
mixer, the following normalization should be carried out to
islanding mode solutions. Thus, PSO method keeps away the
satisfy the condition α s + α w + α b + α g = 1 for M-PWM. This
solutions of islanding mode ( α g ≤ 0 ) and exhibits anti-
normalization can be performed by,
islanding in microgrid management.
αx
B. Application of PSO Algorithm for Energy Mixing Rate αˆ x = 4
, x = {s, b, w, g} (9)
Optimization ¦α
i ={ s ,b , w , g }
i

PSO algorithm implements collective intelligence in


swarm behavior. It imitates movement of particle swarm that
are interacting locally and forming a global coherence [21]. III. A NUMERICAL STUDY FOR RENEWABLE ENERGY GRID
Motion of particles in multidimensional search space is MANAGEMENT
represented by the particle velocity vn (t ) and the particle In this section, we carry out simulation study to test the
position xn (t ) as follows, proposed method for the cost-efficient electricity management
of a domestic renewable grid. This residential system was
vn [t +1] = wvn [t] + c1r1 (xL,n [t] − xn [t]) + c2 r2 (xG,n [t] − xn [t]) (7) assumed to include solar system, wind system, battery pack
with 1 kW output power and the utility grid with 2 kW power
xn [t + 1] = xn [t ] + vn [t + 1] (8) limitations. In analysis, we used hourly generation profiles of
solar energy and wind energy systems in Fig. 2. For demand
where, x L ,n ( t ) stands for the personal best position. This profile, we used the average demand profile [22] in Fig. 3. The
parameter is the best fitting solution in the current iteration. variable energy price of utility grid is assumed to change
xG ,n (t ) stands for the global best position, which is the best according to Fig. 4.
fitting solution of all iterations. Distances to x L ,n ( t ) and
0.2
xG ,n (t ) take effect on the velocity of particles depending on
personal learning coefficients c1 and global learning 0.15
P (KW)

coefficients c2 . Parameters r1 and r2 are random numbers 0.1


Ps

that introduce slight uncertainty for particle motions and thus Pw

PSO gains undetermined searching capability. Parameter w 0.05

is the weight coefficient for particle inertias. To decrease


0
particle accelerations throughout iterations of PSO 5 10 15 20
algorithm, a damping rate ξ is needed, which is used as Hours

w[t + 1] = ξ w[t ] for inertia weight of particles [21]. Fig.2. Solar energy and wind energy generation profiles used in simulation
We applied step of PSO algorithm to adjust energy
mixing rates as follows,

Authorized licensed use limited to: INTERNATIONAL ISLAMIC UNIVERSITY. Downloaded on August 26,2021 at 11:52:32 UTC from IEEE Xplore. Restrictions apply.
0.8
PSO
0.15 Random Search
0.6
(KWh)
PPDD(KW)

0.4 0.1

F
0.2 0.05

0 0
5 10 15 20 5 10 15 20
Hours Hours
Fig.3. Demand profile of a house [22] Fig.6. Hourly optimal energy cost of microgrid

0.5
0.04
0.4 0.03

Eb (KWh)
cgridc(TL/KWh)
(KWh)

0.3 0.02
grid

0.2 0.01

0
0.1
5 10 15 20 5 10 15 20
Hours Hours

Fig.4. Dynamic electricity price profile for utility grid Fig.7. Energy balance error of microgrid

Figure 5 shows the mixing rates that are calculated by the IV. CONCLUSIONS
proposed by PSO algorithm. Figure 6 compares the calculated
energy costs for 24 hours management performed by random As summary, this paper theoretically demonstrates a
search algorithm [2] and the proposed PSO algorithm. The possible utilization of PSO algorithm to solve cost-efficient
figure indicates that PSO can further reduce the energy cost at multi-source energy mixing problem in renewable energy
hours when energy cost is high. microgrids. In our numerical analyses, we observed that the
The energy balance error of microgrid can be calculated by, proposed PSO method can adjust mixing rate coefficients to
perform cost-efficient energy mixing in multi-source
Eb = PG Δt − PD Δt (10) microgrid by TRM-PWM system. The results also indicate that
the proposed algorithm may deal with the fluctuation of
renewable energy and variability of electricity price. It can
Figure 7 shows change of balance error during simulation. respond appropriately to meet hourly changing demand and
Positive value of balance error indicates that there is not any preserve energy balance. Moreover, this energy management
energy shortage in this microgrid. Here, the virtual demand approach allows detection of islanding mode via the state of
was configured as γ = 1.05 and this leads a slight redundant α g ≤ 0 , and it can perform anti-islanding by adjusting the
generation to avoid possible energy shortage states. mixing rates according to Eq. 5.
Consequently, a small positive balance error based on virtual
demand is useful for energy reliability of microgrid. REFERENCES
[1] C. Keles, A. Karabiber, M., Akcin, A., Kaygusuz, B.B. Alagoz, and O.
1 Gul, “A smart building power management concept: Smart socket
αs
0.9
applications with DC distribution”, International Journal of Electrical
αw
Power and Energy Systems, vol. 64, pp. 679-688, 2015.
0.8 αb
αg [2] M. Shakeri, M. Shayestegan, H. Abunima, S.M.S. Reza, M.
0.7
Akhtaruzzaman, A.R.M. Alamoud, K. Sopian, and N.Amin, “An
0.6
intelligent system architecture in home energy management systems
0.5 (HEMS) for efficient demand response in smart grid”, Energy and
0.4 Buildings, vol. 138, pp. 154–164, 2017.
0.3 [3] B.B. Alagoz, A. Kaygusuz, and A. Karabiber, “A User-mode distributed
0.2
energy management architecture for smart grid applications”, Energy,
vol. 44, no. 1, pp. 167–177, 2012.
0.1
[4] A. Karabiber, C. Keles, A. Kaygusuz, and B.B. Alagoz, “An approach
0
5 10 15 20 for the integration of renewable distributed generation in hybrid DC/AC
Hours microgrids”, Renewable Energy, vol. 52, pp. 251–259, 2013.
Fig.5. Hourly cost-efficient mixing rates calculated by the proposed PSO [5] C. Keles, B.B.Alagoz, A. Kaygusuz, and S. Alagoz, “Cost efficient
algorithm multi-source energy mixing for renewable energy microgrids by random

Authorized licensed use limited to: INTERNATIONAL ISLAMIC UNIVERSITY. Downloaded on August 26,2021 at 11:52:32 UTC from IEEE Xplore. Restrictions apply.
search optimization”, International Artificial Intelligence and Data [15] S. K. Nayak, N. C. Sahoo, and G. Panda, “Demand side management of
Processing Symposium (IDAP'16), pp. 29–33, 2016. residential loads in a smart grid using 2D particle swarm optimization
[6] N.K. Paliwal, R. Mohanani, N.K. Singh, and A.K.Singh, “Demand side technique”, IEEE Power, Communication and Information Technology
energy management in hybrid microgrid system using heuristic Conference (PCITC), Bhubaneswar, India, pp. 1–6, 2015.
techniques”, IEEE International Conference on Industrial Technology [16] P.G. Trivino, F. L. Iborra, C.A. G. Vazquez, A.J.G. Mena, L.M. F.
(ICIT), pp. 1910–1915, 2016. Ramírez, and F. Jurado, “Long-term optimization based on PSO of a
[7] M. Abedini, M.H. Moradi, and S.M. Hosseinian, “Optimal management grid-connected renewable energy/battery/hydrogen hybrid system”,
of microgrids including renewable energy scources using GPSO-GM International Journal of Hydrogen Energy, vol. 39, pp. 10805–10816,
algorithm”, Renewable Energy, vol. 90, pp. 430–439, 2016. 2014.
[8] M. Sharafi, and T.Y. ELMekkawy, “Multi-objective optimal design of [17] T.F. Araújo, and W. Uturbey, “Performance assessment of PSO, DE and
hybrid renewable energy systems using PSO-simulation based hybrid PSO–DE algorithms when applied to the dispatch of generation
approach”, Renewable Energy, vol. 68, pp. 67–79, 2014. and demand”, Electrical Power and Energy Systems, vol. 47, pp. 205–
217, 2013.
[9] M. Amer, A. Namaane, and N.K. M’Sirdi, “Optimization of hybrid
renewable energy systems (HRES) using PSO for cost reduction”, [18] S. Rahim, N. Javaid, A. Ahmad, S.A. Khan, Z.A. Khan, N. Alrajeh, and
Energy Procedia, vol. 42, 318–327, 2013. U. Qasim, “Exploiting heuristic algorithms to efficiently utilize energy
management controllers with renewable energy sources”, Energy and
[10] N. Tiwari, and L. Srivastava, “Generation scheduling and micro-grid
Buildings, vol. 129, pp. 452–470, 2016.
energy management using differential evolution algorithm”,
International Conference on Circuit, Power and Computing [19] C. Keles, A. Kaygusuz, and B. B. Alagoz, “Multi-source Energy Mixing
Technologies [ICCPCT], Dist, India, pp. 1–7, 2016. by Time Rate Multiple PWM for Microgrids”, 4th International Istanbul
Smart Grids and Cities Congress and Fair, Istanbul, Turkey, pp. 11-15,
[11] S.Y. Chen, Y.H. Hung, C.H. Wu, and S.T. Huang, “Optimal energy
2016.
management of a hybrid electric powertrain system using improved
particle swarm optimization”, Applied Energy, vol. 160, pp. 132–145, [20] B.B. Alagoz and A. Kaygusuz, “Dynamic energy pricing by closed-loop
2015. fractional-order PI control system and energy balancing in smart grid
energy markets”, Transactions of the Institute of Measurement and
[12] Z. Chenghui, S. Qingsheng, C. Naxin, and L. Wuhua, “Particle Swarm
Control, vol. 38, no. 5, pp. 565–578, 2016.
Optimization for energy management fuzzy controller design in dual-
source electric vehicle”, Power Electronics Specialists Conference, pp. [21] Y.D. Valle, G.K. Venayagamoorthy, S. Mohagheghi, J.C. Hernandez,
1405–1410, 2007. and R. Harley, “Particle swarm optimization: Basic concepts, variants
and applications in power systems”, IEEE Transactions on Evolutionary
[13] M.S. Ahmed, A. Mohamed, T. Khatib, H. Shareef, R.Z. Homod, and
Computation, vol. 2, no. 2, pp. 171–195, 2008.
J.A. Ali, “Real time optimal schedule controller for home energy
management system using new binary backtracking search algorithm”, [22] C. Gokcol, E. Sunan, and B. Dursun, “Wind Energy Usage in a House in
Energy and Buildings, vol. 138, pp. 215–227, 2017. Gebze”, ELECO 2008, Symposium on Electrical-Electronics and
Computer Engineering, Bursa, Turkey, 2008.
[14] Y. Huang, L. Wang, W. Guo, Q. Kang, and Q. Wu, “Chance constrained
optimization in a home energy management system”, IEEE Transactions
on Smart Grid, doi: 10.1109/TSG.2016.2550031, pp. 1–9, 2016.

Authorized licensed use limited to: INTERNATIONAL ISLAMIC UNIVERSITY. Downloaded on August 26,2021 at 11:52:32 UTC from IEEE Xplore. Restrictions apply.

You might also like