Professional Documents
Culture Documents
A Reek Kara 2021
A Reek Kara 2021
To cite this article: Sujil Areekkara, Rajesh Kumar & Ramesh C Bansal (2021) An Intelligent
Multi Agent based Approach for Autonomous Energy Management in a Microgrid, Electric Power
Components and Systems, 49:1-2, 18-31, DOI: 10.1080/15325008.2021.1937390
Article views: 52
CONTENTS
Abstract—The integration of highly intermittent and unpredictable
1. Introduction distributed energy resources increases the complexities in the energy
management system (EMS). Therefore, the conventional control used
2. Multi Agent System (MAS)
in microgrid EMS is no more effective and requires alternative
3. Microgrid Modeling control strategies that can cope up with the new dynamics in the
4. Simulation Results and Analysis system. Adopted from computer science, a distributed artificial
5. Conclusion intelligence technique called multi agent system (MAS) can serve
this purpose well due to its inherent autonomous nature, scalability,
References flexibility, and adaptability. Consequently, in this paper, a new multi
agent based architecture for microgrid energy management system
has been proposed. The proposed model considers different
forecasting agents and a real time correction agent for microgrid
energy management. The performance of proposed MAS based
microgrid EMS modeled in a new platform called Stateflow has
been evaluated by developing different scenarios considering
resource fluctuations and load variations. The simulation results
demonstrate the effectiveness of the proposed architecture in
outperforming the conventional microgrid energy management
system and the effective usage of each component of the microgrid.
1. INTRODUCTION
A microgrid (MG) consists of a cluster of loads and dis-
tributed generators serving as a single controllable entity
that can be operated autonomously or in association with
the main grid for providing power to its local area [1]. The
addition of new renewable energy resources increases the
complexity and changes the dynamics of the system due to
highly intermittent and unpredictable nature of distributed
energy resources (DERs). Consequently, the control strat-
egies for energy management that have been used in earlier
decades need to be replenished with modern control para-
Keywords: microgrid, energy management system, multi agent system,
digms and control techniques for the smooth operation of
distributed energy resource, unit commitment the system [2–4]. The main functions of the energy man-
Received 2 December 2019; accepted 30 April 2021 agement system (EMS) in a microgrid are to ensure the
Address correspondence to Sujil Areekkara, Department of Electrical
Engineering, Rajarambapu Institute of Technology, Rajaramnagar,
power balance in the system, provide reliability, flexibility,
Maharashtra, India. E-mail: sujilavijayan@gmail.com and power quality to the system [5].
18
Areekkara et al.: An Intelligent Multi Agent based Approach for Autonomous Energy Management in a Microgrid 19
NOMENCLATURE
DSM Demand Side Management PV Photovoltaic
DG Diesel Generator PRER Portable Renewable Energy Resource
DER Distributed Energy Resources RES Renewable Energy Source
EMS Energy Management System SOC State of Charge
LF Load Forecasting UC Unit Commitment
MG Microgrid
MAS Multi Agent System
Initially, most of the researchers in the field of micro- management scheme for multiple MG by a distributed opti-
grid EMS are concentrated on conventional EMS i.e. cen- mization approach. A daily risk-based optimal scheduling
tralized control schemes. In the centralized scheme, a of reconfigurable smart microgrids in the presence of wind
microgrid central controller is used to optimize the eco- turbines for microgrid operator profit maximization is pre-
nomic power dispatch for DERs and storage system [6]. sented in [14]. The authors in [15] developed a distributed
As the number of components in the microgrid increase, control architecture for AC microgrid with renewable gen-
the central controller faces certain concerns like the eration and storage. Energy management and scheduling in
requirements of large measurements and it also increases MG by incorporating portable renewable energy resources
the complexities in solving the optimization problem. (PRER) as an option for demand response have been pro-
Moreover, the chance of single point failure is another posed in [16]. By utilizing the mixed-integer linear pro-
major concern in the centralized scheme. This single point gramming, the optimal scheduling of renewable microgrid
failure in the system can cause complete system failure and in an isolated load area has been presented in [17]. By con-
which questions the reliability of the system [6]. Although sidering communication delays and slow switching topolo-
the design of a practical centralized MG controller can be gies, the authors in [18], presented a robust neighbor-based
achieved with expert systems and heuristic algorithms, it distributed control strategy for a DC microgrid. The pro-
does not guarantee the flexibility and scalability of the sys- posed control can synchronize the voltage of the DC MG
tem [7]. to a reference value and found to be capable of optimal
When compared to centralized management, the distrib- load sharing that minimizes DER generation cost. In [19],
uted control for the microgrid energy management system proposed a distributed control scheme for the effective util-
is less complicated and more vigorous [8]. The components ization of RES in a microgrid considering noisy disturb-
of distributed management are treated as a module having ance and limited bandwidth constraints. The authors also in
enough intelligence to provide the control calculations and [20], demonstrate the frequency restoration and accurate
actions. Also, the control modules in the distributed man- load power-sharing problem of ac MG with huge penetra-
agement help to fulfill the requirements of other modules tion of distributed generators under time-delay communica-
as well as reduce the communication and computation bur- tion in noisy environments. The authors in [21] introduced
den [9]. Multi Agent System (MAS) has the capabilities a MAS-based monitoring and control system for integrated
mentioned above to solve the extremely difficult problem homes/buildings and microgrid in the presence of different
by assigning subtasks within the system in a distributed RES and loads.
manner. So, it is anticipated that a MAS based framework All the aforementioned researchers conclude that the
can help a microgrid to perform robustly in the presence of MAS based EMS can provide better efficiency and can
extremely intermittent renewable distributed resources and also manage complex distributed generators effectively due
to meet dynamic load variations. Authors in [10] developed to the capability of MAS that can give several key advan-
distributed coordinated control strategies based on a multi tages to the system as reported in [22]. Also, the authors in
agent system for large power systems. [23] proposed a MAS based decentralized control for the
As evident from the review of recent literature, the energy management of a microgrid. In [24], the authors
power system researchers are concentrating toward the suggested that distributed coordination can be implemented
implementation of multi agent systems for microgrid by utilizing a MAS with the distributed energy system and
energy management. A detailed review of MAS applica- should be coupled with hardware to find the entire agent
tions in the electrical power systems can be found in [11, based solution for distributed energy resource management.
12]. In [13], the authors have presented an energy Also, the authors have suggested that more intelligent MG
20 Electric Power Components and Systems, Vol. 49 (2021), No. 1-2
Q- Finite set of states, q0 2 Q - Initial states, F Q - deployed in real-time monitoring layer. After receiving infor-
Final states, and d : Q ! Q - Transition function. mation, the DG agents compare both and then give an intelli-
The agents and their behavior have been modeled using gent decision in a way that maintains the load requirement of
Stateflow by utilizing the concepts of state machines and the microgrid. The unit commitment agent in the system
flowchart, and the microgrid is modeled in MATLAB updates its state every hour, whereas the correction agent
Simulink in this paper. The integration of agents developed updates its values every 5 minutes. The detailed modeling of
in the Stateflow and microgrid model developed in the forecasting model used by PV and wind forecasting
Simulink in MATLAB environment and its interaction is agents are explained in [32, 33] and load forecasting agent is
shown in Figure 1. illustrated in [34].
Forecasting and Estimation Layer: This layer is con-
sidered as the top layer in the proposed scheme. The
2.2. Proposed MAS forecasting and estimation layer consists of seven
A three layer multi agent architecture namely Forecasting and types of agents (2 wind Agents, 2 PV Agents,
Estimation Layer, Control and Action Layer, and Real Time Load Forecasting (LF) Agent, Unit Commitment (UC)
Monitoring Layer is proposed for the microgrid energy man- Agent and a State of Charge (SOC) Agent). The input
agement as illustrated in Figure 2. The different agents with to this layer is historical data PV, historical data of
particular responsibilities have been deployed in three layers wind, historical load values, and current estimated
in the proposed architecture for energy management in MG. SOC information.
Control and Action Layer: This layer is viewed as
In the proposed scheme, the unit commitment agent receives
the middle layer in the proposed agent architecture. In
the forecasted power availability of RES, forecasted load and
this layer, diesel generator and battery agents are
State of Charge (SOC) information from the forecasting and
deployed, and the input to this layer is the information
estimation agents. After having received the information from from the bottom layer and the top layer.
the respective agents, it takes unit commitment decisions and Real Time Monitoring Layer: This layer is consid-
sends control signals to the diesel generator agents and bat- ered as the bottom layer in the proposed scheme where
tery agents. Each diesel generator agents in the system also the correction agent is deployed. The inputs to this
collect the information from correction agents that are layer are real time information from the microgrid.
22 Electric Power Components and Systems, Vol. 49 (2021), No. 1-2
Component Rating system, the unit commitment agent receives the forecasted
output power of PV farm from PV agents, the forecasted
Diesel Generator 1 2.5 MW power output of the wind farm from wind agents and
Diesel Generator 2 1000 kW upcoming load demand information from LF agent and the
Diesel Generator 3 500 kW
Diesel Generator 4 500 kW
current state of charge of the battery from SOC agent.
Wind Farm 1 250 kW After receiving the required information from the wind
Wind Farm 2 250 kW agent, PV agent, LF agent, and SOC agent respectively,
PV Farm 1 500 kW the unit commitment agent takes decisions to activate the
PV Farm 2 500 kW diesel generators to fulfill the load demand of the micro-
Battery 10800 Ah
grid. The decision carried out by the unit commitment
Residential Load 1.14 MW
Commercial Load 0.2 MW agent is transferred to each DG agents. The UC agent pro-
vides unit commitment decision in every one hour span for
TABLE 1. Model parameters.
24 hours. The decision-making process of the unit commit-
ment agent is represented as in Eq.(1) and Eq.(2). where
Preq is the required power to fulfill the load in the micro-
The function of each agents in the system are grid after the complete utilization of renewable distributed
as follows: energy resources. PPVA1 , PPVA2 , PWA1 and PWA2 respect-
ively represent the forecasted output power of the PV
and wind received from the forecasting and estimation
2.2.1. PV Agent. PV Agent forecasts the PV active power
layer. The PDG1max , PDG2max , PDG3max and PDG4max are the
output of the current hour from the historical data and
maximum power generation capacity of the diesel gener-
other heterogeneous factors and gives information to the
ators can be found in Table 1. The DG1on , DG2on , DG3on
unit commitment agent for further decision making.
and DG4on represent the respective diesel generator
which should be activated to fulfill the load requirement
2.2.2. Wind Agent. Wind agent gives the forecasted infor- of the microgrid.
mation of wind active power output of the present hour to
the unit commitment agent. Preq ¼ PLFA ðPPVA1 þ PPVA2 þ PWA1 þ PWA2 Þ (1)
8
>
> Preq < 0 ; FullfillLoad þ ChargeBattery
>
>
>
> Preq > 0 ; DG1on
<
UCD ¼ Preq PDG1max > 0 ; DG1on þ DG2on (2)
>
>
>
> Preq PDG1max PDG2max > 0 ; DG1on þ DG2on þ DG3on
>
>
:
Preq PDG1max PDG2max PDG3max > 0 ; DG1on þ DG2on þ DG3on þ DG4on
2.2.3. LF Agent. The LF agent is modeled to give the 2.2.6. Correction Agent. The requirement of correction
information of the load forecast for the current hour to the agent in the system is mainly because taking into account
unit commitment agent. that the control period is one hour for the unit commitment
decision from the unit commitment agent and that the fore-
2.2.4. Soc Agent. The SOC agent will give the current state cast of the renewable energy sources used (photovoltaic
of charge (SOC) of the battery to the unit commitment and wind farms) and residential loads are usually very
agent. The battery SOC is calculated as in [35]. inaccurate due to their high volatility. How the power bal-
ance can be assured in the microgrid? Let us consider, for
2.2.5. Unit Commitment Agent. The function of the unit example, the sudden lack of energy in the microgrid within
commitment agent is to provide the diesel generators dis- the control period, when the diesel generators are not acti-
patch strategy in the proposed MG EMS. In the proposed vated (the forecast did not indicate the necessity to activate
Areekkara et al.: An Intelligent Multi Agent based Approach for Autonomous Energy Management in a Microgrid 23
8
>
> 0; DPreq 0
>
> PDG1 ; DPreq > 0
<
PDG ¼ PDG1 þ PDG2 ; DPreq PDG1ðmaxÞ > 0 (11)
>
>
>
> P DG1 þ P DG2 þ P DG3 ; DP req PDG1ðmaxÞ PDG2ðmaxÞ > 0
:
PDG1 þ PDG2 þ PDG3 þ PDG4 ; DPreq PDG1ðmaxÞ PDG2ðmaxÞ PDG3ðmaxÞ > 0
tial load demand and commercial load demand (Ppv1 , Ppv2 , where, PDG1ðmaxÞ , PDG2ðmaxÞ , PDG3ðmaxÞ , PDG4ðmaxÞ are the
Pwind1 , Pwind2 , PLoad , PCload ) respectively as in Eq.(5-10) and maximum power capacities of diesel generator 1, diesel
then determines the required power DPreq to be produced generator 2, diesel generator 3 and diesel generator 4
to fulfill the power balance in system as in Eq.(3). respectively as represented in Table 1.
The total renewable energy power is calculated as shown
in Eq. (4).
2.2.7. DG Agents. The DG agents in the system receive the
DPreq ¼ PLoad þ PCload PRes (3) UC decision from the UC agent for the next hour and the
PRes ¼ Ppv1 þ Ppv2 þ Pwind1 þ Pwind2 (4) status of the generator to be activated to fulfill the power
3 requirement of the microgrid in every 5 minutes. After
Ppv1 ¼ kVpv1 k kIpv1 k cos ð/Vpv1 /Ipv1 Þ (5)
2 receiving both the information from the unit commitment
3 agent and correction agent, the DG agents recognize if
Ppv2 ¼ kVpv2 k kIpv2 k cos ð/Vpv2 /Ipv2 Þ (6)
2 there is any necessity to alter the decision from the unit
24 Electric Power Components and Systems, Vol. 49 (2021), No. 1-2
activated by the proposed multi agent system to fulfill the 4.3. Scenario 3
requirement of microgrid during the same time. As soon as In scenario 3, to show the effect of commercial load in the
the diesel generator 1 and the other distributed energy system, an asynchronous machine having a power
28 Electric Power Components and Systems, Vol. 49 (2021), No. 1-2
Power System
the microgrid in presence and absence of proposed MAS
Scenario loss in % efficiency in % based energy management system separately is shown in
Figure 14(a) and Figure 14(b). In Figure 14(b) it can be
S1 3.6971 96.30 clearly seen that the diesel generator 1 is active during
S2 4.0512 95.95
the complete duration of the simulation. Whereas, in the
S3 3.7093 96.29
case of diesel generator 2 which is activated at
TABLE 2. Performance of proposed MG EMS in different 18:00 hours and deactivated after a greater duration than
scenario.
in the scenario 1 because of the commercial load intro-
duced in the scenario at 20 hours, which increases the
consumption of 0.2 MW was introduced in the system at total load requirement of the microgrid as compared to
20:00 hours of simulation using a circuit breaker as repre- scenario 1. So, here the proposed multi agent system iden-
sented in Figure 5(d). This scenario is created to analyze tifies the variation in load and acts accordingly to provide
the performance of microgrid with proposed multi agent the power balance in the system by activating the diesel
system based energy management system during the sud- generator 2. In this scenario, also the DG 3 and DG 4 are
den variation in load. Figure 12(a) and (b) displays the out- completely offline during the entire simulation, and DG2
put power generated from the PV farm and the output provides power only for some duration. This result indi-
power generated by the wind farm respectively in scenario cates that the proposed multi agent scheme can effectively
3. The load profile illustrated in Figure 5(c) (residential act to the load changes in the system and utilize the diesel
power demand) and Figure 5(d) (demand of commercial generator effectively.
loads) together have been considered in the simulation for
scenario 3. Figure 13 shows the state of charge of the bat-
tery during 24-hours simulation in scenario 3. 4.4. Microgrid Performance Evaluation
The battery control in this scenario also works as The microgrid efficiency is evaluated as expressed in Eq.
explained in scenario 1 and scenario 2. The output power (12) and the the percentage of power losses in the micro-
produced by diesel generators to meet the load demand of grid system is calculated using Eq.(13).
Areekkara et al.: An Intelligent Multi Agent based Approach for Autonomous Energy Management in a Microgrid 29
[10] C.-X. Dou, D.-W. Hao, B. Jin, W.-Q. Wang and N. An, [23] M. R. B. Khan, R. Jidin and J. Pasupuleti, “Multi-agent
“Multi-agent-system-based decentralized coordinated control based distributed control architecture for microgrid energy
for large power systems,” Int. J. Elect. Power Energy Syst., management and optimization,” Energy Conversion Manag.,
vol. 58, pp. 130–139, 2014. DOI: 10.1016/j.ijepes.2014.01.012. vol. 112, pp. 288–307, 2016. DOI: 10.1016/j.enconman.
[11] A. Sujil, J. Verma and R. Kumar, “Multi agent system: 2016.01.011.
Concepts, platforms and applications in power systems,” [24] T. Logenthiran, D. Srinivasan and D. Wong, “Multi-agent
Artif. Intell. Rev., vol. 49, no. 2, pp. 153–182, 2018. DOI: coordination for DER in Microgrid, in: IEEE International
10.1007/s10462-016-9520-8. Conference on Sustainable Energy Technologies,” in
[12] S. D. McArthur, et al., “Multi-agent systems for power engin- ICSET, IEEE, 2008, pp. 77–82.
eering applications part i: Concepts, approaches, and technical [25] L. Raju, R. Milton and S. Mahadevan, “MAS based model-
challenges,” IEEE Trans. Power Syst., vol. 22, no. 4, pp. ing and implementation of dynamic energy management of
1743–1752, 2007. DOI: 10.1109/TPWRS.2007.908471.
smart microgrid using macsimjx,” Scientific World J., vol.
[13] T. Liu, X. Tan, B. Sun, Y. Wu and D. H. Tsang, “Energy
2016, pp. 1–14, 2016. DOI: 10.1155/2016/9858101.
management of cooperative microgrids: A distributed opti-
[26] A. Sujil, S. K. Agarwal and R. Kumar, “Centralized multi-
mization approach,” Int. J. Elect. Power Energy Syst., vol.
agent implementation for securing critical loads in PV based
96, pp. 335–346, 2018. DOI: 10.1016/j.ijepes.2017.10.021.
[14] M. Hemmati, B. Mohammadi-Ivatloo, S. Ghasemzadeh and microgrid,” J. Mod. Power Syst. Clean Energy, vol. 2, no.
E. Reihani, “Risk-based optimal scheduling of reconfigur- 1, pp. 77–86, 2014. DOI: 10.1007/s40565-014-0047-1.
able smart renewable energy based microgrids,” Int. J. [27] A. Sujil, S. Choudhary, J. Verma and R. Kumar, “Agent
Elect. Power Energy Syst., vol. 101, pp. 415–428, 2018. based intelligent fault detection, isolation and restoration in
DOI: 10.1016/j.ijepes.2018.04.005. smart power system,” in IEEE Students’ Conference on
[15] Y. Gao and Q. Ai, “Distributed cooperative optimal control Electrical, Electronics and Computer Science (SCEECS),
architecture for ac microgrid with renewable generation and IEEE, 2016, pp. 1–6.
storage,” Int. J. Elect. Power Energy Syst., vol. 96, pp. [28] A. Sujil, S. K. Agarwal, R. Kumar, Feasibility study of cen-
324–334, 2018. DOI: 10.1016/j.ijepes.2017.10.007. tralized multi-agent self-healing power system with super-
[16] V. S. Tabar, M. A. Jirdehi and R. Hemmati, “Energy man- conducting fault current limiter,” Technol. Econ. Smart
agement in microgrid based on the multi objective stochastic Grids Sustain. Energy, vol. 1, no. 1, pp. 1–12, 2016. DOI:
programming incorporating portable renewable energy 10.1007/s40866-015-0002-x.
resource as demand response option,” Energy, vol. 118, pp. [29] F. J. Sequeira, A. A. Mallya, S. Hebbar, A. Shetty and D.
827–839, 2017. DOI: 10.1016/j.energy.2016.10.113. Divakar, Design of 4 bit 4 pulse finite state machine serial
[17] H. Morais, P. Kadar, P. Faria, Z. A. Vale and H. Khodr, adder, in Third IEEE International Conference on Advances
“Optimal scheduling of a renewable micro-grid in an iso- in Electrical, Electronics, Information, Communication and
lated load area using mixed-integer linear programming,” Bio-Informatics (AEEICB), 2017., pp. 18, 20.
Renew. Energy, vol. 35, no. 1, pp. 151–156, 2010. DOI: 10. [30] D. R. Wright, Finite state machines. 2005. URL http://www4.
1016/j.renene.2009.02.031. ncsu.edu/drwrigh3/docs/courses/csc216/fsm-notes.pdf
[18] J. Lai, X. Lu, X. Yu, A. Monti and H. Zhou, “Distributed [31] S. Masina, K. Y. Lee and R. Garduno-Ramirez, “An archi-
voltage regulation for cyber-physical microgrids with cou- tecture of multi-agent system applied to fossil-fuel power
pling delays and slow switching topologies,” IEEE Trans. unit,” in IEEE Power Engineering Society General Meeting,
Syst. Man Cybern., Syst., vol. 50, no. 1, pp. 100–110, 2020.
IEEE, 2004, pp. 1982–1988.
DOI: 10.1109/TSMC.2019.2924612.
[32] J.-S. Jang, “ANFIS: Adaptive-network-based fuzzy inference
[19] J. Lai and X. Lu, “Nonlinear mean-square power sharing
system,” IEEE Trans. Syst., Man, Cybern., vol. 23, no. 3,
control for AC microgrids under distributed event
pp. 665–685, 1993. DOI: 10.1109/21.256541.
detection,” IEEE Trans. Ind. Inf., vol. 17, no. 1, pp.
[33] A. Sujil, R. Kumar and R. C. Bansal, “FCM clustering-
219–229, Jan. 2021. DOI: 10.1109/TII.2020.2969458.
ANFIS-based PV and wind generation forecasting agent for
[20] J. Lai, X. Lu and X. Yu, “Stochastic distributed frequency
and load sharing control for microgrids with communication energy management in a smart microgrid,” J. Eng., vol.
delays,” IEEE Syst. J., vol. 13, no. 4, pp. 4269–4280, 2019. 2019, no. 18, pp. 4852–4857, 2019. DOI: 10.1049/joe.2018.
DOI: 10.1109/JSYST.2019.2901711. 9323.
[21] A. Anvari-Moghaddam, A. Rahimi-Kian, M. S. Mirian and [34] C. Holmes and B. Mallick, “Bayesian regression with multi-
J. M. Guerrero, “A multi-agent based energy management variate linear splines,” J R. Statist. Soc. B, vol. 63, no. 1,
solution for integrated buildings and microgrid system,” pp. 3–17, 2001. DOI: 10.1111/1467-9868.00272.
Appl. Energy, vol. 203, pp. 41–56, 2017. DOI: 10.1016/j. [35] A. Sujil and R. Kumar, “Smart micro grid test system for
apenergy.2017.06.007. agent based energy management system,” IEEE Seventh
[22] C.-X. Dou, W.-Q. Wang, D.-W. Hao and X.-B. Li, “MAS- India International Conference on Power Electronics
based solution to energy management strategy of distributed (IICPE-2016), 2016.
generation system,” Int. J. Elect. Power Energy Syst., vol. [36] Wind, PV data, https://www.renewables.ninja, Accessed:
69, pp. 354–366, 2015. DOI: 10.1016/j.ijepes.2015.01.026. April 26, 2017.
Areekkara et al.: An Intelligent Multi Agent based Approach for Autonomous Energy Management in a Microgrid 31