Next Article in Journal
The Impact of Carbon Emission Trading on Renewable Energy: A Comparative Analysis Based on the CGE Model
Next Article in Special Issue
A Comparative Study of Load Frequency Regulation for Multi-Area Interconnected Grids Using Integral Controller
Previous Article in Journal
Types of E-Consumers and Their Implications for Sustainable Consumption—A Study of the Behavior of Polish E-Consumers in the Second Decade of the 21st Century
Previous Article in Special Issue
Neural Networks Based Dynamic Load Modeling for Power System Reliability Assessment
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Multi Level Dynamic Decomposition Based Coordinated Control of Electric Vehicles in Multimicrogrids

by
Muhammad Anique Aslam
1,*,
Syed Abdul Rahman Kashif
1,
Muhammad Majid Gulzar
2,3,
Mohammed Alqahtani
4 and
Muhammad Khalid
3,5,6,*
1
Department of Electrical Engineering, University of Engineering and Technology, Lahore 54890, Pakistan
2
Department of Control & Instrumentation Engineering, King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia
3
Interdisciplinary Research Center for Renewable Energy and Power Systems (IRC-REPS), King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia
4
Department of Industrial Engineering, King Khalid University, Abha 62529, Saudi Arabia
5
Electrical Engineering Department, King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia
6
SDAIA-KFUPM Joint Research Center for Artificial Intelligence, King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia
*
Authors to whom correspondence should be addressed.
Sustainability 2023, 15(16), 12648; https://doi.org/10.3390/su151612648
Submission received: 15 July 2023 / Revised: 8 August 2023 / Accepted: 16 August 2023 / Published: 21 August 2023

Abstract

:
This paper presents a novel tetra-level dynamic decomposition-based control approach for coordinated operation of electric vehicles in multimicrogrids, which is comprehensive, generic, modular, and secure in nature, to maximize the utilization of renewable energy sources, while meeting the load demands with the resources available. There are a number of microgrids that are connected to the grid. Each microgrid consists of a number of renewable energy sources, energy storage systems, non-renewable energy sources, electric vehicles, and loads. Each distributed energy source or load is controlled by a microsource controller. All microsource controllers with a similar nature are controlled by a unit controller, and all the unit controllers in a microgrid are controlled by a microgrid controller. There is a single multimicrogrid controller at the top. The proposed control scheme was verified through simulation-based case studies.

1. Introduction

Electric vehicles (EVs) are continuously increasing in use as promising alternatives to conventional fossil fuel based vehicles, due to their low pollution and operational cost [1,2,3]. These advantages can only be gained if the charging of EVs is controlled properly. There is no economical benefit if EVs are not charged smartly. For example, an EV charged from a coal power plant will produce more pollution than a conventional fossil-fuel-based EV [4,5,6,7,8]. On the other hand, EVs with high parking hours (22 on average [9]) act as mobile energy storage that can be deployed to support a conventional grid [10,11,12,13,14]. Thus, it is the need of the hour to devise smart control strategies that can charge EVs, especially from renewable energy sources (RESs) and support the conventional grid. As far as the integration of RESs is concerned, microgrids (MGs) have proven to be the best option [15,16]. A MG consists of distributed energy sources (DESs) and storage that are controlled to supply the assigned load, with or without the conventional grid [17,18,19,20,21,22,23,24]. Proper control of such a system will enhance the penetration of RESs, by removing their intermittency. This can also be utilized for EVs. A number of interconnected MGs form multimicrogrids (MMGs) that provide more flexibility compared to a single MG if controlled properly [25,26,27,28,29,30].
A number of methods have been proposed in the literature to control the operation of EVs integrated into MGs. Reference [31] presented a double-loop optimized cooperative control scheme for economic dispatch and capacity allocation of RESs and EVs in a MMG environment, using an improved particle swarm optimization algorithm. Reference [32] proposed an optimal control strategy for a MG consisting of solar panels, a wind turbine, pumped hydro storage system, and EVs, using a modified whale-optimization-based metaheuristic algorithm. Reference [33] proposed a modified dragon fly algorithm to minimize the operational cost of a MG consisting of RESs, energy storage systems (ESSs), EVs, and loads. Support vector regression was used to estimate the charging demands of EVs for a period of one day. Reference [34] presented an optimized operation of a Monte Carlo simulation-based MG model consisting of RESs, energy storage units (ESUs), EVs, and loads, considering technical constraints under different uncertainties using a modified sparrow search algorithm. Reference [35] designed an atom-search-optimization-based tilt integral derivative controller, to enhance the load frequency response of a MMG incorporating EVs. In [10], a centralized energy management system was proposed to support faulty MGs by using EVs available in normal MGs, to improve the resiliency of the network. Reference [36] presented a model predictive control of a MG consisting of EVs, microturbines, and a battery-based energy storage system (BESS) in a hierarchical manner. The higher level control was responsible for long-term energy scheduling, while the low level control maintained the load frequency control in the short term. Reference [37] proposed a two-layered control of EVs in MMGs. The top layer is the MMG layer that deals with incoming vehicles, while the bottom layer is the EV layer that controls the charging process. The control is based on a column and constraint generation algorithm for a mixed integer linear program based problem. Uncertainties are dealt with using a neural network data obtained from historical profiles. Reference [38] presented a two-level control of MMGs comprised of EVs using a back propagation neural network forecasting of EV data. In the MMG layer, a multi-objective problem aimed at minimizing transmission losses, operating costs, and carbon emissions is solved with an adaptive multi-objective evolutionary algorithm, while the MG layer uses a consistency algorithm for economic dispatching. In [39], a master slave control was proposed for a power system having integrated RESs, which was capable of operating under faults. The authors in [40] proposed genetic-algorithm-based day ahead scheduling of EVs in MMGs in grid-connected and islanded modes. Reference [41] proposed a two-level control of grid-connected MGs based on particle swarm optimization. First, the grid load is optimized, in order to minimize the total cost and maximize the penetration of RESs and the profit. Second, the EVs are treated as shiftable loads, to satisfy the dispatch of the first layer. Reference [9] presented a two-step control of EVs in MMGs. In the first step, a centralized controller allocates the charging/discharging schedule to the EV aggregator in each MG. In the second step, the EV aggregator schedules each EV under its influence with minimum switching transitions. In [42], the authors presented a three-step approach to using EVs for resilience improvement of MMGs in the event of contingencies. In the first step, a central control acquires the available and required power from EVs, while the power is shared by the grid-connected MGs with their islanded counterparts. In the last step, each MG controls its own EVs to meet the demand of the central controller. Reference [43] also aimed to increase the grid resilience through coordinated operation of EVs in MMGs using day ahead scheduling and a rolling horizon approach. Reference [44] presented a two-level hierarchical control of residential MGs integrated into a distribution network. In [45], a similar control approach was presented for hybrid MGs based on a flower pollination algorithm. Uncertainties were modeled intelligently using historical data. Reference [46] presented a two-level control of MMGs using deep neural networks. The computational burden was reduced by estimating the parameters of MGs, instead of calculating the probabilistic power flow. The authors presented a two-level multi-objective non-linear control for a DC/DC converter connected between a high voltage and low voltage bus in [47]. The low level control tracks the references selected by the high level control. Moreover, ref. [48] presented an adaptive sliding mode control for achieving multiple control tasks based on supervisor selection. Similarly, ref. [49] used a Lagrange-multiplier-based method for coordinated operation of hydrothermal units in an HVDC environment. Such control strategies can be adapted to integrate EVs into MMGs. Reference [1] proposed a decentralized model predictive control of EVs in bipolar DC MGs using their charging profiles. Similarly, ref. [50] used a fuzzy-logic-based controller to model and control a hybrid power system. Reference [51] proposed a particle swarm and interior point iterative distributed algorithm for optimal operation of MMGs. Similarly, ref. [52] optimized the operating cost of MGs having RESs and ESSs using mixed integer programming with quadratic constraints. Reference [53] proposed a multi-objective-based central control scheme to optimize the power flow in a DC MG consisting of a wind energy source, EV, load, and ESU, to minimize costs and maximize the state of charge (SoC) of the EV. In [54], the estimation of the SoC of EV batteries was presented using Kalman filtering and neural networks. Similarly, ref. [55] used machine learning to estimate the battery degradation of EVs. Reference [56] minimized the cost and voltage fluctuations in a MG using a multi-objective stochastic optimization and ref. [57] presented a similar mixed integer linear programming based control of multi-energy MGs.
It is clear from the above discussion that most researchers have used a centralized control structure among the available control structures (centralized, decentralized, distributed, or hierarchical), with offline centralized control schemes for fixed participants to coordinate the operation of EVs in an MMG. Keeping in view these limitations, this paper presents a novel tetra-level dynamic control approach for coordinated operation of EVs in MMGs. The major contributions of this paper are as follows:
  • This paper presents a novel hierarchical control of EVs in MMGs that combines the benefits of both centralized and distributed control [16,58,59];
  • The proposed control approach is based on the decomposition principle. This imparts a certain level of independence to the controllers at different levels of the hierarchy. If one controller fails, other controllers continue to work;
  • The proposed control scheme is real-time in nature. Thus, it can handle uncertainties;
  • The proposed control scheme intends to maximize the utilization of RESs, while meeting the load requirements within the available resources; thus, minimizing the operational costs and maximizing the load satisfaction;
  • The proposed control scheme provides a comprehensive control of EVs, keeping MMGs in view with five different modes of operation, as mentioned below:
    Minimum time charging mode of operation;
    Minimum time fixed cost charging mode of operation;
    Minimum cost charging mode of operation;
    Maximum SoC fixed cost charging mode of operation;
    Grid support mode of operation;
  • The proposed control scheme is generalized with respect to different types of EVs and optimization techniques for their scheduling;
  • The proposed control scheme is modular as far as the number of EVs is concerned;
  • The proposed control scheme supports plug and play capability for EVs;
  • The proposed control scheme makes possible the utilization of simple computational resources with dynamic-decomposition-based hierarchical control;
  • The proposed control scheme intends to minimize the exchange of information, to ensure the maximum possible privacy for EVs.
   The rest of this paper is laid out as follows: Section 2 presents the proposed control methodology. Section 3 discusses the results of applying the proposed control technique to a MMG. Section 4 concludes the paper, while listing some points for the future work.

2. Proposed Control Methodology

Figure 1 shows the structure of the MMG under consideration. There are a number of MGs that are connected to the grid at the point of common coupling (PCC). Each MG consists of a number of RESs, ESSs, EVs, non-renewable energy sources (NRESs), and loads. Each DES or load is controlled by a microsource controller (MC). All MCs with a similar nature are put under a unit controller (UC). Therefore, there are five UCs; namely, a renewable energy source unit controller (RESC), energy storage system unit controller (ESSC), electric vehicle unit controller (EVC), non-renewable energy source unit controller (NRESC), and load unit controller (LC). All UCs are controlled by a MG controller (MGC). There is a single MMG controller (MMGC) at the top.
Figure 2 represents the detailed layout of the proposed MMG control structure. Each RES conveys the available apparent power S res , avb , i to the respective UC. Based on this information, the RESC informs the MGC about the total power available from the RESs ( S res , avb , mg , i ). Each ESU conveys the upper ( S o C ul , ess , i ) and lower ( S o C ll , ess , i ) limits of SoC and rated power ( S ess , rtd , i ) to its UC, which calculates the current SoC ( S o C ess , i ) and power of the units capable of charging ( S ess , co , avb , mg , i ), discharging ( S ess , do , avb , mg , i ), or both ( S ess , cd , avb , mg , i ) in the respective MG. Each EV informs about its capacity ( C ev , i ), rated power ( P r , ev , i ), initial ( S o C i , ev , i ), final ( S o C f , ev , i ), minimum ( S o C min , ev , i ) and maximum ( S o C max , ev , i ) SoC, payable cost ( c o s t ev , i ), and mode of operation ( m ev , i ), along with the arrival ( t a , ev , i ) and departure ( t d , ev , i ) times. EVC performs dynamic scheduling of EVs accordingly and conveys the required or available power of each EV ( P ev , i ) to the EVC. The NRESC takes the available rated power of each NRES ( S nres , rtd , i ) to its MGC. The LC informs its MGC about the total load of the MG. The MGC, having all the available and required powers, decides whether to offer and/or request from the other MGs via the MMGC. The MMGC receives information about the available and required resources from each MG and schedules the most suitable resources of a MG to supply the other MG/s, where needed. Such a MMG control system is versatile in operation, generalized as far as the MGs and microsources are concerned, modular as far as the number of participants is concerned, and secure as far as the exchange of information is concerned. Versatility or operational comprehensiveness results from the fact that each DES can be controlled in its own particular way or ways by means of a separate MC, which then aggregate with similar MCs in the form of an UC. Thus, there are no restrictions from other participants on the way a particular MC operates. This fact will become more evident when we present the different modes of operation of an EV in Section 2.3. The generalization characteristic results from the fact that the control parameters do not depend on the structure of the participating entities. The modularity stems from the fact that the number of EVs can increase or decrease. The security results from the fact that particular information is shared with the respective unit controller only. Above the unit controller level, only the available and required power information is conveyed or received at an aggregated level. This makes the local DES unit information unavailable to the controllers at MG level. Similarly no information about the type, structure, or nature of the participating MG is conveyed to the MMGC.
In the following, we describe the control algorithms for the MMGC, MGC, and EVC, which collectively coordinate in a dynamic and hierarchically decomposable manner, to control the operation of the EVs in a MMG.

2.1. Multimicrogrid Controller (MMGC)

The MMGC receives information about the available power from each resource type (i.e., RESs, NRESs, ESUs, and EVs) that the particular MGC makes available for exchange with other MGs, as well as the load (active and reactive) that the particular MGC is not able to supply from its own resources. The MMGC checks each MG for one of the following three cases (see Algorithm 1):
In the case of an active power requirement alone, the MMGC allocates power from the available resources in a predefined order, in such a way that the resources from the nearby MG are used preferably. This can be achieved by following the steps mentioned below:
Algorithm 1 Proposed MMGC Algorithm
  • Construct the MMG matrix ( M mmg ) with i t h row having S res , avb , mmg , i , P ev , avb , mmg , i , S ess , d , avb , mmg , i , S nres , avb , mmg , i , P req , mg , i and Q req , mg , i
  • for for each microgrid i do
  •    if only active power is required then
  •      if  S res , avb , mmg M mmg ( i , 5 )  then
  •         Check the nearby MGs one by one
  •         if  M mmg ( N nmg , 1 ) M mmg ( i , 5 )  then
  •           Operate the required portion of RESs of the nearby MG available at MMG level to supply the MG under consideration
  •         else
  •           Operate all RESs of the nearby MG available at MMG level to supply the MG under consideration
  •         end if
  •    else if S res , avb , mmg + P ev , avb , mmg M mmg ( i , 5 ) then
  •         Operate all RESs of all the nearby MGs available at MMG level to supply the MG under consideration
  •         Check the nearby MGs one by one
  •         if  M mmg ( N nmg , 2 ) M mmg ( i , 5 )  then
  •           Operate the required portion of EVs of the nearby MG available at MMG level to supply the MG under consideration
  •         else
  •           Operate all EVs of the nearby MG available at MMG level to supply the MG under consideration
  •         end if
  •    end if  S res , avb , mmg + P ev , avb , mmg + S ess , avb , mmg M mmg ( i , 5 ) then
  •         Operate all RESs and EVs of all the nearby MGs available at MMG level to supply the MG under consideration
  •         Check the nearby MGs one by one
  •         if  M mmg ( N nmg , 3 ) M mmg ( i , 5 )  then
  •           Operate the required portion of ESUs of the nearby MG available at MMG level to supply the MG under consideration
  •         else
  •           Operate all ESUs of the nearby MG available at MMG level to supply the MG under consideration
  •         end if
  •    else if S res , avb , mmg + P ev , avb , mmg + S ess , avb , mmg + S nres , avb , mmg N nmg ( i , 5 ) then
  •         Operate all RESs, EVs and ESUs of all the nearby MGs available at MMG level to supply the MG under consideration
  •         Check the nearby MGs one by one
  •         if  M mmg ( N nmg , 4 ) M mmg ( i , 5 )  then
  •           Operate the required portion of NRESs of the nearby MG available at MMG level to supply the MG under consideration
  •         else
  •           Operate all NRESs of the nearby MG available at MMG level to supply the MG under consideration
  •         end if
  •      else
  •         Operate all RESs, EVs, ESUs and NRESs of all the nearby MGs available at MMG level to supply the MG under consideration.
  •      end if
  •    else if only reactive power is required then
  •      if  S res , avb , mmg M mmg ( i , 6 )  then
  •         Check the nearby MGs one by one
  •         if  M mmg ( N nmg , 1 ) M mmg ( i , 6 )  then
  •           Operate the required portion of RESs of the nearby MG available at MMG level to supply the MG under consideration
  •         else
  •           Operate all RESs of the nearby MG available at MMG level to supply the MG under consideration
  •         end if  S res , avb , mmg + S ess , avb , mmg M mmg ( i , 6 )
  •         Operate all RESs of all the nearby MGs available at MMG level to supply the MG under consideration
  •         Check the nearby MGs one by one
  •         if  M mmg ( N nmg , 3 ) M mmg ( i , 6 )  then
  •           Operate the required portion of ESUs of the nearby MG available at MMG level to supply the MG under consideration
  •         else
  •           Operate all ESUs of the nearby MG available at MMG level to supply the MG under consideration
  •         end if
  •    else if S res , avb , mmg + S ess , avb , mmg + S nres , avb , mmg N nmg ( i , 6 ) then
  •         Operate all RESs and ESUs of all the nearby MGs available at MMG level to supply the MG under consideration
  •         Check the nearby MGs one by one
  •         if  M mmg ( N nmg , 4 ) M mmg ( i , 6 )  then
  •           Operate the required portion of NRESs of the nearby MG available at MMG level to supply the MG under consideration
  •         else
  •           Operate all NRESs of the nearby MG available at MMG level to supply the MG under consideration
  •         end if
  •      else
  •         Operate all RESs, ESUs and NRESs of all the nearby MGs available at MMG level to supply the MG under consideration.
  •      end if
  •    else if both active and reactive powers are required then
  •      if  S res , avb , mmg ( ( M mmg ( i , 5 ) ) 2 + ( M mmg ( i , 6 ) ) 2 )  then
  •         Check the narby MGs one by one
  •         if  M mmg ( N nmg , 1 ) M mmg ( i , 5 ) ) 2 + ( M mmg ( i , 6 ) ) 2  then
  •           Operate the required portion of RESs of the nearby MG available at MMG level to supply the MG under consideration
  •         else
  •           Operate RESs of the nearby MG available at MMG level at the load power factor
  •         end if
  •      else
  •         Operate RESs of all the nearby MGs available at MMG level at the load power factor
  •         if  P ev , avb , mmg M mmg ( i , 5 )  then
  •           Check the nearby MGs one by one
  •           if  M mmg ( N nmg , 5 ) M mmg ( i , 5 )  then
  •              Operate the required portion of EV resources of the nearby MG available at MMG level to supply the MG under consideration
  •           else
  •              Operate EVs of the nearby MG available at MMG level to supply the MG under consideration
  •           end if
  •           if  S ess , avb , mmg M mmg ( i , 6 )  then
  •              Check the nearby MGs one by one
  •              if  M mmg ( N nmg , 3 ) M mmg ( i , 6 )  then
  •                Operate the required portion of ESS of the nearby MG available at MMG level to supply the reactive power to the MG under consideration
  •              else
  •                Operate ESSs of the nearby MG available at MMG level to supply the reactive power to the MG under consideration
  •              end if
  •           else if S ess , avb , mmg + S nres , avb , mmg M mmg ( i , 6 ) then
  •              Operate ESSs of all the nearby MGs available at MMG level to supply the reactive power to the MG under consideration
  •              Check the nearby MGs one by one
  •              if  M mmg ( N nmg , 4 ) M mmg ( i , 6 )  then
  •                Operate the required portion of NREs of the nearby MG available at MMG level to supply the reactive power to the MG under consideration
  •              else
  •                Operate all the NRESs of the nearby MG available at MMG level to supply the reactive power to the MG under consideration
  •              end if
  •           else
  •              Operate all the ESSs and NRESs of the nearby MG available at MMG level to supply the reactive power to the MG under consideration
  •           end if
  •         else
  •           Operate all the EVs of all the nearby MGs available at MMG level to supply the active power to the MG under consideration
  •           if  S ess , avb , mmg ( M mmg ( i , 5 ) ) 2 + ( M mmg ( i , 6 ) ) 2  then
  •              Check the nearby MGs one by one
  •              if  M mmg ( N nmg , 3 ) > 0  then
  •                if  M mmg ( N nmg , 3 ) ( M mmg ( i , 5 ) ) 2 + ( M mmg ( i , 6 ) ) 2  then
  •                   Operate the required portion of ESUs of the nearby MG available at MMG level to supply the MG under consideration
  •                else
  •                   Operate ESUs of the nearby MG available at MMG level at the load power factor
  •                end if
  •              end if
  •           else
  •              Operate all the ESSs of all the nearby MGs available at MMG level to supply the the MG under consideration
  •              if  S nres , avb , mmg ( M mmg ( i , 5 ) ) 2 + ( M mmg ( i , 6 ) ) 2 )  then
  •                Check nearby MGs one by one
  •                if  M mmg ( N nmg , 4 ) ( M mmg ( i , 5 ) ) 2 + ( M mmg ( i , 6 ) ) 2 )  then
  •                   Operate the required portion of NRESs of the nearby MG available at MMG level to supply the MG under consideration
  •                else
  •                   Operate NRESs of the nearby MG available at MMG level at the load power factor
  •                end if
  •              else
  •                Operate NRESs of all the nearby MGs available at MMG level at the load power factor
  •              end if
  •           end if
  •         end if
  •      end if
  •    end if
  • end for
  • If the RESs available at the MMGC are sufficient to provide the deficiency of the MG under consideration, the MMGC allocates RESs of nearby MGs to satisfy the demand. First of all, the closest MG is considered. If it is able to meet the demand, its coordination power is increased by a value equal to the required power (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( i , 5 ) ) and the coordination power of the MG under consideration is decreased by the same amount (i.e., P mg , cd , i = P mg , cd , i M mmg ( i , 5 ) ). Here, N nmg represents N t h the nearby MG. In this way, the MGC of the MG under consideration is relieved from dispatching the unsatisfiable load and that load is shifted towards the nearby MG that has sufficient RESs to supply the required load. If the nearby MG is unable to completely supply the required load, its coordination power is increased by an amount equal to the available RESs (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( N nmg , 1 ) ) and the coordination power of the MG under consideration is decreased by the same amount (i.e., P mg , cd , i = P mg , cd , i M mmg ( N nmg , 1 ) ). After that, the MMGC goes to the next available MG, to see if it has the ability to satisfy the remaining load demand. This process goes on until the required load is satisfied.
  • If the required load cannot be satisfied by the RESs available at the MMGC level, but RESs and EVs combined are able to provide the required load (i.e., S res , avb , mmg + P ev , avb , mmg M mmg ( i , 5 ) ), the MMGC orders the MGCs of all the MGs to dispatch RESs that can be made available at MMG level. This is achieved by decreasing P mg , cd , i by an amount equal to the S res , avb , mmg i.e., P mg , cd , i = P mg , cd , i S res , avb , mmg . The coordination powers of all the other MGs are increased by their respective RES capacities available at the MMG. After that, the EVs are dispatched in order of their proximity, to satisfy the remaining load. The closest MG is considered first to supply the load and, if capable, its coordination power is increased accordingly (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( i , 5 ) ) and the coordination power of the MG under consideration is decreased accordingly (i.e., P mg , cd , i = P mg , cd , i M mmg ( i , 5 ) ). If the EVs in the nearby MG are unable to supply the required load completely, all the EVs in that MG are dispatched to their full capacity and the next closest MG is considered. This is achieved by increasing the coordination power of the closest MG by M mmg ( N nmg , 2 ) (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( N nmg , 2 ) ) and decreasing the coordination power of the MG under consideration by M mmg ( N nmg , 2 ) (i.e., P mg , cd , i = P mg , cd , i M mmg ( N nmg , 2 ) ). This process goes on and until the MG under consideration is supplied to its requirements.
  • If the required load cannot be satisfied by RESs and EVs, but the incorporation of the ESSs along with RESs and EVs is sufficient to supply the load (i.e., S res , avb , mmg + P ev , avb , mmg + S ess , avb , mmg M mmg ( i , 5 ) ), the MMGC coordinates all the MGCs to fully dispatch their RESs and EVs. The coordination power of the MG under consideration is decreased accordingly (i.e., P mg , cd , i = P mg , cd , i S res , avb , mmg P ev , avb , mmg ) and the coordination power of each of the nearby MGs is increased by an amount equal to the RES and EV resources available at MMG level (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( N nmg , 1 ) + M mmg ( N nmg , 2 ) ). After that, the MMGC checks the available ESS capacity from each MGC, in order of their geographical proximity. If the nearby MG is able to supply the difference, its MGC is dispatched accordingly. This is achieved by decreasing the coordination power of the MG under consideration by an amount equal to its requirement (i.e., P mg , cd , i = P mg , cd , i M mmg ( i , 5 ) ) and increasing the coordination power of the nearby MG by the same amount (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( i , 5 ) ). Otherwise, the MMGC allocates the available portion of the ESUs of the nearby MG to the MG under consideration. This is achieved by decreasing the coordination power of the MG under consideration by an amount equal to the ESU resources of the nearby MG available for MMG interaction (i.e., P mg , cd , i = P mg , cd , i M mmg ( N nmg , 3 ) ) and increasing the coordination power of the nearby MG by the same amount (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( N nmg , 3 ) ). This process goes on until the load is satisfied.
  • If the RESs, EVs, and ESSs available at MMG level are not able to supply the load, but the inclusion of NRESs available at MMG level is sufficient to satisfy the required load (i.e., S res , avb , mmg + P ev , avb , mmg + S ess , avb , mmg + S nres , avb , mmg N nmg ( i , 5 ) ), the MMGC asks the MGC of all MGs to completely dispatch the MMG available capacity of their RESs, EVs, and ESSs. The coordination power of the MG under consideration is decreased accordingly (i.e., P mg , cd , i = P mg , cd , i S res , avb , mmg P ev , avb , mmg S ess , avb , mmg ) and the coordination power of each of the nearby MGs is increased by an amount equal to the RES, EV, and ESU resources available at MMG level (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( N nmg , 1 ) + M mmg ( N nmg , 2 ) + M mmg ( N nmg , 3 ) ). After that, the MMGC checks the available NRES capacity from each MGC in order of their geographical proximity. If a nearby MG is able to supply the difference, its MGC is dispatched accordingly. This is achieved by decreasing the coordination power of the MG under consideration by an amount equal to its requirements (i.e., P mg , cd , i = P mg , cd , i M mmg ( i , 5 ) ) and increasing the coordination power of the nearby MG by the same amount (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( i , 5 ) ). Otherwise, the MMGC allocates the available portion of the NRESs of the nearby MGs to the MG under consideration. This is achieved by decreasing the coordination power of the MG under consideration by an amount equal to the NRES resources of the nearby MG available for MMG interaction (i.e., P mg , cd , i = P mg , cd , i M mmg ( N nmg , 4 ) ) and increasing the coordination power of the nearby MG by the same amount (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( N nmg , 4 ) ). This process goes on until the load is satisfied.
  • If all the resources available at MMG level are not sufficient to supply the load, the MMGC orders the MGC to dispatch the available capacity of RESs, EVs, ESSs, and NRESs and the rest of the load is shed by the respective MGC. This is achieved by decreasing the coordination power of the MG under consideration by an amount equal to the capacity of the RESs, EVs, ESUs, and NRESs available at MMG level (i.e., P mg , cd , i = P mg , cd , i S res , avb , mmg P ev , avb , mmg S ess , avb , mmg S nres , avb , mmg ) and increasing the coordination power of the nearby MG by an amount equal to the capacity of the RESs, EVs, ESUs, and NRESs available at MMG level (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( N nmg , 1 ) + M mmg ( N nmg , 2 ) + M mmg ( N nmg , 3 ) + M mmg ( N nmg , 4 ) ).
In the case of a reactive power requirement alone, the MMGC allocates power from the available resources in a predefined order, in such a way that the resources from the closest MG are used preferably. This can be achieved by following the steps mentioned above, with the exception that EVs are not available for reactive power support.
The following scenarios arise when both active and reactive power are required.
  • If the RESs available at MMG level are sufficient to provide the required power (i.e., S res , avb , mmg ( M mmg ( i , 5 ) ) 2 + ( M mmg ( i , 6 ) ) 2 ), the MMGC checks the nearby MGs one by one. If the RESs available for the MMG level of a particular nearby MG are sufficient to meet the load demands, the MGC of that MG is instructed to increase the load by an amount equal to the load required. This is achieved by increasing the coordination powers of the nearby MG to a value equal to the load required (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( i , 5 ) , Q mg , cd , N nmg = Q mg , cd , N nmg + M mmg ( i , 6 ) ) and decreasing the coordination powers of the MG under consideration by the same value (i.e., P mg , cd , i = P mg , cd , i M mmg ( i , 5 ) , Q mg , cd , i = Q mg , cd , i M mmg ( i , 6 ) ). If this is not the case, the coordination powers of the nearby MG are increased by a ratio equal to the power factor of the required load (see Equations (1) and (2)).
    P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( N nmg , 1 ) × 1 + ( M mmg ( i , 6 ) / M mmg ( i , 5 ) ) 2
    Q mg , cd , N nmg = Q mg , cd , N nmg + M mmg ( N nmg , 1 ) × 1 + ( M mmg ( i , 5 ) / M mmg ( i , 6 ) ) 2
    The coordination powers of the MG under consideration are decreased by the same value (see Equations (3) and (4)).
    P mg , cd , i = P mg , cd , i M mmg ( N nmg , 1 ) × 1 + ( M mmg ( i , 6 ) / M mmg ( i , 5 ) ) 2
    Q mg , cd , i = Q mg , cd , i M mmg ( N nmg , 1 ) × 1 + ( M mmg ( i , 5 ) / M mmg ( i , 6 ) ) 2
    In this way, all the contributing MGs supply the active and reactive powers with a uniform ratio.
  • If the RESs are not sufficient to supply the required power, all the RESs available from the respective MGC are dispatched at the load power factor. This is achieved by setting the coordination powers of the nearby MGs according to Equations (5) and (6), and the coordination powers of the MG under consideration according to Equations (7) and (8).
    P mg , cd , N nmg = P mg , cd , N nmg M mmg ( N nmg , 1 ) × 1 + ( M mmg ( i , 6 ) / M mmg ( i , 5 ) ) 2
    Q mg , cd , N nmg = Q mg , cd , N nmg M mmg ( N nmg , 1 ) × 1 + ( M mmg ( i , 5 ) / M mmg ( i , 6 ) ) 2
    P mg , cd , i = P mg , cd , i S res , avb , mmg × 1 + ( M mmg ( i , 6 ) / M mmg ( i , 5 ) ) 2
    Q mg , cd , i = Q mg , cd , i S res , avb , mmg × 1 + ( M mmg ( i , 5 ) / M mmg ( i , 6 ) ) 2
    After using the RESs, the MMGC moves to EVs. If the EVs available for the MMG level of a particular nearby MG are sufficient to meet the active load demands, the coordination power of the nearby MG is increased to a value equal to the load required (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( i , 5 ) ) and the coordination power of the MG under consideration is decreased by the same value (i.e., P mg , cd , i = P mg , cd , i M mmg ( i , 5 ) ). If this is not the case, the entire capacity of EVs available at MMG level is deployed to meet the active load demand of the MG under consideration. This is achieved by increasing the coordination power of the nearby MG by a value equal to the available EV resources (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( N nmg , 2 ) ) and decreasing the coordination power of the MG under consideration by the same value (i.e., P mg , cd , i = P mg , cd , i M mmg ( N nmg , 2 ) ). In this way, the active load requirements are fulfilled and the MMGC moves towards reactive power scheduling. Since the RESs are depleted, the MMGC checks the ESSs and NRESs for reactive power support. If the ESSs are sufficient to meet the requirements, the ESSs of the nearby MGs are dispatched preferably from the nearby MGs. The coordination power of the nearby MG is increased to a value equal to the load required (i.e., Q mg , cd , N nmg = Q mg , cd , N nmg + M mmg ( i , 6 ) ), and the coordination power of the MG under consideration is decreased by the same value (i.e., Q mg , cd , i = Q mg , cd , i M mmg ( i , 6 ) ). If the ESSs are not sufficient, all the ESUs are dispatched by increasing the coordination power of the nearby MG by a value equal to the available ESS resources (i.e., Q mg , cd , N nmg = Q mg , cd , N nmg + M mmg ( N nmg , 3 ) ) and decreasing the coordination power of the MG under consideration by the same value (i.e., Q mg , cd , i = Q mg , cd , i M mmg ( N nmg , 3 ) ). If the ESSs are not sufficient to meet the load requirements alone, the MMGC checks the NRESs available from the MGCs. If the ESSs and NRESs are both able to meet the requirements, the ESUs of all the nearby MGs are fully utilized to supply reactive power to the MG under consideration. This is achieved by increasing the coordination power of each MG by a value equal to the ESS resources available at MMG level (i.e., Q mg , cd , N nmg = Q mg , cd , N nmg + M mmg ( i , 3 ) ) and decreasing the coordination power of the MG under consideration by the ESS resources available at the MMG level (i.e., Q mg , cd , i = Q mg , cd , i S ess , avb , mmg ). After that, the MGCs of the nearby MGs are asked to dispatch the required NRES capacity. If the nearby MG has enough NRESs to meet the requirement, its coordination power is increased by a value equal to the load required (i.e., Q mg , cd , N nmg = Q mg , cd , N nmg + M mmg ( i , 6 ) ) and the coordination power of the MG under consideration is decreased by the same value (i.e., Q mg , cd , i = Q mg , cd , i M mmg ( i , 6 ) ). Otherwise, all NRESs available at MMG level are dispatched by increasing the coordination powers of the nearby MG by a value equal to the available NRESs resources (i.e., Q mg , cd , N nmg = Q mg , cd , N nmg + M mmg ( N nmg , 4 ) ) and decreasing the coordination power of the MG under consideration by the same value (i.e., Q mg , cd , i = Q mg , cd , i M mmg ( N nmg , 4 ) ). If both the ESSs and NRESs are insufficient to meet the demand, all the ESSs and NRESs from all the MGs are dispatched by increasing the coordination powers of the nearby MG by a value equal to the available ESS and NRES resources (i.e., Q mg , cd , N nmg = Q mg , cd , N nmg + M mmg ( N nmg , 3 ) + M mmg ( N nmg , 4 ) ) and decreasing the coordination power of the MG under consideration by the same value (i.e., Q mg , cd , i = Q mg , cd , i M mmg ( N nmg , 3 ) M mmg ( N nmg , 4 ) ) and the MG under consideration has to shed the remaining load.
  • If both the RESs and EVs are unable to meet the requirements, the MMGC dispatches all the available resources of the RESs and EVs from the respective MGCs and checks the ESUs available at MMG level. If these are sufficient to meet the requirements (i.e., S ess , avb , mmg ( M mmg ( i , 5 ) ) 2 + ( M mmg ( i , 6 ) ) 2 ), the MMGC asks the MGC of the nearby MGs to dispatch the required load demands from their ESUs. This is achieved by increasing the coordination powers of the nearby MG by a value equal to the load required (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( i , 5 ) and Q mg , cd , N nmg = Q mg , cd , N nmg + M mmg ( i , 6 ) ) and decreasing the coordination powers of the MG under consideration by the same value (i.e., P mg , cd , i = P mg , cd , i M mmg ( i , 5 ) and Q mg , cd , i = Q mg , cd , i M mmg ( i , 6 ) ). If this is not the case, the coordination powers of the nearby MGs are increased by a ratio equal to the power factor of the required load (see Equations (9) and (10)) and the coordination powers of the MG under consideration are decreased by the same value (see Equations (11) and (12)).
    P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( N nmg , 3 ) × 1 + ( M mmg ( i , 6 ) / M mmg ( i , 5 ) ) 2
    Q mg , cd , N nmg = Q mg , cd , N nmg + M mmg ( N nmg , 3 ) × 1 + ( M mmg ( i , 5 ) / M mmg ( i , 6 ) ) 2
    P mg , cd , i = P mg , cd , i S ess , avb , mmg × 1 + ( M mmg ( i , 6 ) / M mmg ( i , 5 ) ) 2
    Q mg , cd , i = Q mg , cd , i S ess , avb , mmg × 1 + ( M mmg ( i , 5 ) / M mmg ( i , 6 ) ) 2
    In this way, all the the contributing MGs supply power with a uniform ratio equal to the power factor of the required load.
  • If the load demand at MMG level is higher than the potential of the RESs, EVs, and ESUs, the MMGC deploys the NRESs available for inter-MG operation for the rest of the load supplies. If the NRESs are able to meet the load demands (i.e., S nres , avb , mmg ( M mmg ( i , 5 ) ) 2 + ( M mmg ( i , 6 ) ) 2 ) ), the MGCs of the nearby MGs are dispatched in order of their geographical proximity. This is achieved by increasing the coordination powers of the nearby MG by a value equal to the load required (i.e., P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( i , 5 ) and Q mg , cd , N nmg = Q mg , cd , N nmg + M mmg ( i , 6 ) ) and decreasing the coordination powers of the MG under consideration by the same value (i.e., P mg , cd , i = P mg , cd , i M mmg ( i , 5 ) and Q mg , cd , i = Q mg , cd , i M mmg ( i , 6 ) ). If this is not the case, the coordination powers of the nearby MGs are increased by a ratio equal to the power factor of the required load (see Equation (13) and Equation (14)) and the coordination powers of the MG under consideration are decreased by the same value (see Equation (15) and Equation (16)).
    P mg , cd , N nmg = P mg , cd , N nmg + M mmg ( N nmg , 4 ) × 1 + ( M mmg ( i , 6 ) / M mmg ( i , 5 ) ) 2
    Q mg , cd , N nmg = Q mg , cd , N nmg + M mmg ( N nmg , 4 ) × 1 + ( M mmg ( i , 5 ) / M mmg ( i , 6 ) ) 2
    P mg , cd , i = P mg , cd , i M mmg ( N nmg , 4 ) × 1 + ( M mmg ( i , 6 ) / M mmg ( i , 5 ) ) 2
    Q mg , cd , i = Q mg , cd , i M mmg ( N nmg , 4 ) × 1 + ( M mmg ( i , 5 ) / M mmg ( i , 6 ) ) 2
    If this is insufficient, the NRESs are dispatched to their full capacity and the MGC of the concerned MG is compelled to shed the remaining loads.

2.2. Microgrid Controller (MGC)

The MGC is at the third level of the hierarchy in the proposed control system. It takes information about the available and required powers from the UCs and coordination powers from the MMGC to control the attached UCs accordingly. There are two modes of operation: grid-tied and islanded. The following scenarios are present in the grid-tied mode (see Algorithm 2).
  • If there is only active power demand, the RESs are operated in maximum power point tracking (MMPT) mode and the ESUs are charged at their rated capacities, if required. This is perormed to make possible the maximum possible utilization of the RESs and to provide the maximum potential to a particular MG, to meet the load demands by charging ESUs to the maximum possible extent;
  • If reactive power is required, it is provided by the RESs, ESUs, and NRESs in order. The rest of the reactive power, if required, is provided by the grid. After the reactive power is scheduled, the RESC extracts the leftover power from the RESs. This is calculated by Equation (17).
    P res , req = S res , avb 2 Q res , req 2
    The ESUs are charged if there is remaining capacity. If Q ess , d , req is greater than S ess , do , avb , this means that some portion of S ess , cd , avb is used to satisfy the load. Thus, the remaining capacity available for charging is given by Equation (18).
    P ess , c , req = S ess , co , avb + S ess , cd , avb 2 ( Q ess , d , req S ess , d , o ) 2
    However, if S ess , do , avb is sufficient to satisfy Q ess , d , req , the remaining capacity available for charging is given by Equation (19).
    P ess , c , req = S ess , co , avb + S ess , cd , avb
  • If the reactive power is available at MG level, it is used to charge the ESUs of the MG. The rest of the reactive power, if available, is supplied to the grid. The RESs are operated at MPPT. If Q ess , c , req is greater than S ess , co , avb , the ESUs are charged to a capacity using Equation (20).
    P ess , c , req = S ess , cd , avb 2 ( Q es , c , req S ess , co , avb ) 2
    However, if Q ess , c , req is smaller than S ess , co , avb , the ESUs are charged to a capacity using Equation (21).
    P ess , c , req = S ess , cd , avb + ( S ess , co , avb ) 2 ( Q ess , c , req ) 2
Algorithm 2 Proposed Algorithm for MGC
  • if grid-connected then
  •    if  Q l , req = 0  then
  •      Operate RESs at MPPT and charge ESUs at their rated capacity if possible.
  •    else if Q l , req > 0 then
  •      Operate RESs, ESUs and NRESs in order if required to supply Q l , req . Rest of Q l , req , if any, will be provided by the grid.
  •      Extract the available power from RESs.
  •      Charge ESUs if possible.
  •    else if  Q l , req > 0  then
  •      Charge ESUs to the available capacity using grid and available reactive power while delivering rest of it, if any, to the grid.
  •    end if
  • else
  •    if  Q l , req = 0  then
  •      if  P ev = 0  then
  •         if  S res , avb P l , req  then
  •           Operate RESs to supply the load first and then ESUs if possible. Curtail RESs if required.
  •         else
  •           Operate RESs, ESUs and NRESs in order if required. Shed the load if required.
  •         end if
  •      else if  P ev > 0  then
  •         if  S res , avb P l , req  then
  •           Operate RESs to supply P l , req .
  •           if  S res , avb > P ev  then
  •              Operate RESs to supply P ev .
  •              if  S res , avb > S ess , c , avb  then
  •                Operate RESs to supply S ess , c , avb and curtail the rest.
  •              else
  •                Operate the remaining capacity of RESs to charge ESUs.
  •              end if
  •           else
  •              Operate RESs at MPPT
  •              if  S ess , d , avb P ev , d  then
  •                Operate ESUs to supply P ev completely.
  •              else
  •                Operate ESUs to supply the appropriate portion of P ev .
  •                if  S nres , avb > P ev , d  then
  •                   Operate NRESs to supply P ev completely.
  •                else
  •                   Operate NRESs to supply the appropriate portion of P ev and shed the rest.
  •                end if
  •              end if
  •           end if
  •         else
  •           Operate RESs at MPPT.
  •           if  S ess , d , avb P l , d  then
  •              Use ESUs to supply the load completely.
  •              if  S ess , d , avb P ev  then
  •                Use ESUs to supply EVs completely.
  •              else
  •                Operate EVs at the full capacity.
  •                if  S nres , avb > P ev , d  then
  •                   Operate NRESs to supply the remaining EV load.
  •                else
  •                   Operate NRESs at full capacity and shed the remaining EV load.
  •                end if
  •              end if
  •           else
  •              Use ESUs fully to supply the load.
  •              if  S nres , avb > P l , d  then
  •                Operate NRESs to supply the load first and then EVs if possible. Shed EV demand accordingly if required.
  •              else
  •                Operate NRESs at full capacity. Shed the remaining load and entire EV demand.
  •              end if
  •           end if
  •         end if
  •      else
  •         if  S res , avb P l , req  then
  •           Operate RESs to supply P l , req
  •           if  S res , avb > S ess , c , avb  then
  •              Operate RESs to supply S ess , c , avb and curtail the rest.
  •              Curtail P ev , avb .
  •           else
  •              Operate RESs at MPPT
  •              if  P ev , avb S ess , c , avb  then
  •                Use P ev , avb to supply S ess , c , avb and curtail the rest.
  •              else
  •                Use P ev , avb completely to charge ESUs
  •              end if
  •           end if
  •         else
  •           Operate RESs at MPPT
  •           if  P ev , avb P l , d  then
  •              Use P ev , avb to supply P l , d
  •              if  P ev , avb > S ess , c , avb  then
  •                Use P ev , avb to supply S ess , c , avb completely
  •              else
  •                Use P ev , avb to supply a portion of S ess , c , avb
  •              end if
  •           else
  •              Use P ev , avb to supply a portion of P l , d
  •              if  S ess , d , avb P l , d  then
  •                Use S ess , d , avb to supply P l , d
  •              else
  •                Operate ESUs at their full capacity
  •                if  S nres , avb > P l , d  then
  •                   Use NRESs to supply the load
  •                else
  •                   Operate NRESs at their full capacity and shed the remaining load
  •                end if
  •              end if
  •           end if
  •         end if
  •      end if
  •    else if Q l , req > 0 then
  •      Operate RESs, ESUs and NRESs in order if required. Rest of the Q l , req , if any, will be shedded.
  •      Calculate P res , avb , P ess , c , avb , P ess , d , avb and P nres , avb .
  •      Perform the rest of the active power scheduling as in case of Q l , req = 0
  •    else if Q l , req < 0 then
  •      Charge ESUs using the available reactive power while shedding rest of it, if any.
  •      Calculate P res , avb , P ess , c , avb , P ess , d , avb and P nres , avb
  •      Perform the rest of the active power scheduling as in case of Q l , req = 0
  •    end if
  • end if
  • Calculate S res , avb , mmg , P ev , avb , mmg , S ess , d , avb , mmg , S nres , avb , mmg , P mg , req , mmg , Q mg , req , mmg for MMGC
In islanded mode, the MGC is responsible for supplying a load to the maximum extent from the available resources. If the available resources are insufficient, the required load is shed.  
  • If there is only active power demand and the EVs are unable to load or support the MG, the RESs are considered for supplying the load at first. If the RESs are sufficient for load supply, extra power from the RESs is used to charge the ESUs. The rest of the RES power, if available, is curtailed. Otherwise, the ESUs and NRESs are used to supply the load, in order, if needed. The rest of the load, if any, is shed.
  • In the presence of only an active power load and EV charging demand, the RESs are used to supply the load first. If the RESs are sufficient for load supply, the remaining RES capacity is used to supply the EVs. The remaining RES capacity, if any, is used to charge the ESUs if possible. If the RESs, after supplying the load, are not able to supply the EVs, the ESUs and NRESs are used to supply the EVs, in order, if required. If the RESs are not able to supply the load, the ESUs are used to supply the remaining load. If the ESUs are able to supply the remaining load, the EVs are supplied from the ESUs. If the ESUs are insufficient for the supply, the NRESs are deployed accordingly. In this case, even the NRESs fall short of the EV demand and EVs are shed accordingly.If the both RESs and ESUs are insufficient to fulfill the load demand, the RESs and ESUs are fully utilized and the remaining load demand is fulfilled from the NRESs. If the NRESs are sufficient to fulfill the load demand, the rest of the NRES capacity is used to supply the EVs. If this capacity is insufficient, the remaining EV load is shed. If the NRESs are not even sufficient to fulfill the load demand, the NRESs are operated at their rated capacity. The remaining load and the whole of the EV demand is shed.
  • If the load is purely active and the EVs are able to supply the load, the RESs are used to supply the load at first. The ESUs are charged from the remaining RES potential and, if required, from the power available from the EVs. If the RESs are not sufficient to supply the load, the RESs are fully utilized and the remaining load is supplied from the EVs. The remaining EV capacity, if any, is used to charge the ESUs, if required. Any more EV capacity, if available, is curtailed. If both RESs and EVs are insufficient, the ESUs and NRESs are used to supply the remaining load.
  • In the case of a reactive power requirement, this is supplied from the RESs, ESUs, and NRESs, and the remaining reactive power, if any, is shed. After that P res , avb , P ess , c , avb , P ess , d , avb , and P nres , avb are calculated for active power dispatch. P res , avb can be calculated using Equation (22).
    P res , avb = S res , avb 2 Q res , req 2
    If Q ess , d , req > S ess , do , avb , this means that some portion of S ess , cd , avb is discharged to meet the reactive power requirements, so, P ess , c , avb and P ess , d , avb can be calculated using Equations (23) and (24).
    P ess , c , avb = S ess , co , avb + S ess , cd , avb 2 ( Q ess , d , req S ess , do , avb ) 2
    P ess , d , avb = S ess , cd , avb 2 ( Q ess , d , req S ess , do , avb ) 2
    If Q ess , d , req S ess , do , avb , this means that some portion of S ess , do , avb can be used to meet the active power requirements. Thus, P ess , c , avb and P ess , d , avb can be calculated using Equations (25) and (26).
    P ess , c , avb = S ess , co , avb + S ess , cd , avb
    P ess , d , avb = S ess , cd , avb + S ess , do , avb 2 Q ess , d , req 2
    P nres , avb for active power dispatch can be calculated using Equation (27).
    P nres , avb = S nres , avb 2 Q nres , req 2
    After calculating the remaining capacities of the RESs, ESUs, and NRESs, the active power is scheduled as describe above.
  • If reactive power is available, it is absorbed by the ESUs, and left over reactive power, if any, is shed. Since RESs are not used in this process, P res , avb remains intact to meet the active power demands (see Equation (28)).
    P res , avb = S res , avb
    If Q ess , c , req > S ess , co , avb , this means that some portion of S , cd , avb ess is used for reactive power support. Thus, the available resources from ESUs towards active power support can be calculated using Equations (29) and (30).
    P ess , c , avb = S ess , cd , avb 2 ( Q ess , c , req S ess , co , avb ) 2
    P ess , d , avb = S ess , do , avb + S ess , cd , avb 2 ( Q ess , c , req S ess , co , avb ) 2
    If Q ess , c , req S ess , co , avb ,this means that some portion of S ess , cd , avb can be used for active power support. Thus, the available resources from ESUs towards active power support can be calculated using Equations (31) and (32).
    P ess , c , avb = S ess , cd , avb + ( S ess , co , avb ) 2 ( Q ess , c , req ) 2
    P ess , d , avb = S ess , cd , avb + S ess , do , avb
    Since NRESs are not used in this process, P nres , avb remains intact to meet the active power demands (see Equation (33)).
    P nres , avb = S nres , avb
    After that, the active power is scheduled as describe above.

2.3. EV Controllers (EVCs)

The EVC controls the charging and discharging of the EVs in coordination with the MGC and MMGC. Each vehicle, on arrival, informs its MC about its C ev , i , P r , ev , i , S o C i , ev , i , S o C f , ev , i , S o C min , ev , i , S o C max , ev , i , c o s t ev , i , m ev , i , t a , ev , i , and t d , ev , i . Based on this information, the respective MC determines the reference power demand of the EV and conveys it to the respective UC. The UC analyzes the power demands of all the EVs in a MG and conveys it to the MGC. The MGC interacts with the MMGC to see if these demands can be met or if there is a need to perform shedding or curtailment (see Algorithm 3).
Each EV can select a mode of charging or discharging. “Minimum time charging mode” means that the EV needs to be charged in the minimum possible time. The minimum charging time can be achieved if the EV is charged at its rated power, i.e., P r , ev , i . First of all, the MC determines the possibility of charging the EV in that time. This can be achieved by comparing the required energy ( S o C f , ev , i S o C i , ev , i ) × C ev , i and the maximum energy that can be made available within the specified time limits ( P r , ev , i × ( t d , ev , i t a , ev , i )), i.e.,
( S o C f , ev , i S o C i , ev , i ) × C ev , i P r , ev , i × ( t d , ev , i t a , ev , i )
Algorithm 3 Proposed EVC Algorithm
  • if  m ev , i = Mininimum Time Charging Mode  then
  •    Check the feasibility of S o C f , ev , i and update it if required
  •    if  ( t c , ev , i t a , ev , i ) & ( t c , ev , i < t d , ev , i ) & ( S o C c , ev , i S o C f , ev , i )  then
  •       P ev , i = P r , ev , i
  •    else
  •       P ev , i = 0
  •    end if
  • else if  m ev , i = Minnimum Time Fixed Cos t Charging Mode  then
  •    Check the feasibility of S o C f , ev , i and update it if required
  •    if  ( t c , ev , i t a , ev , i ) & ( t c , ev , i < t d , ev , i ) & ( S o C c , ev , i S o C f , ev , i ) & ( c o s t c < c o s t ev , i  then
  •       P ev , i = P r , ev , i
  •    else
  •       P ev , i = 0
  •    end if
  • else if  m ev , i = Minimum Cos t Charging Mode  then
  •    if MG is in grid connected mode then
  •      Check the feasibility of S o C f , ev , i and update it if required
  •      Solve
  • minimize P ev , i i = 1 N P ev , i ( i ) × c o s t avb ( i ) × Δ T subject to S o C ev , i ( 1 ) = S o C i , ev , i S o C ev , i ( 2 : N 1 ) = S o C ev , i ( 1 : N 2 ) + P ev , i ( 1 : N 2 ) × Δ T S o C ev , i ( N 1 ) + P ev , i ( N ) × Δ T = S o C f , ev , i
  •    else
  •       P ev , i = 0
  •    end if
  • else if  m ev , i = Fixed Cos t Maximum SoC Charging Mode  then
  •    if MG is in grid connected mode then
  •      Check the feasibility of S o C f , ev , i and update it if required
  •      Solve
  • maximize P ev , i S o C i , ev , i ( i ) + i = 1 N P ev , i ( i ) × Δ T C ev , i subject to i = 1 N P ev , i ( i ) Δ T × c o s t avb ( i ) × Δ T c o s t ev , i S o C ( 1 ) = S o C i S o C ( 2 : N ) = S o C ( 1 : N 1 ) + P ev , i ( 1 : N 1 ) × Δ T C ev , i
  •    else
  •       P ev , i = 0
  •    end if
  • else if  m ev , i = Grid Support Mode  then
  •    Check the feasibility of S o C f , ev , i and update it if required
  •    Solve
  • maximize P ev , i i = 1 N Δ T × c o s t avb ( i ) × P ev , i ( i ) subjet to S o C ev , i ( 1 ) = S o C i , ev , i S o C ev , i ( 1 : i a 2 ) + P ev , i ( 1 : i a 2 ) × Δ T = S o C i , ev , i S o C ev , i ( i a : i d 1 ) = S o C ev , i ( i a 1 : i d 2 ) + P ev , i ( i a 1 : i d 2 ) × Δ T S o C ev , i ( i d 1 : N 1 ) + P ev , i ( i d 1 : N 1 ) × Δ T = S o C f , ev , i P ev , i ( 1 : i a ) = 0 P ev , i ( i d + 1 : N ) = 0
  • end if
If Equation (34) is greater than 1, the required energy cannot be fulfilled in the specified time. In such a case, S o C f , ev , i can be reduced to a value that can be achieved within the specified time duration while charging at the maximum possible power. This can be calculated using Equation (35).
S o C f , ev , i = S o C i , ev , i + P r , ev , i × ( t d , ev , i t a , ev , i ) C ev , i
If Equation (34) is less than 1, the required energy can be supplied within the specified time. In such a case, S o C f , ev , i is kept as it is. After that, the EV is charged at its rated power until t d , ev , i is reached or S o C c , ev , i becomes equal to S o C f , ev , i .
“Minimum time fixed cost charging mode” means that the EV is needs to be charged in the minimum possible time, with the constraint that the cost should not exceed the cost specified by the EV. First of all, the MC determines whether the EV can be charged to its S o C f , ev , i within the specified time duration. If this is not possible, S o C f , ev , i is updated accordingly, otherwise it is kept as such. After that, the EV is charged at its rated power until t d , ev , i is reached or S o C c , ev , i becomes equal to S o C f , ev , i or the current cost of EV ( c o s t c , ev , i ) is equal to the specified cost ( c o s t sp , ev , i ).
“Minimum cost charging mode” means that the EV needs to be charged with the minimum possible cost to a specific S o C f , ev , i within a given time period. First of all, the MC determines the feasibility of S o C f , ev , i and updates it if required, as explained above. After that, an optimization problem is solved to minimize the cost in such a way that S o C f , ev , i is met within a given time duration by keeping P e v , i within the limits, as given by Equation (36).
minimize P ev , i i = 1 N P ev , i ( i ) × c o s t avb ( i ) × Δ T subject to S o C ev , i ( 1 ) = S o C i , ev , i S o C ev , i ( 2 : N 1 ) = S o C ev , i ( 1 : N 2 ) + P ev , i ( 1 : N 2 ) × Δ T S o C ev , i ( N 1 ) + P ev , i ( N ) × Δ T = S o C f , ev , i
Here, i represents the optimization interval, which ranges from 1 to N, and c o s t avb ( i ) represents the cost of charging the EV at the instant i. These calculations remain valid until the grid is connected or the MGC does not shed any demand. During such events, the EV is not charged at the available power, and the calculations are performed again when such events are over.
“Maximum SoC fixed cost charging mode” means that the EV needs to be charged to achieve the maximum possible S o C f , ev , i , while keeping the cost within a specified cost. First of all, the MC determines the feasibility of S o C f , ev , i and updates it if required, as explained above. After that, an optimization problem is solved to maximize the SoC at each charging interval, while meeting the time, cost, and power constraints as given by Equation (37).
maximize P ev , i S o C i , ev , i ( i ) + i = 1 N P ev , i ( i ) × Δ T C ev , i subject to i = 1 N P ev , i ( i ) Δ T × c o s t avb ( i ) × Δ T c o s t ev , i S o C ( 1 ) = S o C i S o C ( 2 : N ) = S o C ( 1 : N 1 ) + P ev , i ( 1 : N 1 ) × Δ T C ev , i
“Grid support mode” means that the EV needs to be charged or discharged to achieve a specified SoC within a given time interval, while maintaining the EV constraints of power with the maximum possible cost benefit. First of all, the MC determines whether the EV can be charged to its S o C f , ev , i within the specified time duration. If this is not possible, S o C f , ev , i is updated accordingly, otherwise it is kept as such, as explained above. After that, an optimization problem is formulated to charge or discharge the EV, so that S o C f , ev , i is achieved at the end of the specified time and in such a way that the maximum cost benefit is achieved. Such a problem is stated in Equation (38).
maximize P ev , i i = 1 N Δ T × c o s t avb ( i ) × P ev , i ( i ) subjet to S o C ev , i ( 1 ) = S o C i , ev , i S o C ev , i ( 1 : i a 2 ) + P ev , i ( 1 : i a 2 ) × Δ T = S o C i , ev , i S o C ev , i ( i a : i d 1 ) = S o C ev , i ( i a 1 : i d 2 ) + P ev , i ( i a 1 : i d 2 ) × Δ T S o C ev , i ( i d 1 : N 1 ) + P ev , i ( i d 1 : N 1 ) × Δ T = S o C f , ev , i P ev , i ( 1 : i a ) = 0 P ev , i ( i d + 1 : N ) = 0
It is to be noted that any suitable algorithm can be used to control RESs, ESUs, NRESs and loads. A particular example can be found in [60].

3. Results and Discussion

A comprehensive case study based on five MGs was developed to validate the behavior of the MG controllers. Each MG had solar panels as RESs, BESS as ESUs, and EVs and diesel generators as NRESs. First, the fourth and fifth MGs were operated at unity power factors, the second MG was operated at lagging power factor, and the third MG was operated at leading power factor. In this way, the behavior of MG controllers for the active and reactive (leading and lagging) conditions could be verified. All the MGs had the same solar profile, except the fifth MG, which had a higher solar profile. The fourth MG had a higher load and a lower solar profile than the fifth MG and, therefore, required MMG interaction. This provided a way to validate the behavior of the MG controllers at MMG level. Symmetry was kept when selecting the parameters of the different DESs, in order to ease the understanding of the behavior of the different controllers in such a complex MMG environment. This will become evident from the following discussion. The following sections present a detailed discussion on the behavior of the different controllers at different levels of the hierarchy for all MGs involved.

3.1. Response of MG 1

Figure 3 represents the behavior of the different controllers for the first MG. Figure 3a represents the resources of MG 1 that were able to participate in MMG interaction. The solar resource was not available to participate at MMG level during the night hours; thus, a zero line can be seen for S res , avb , mmg , 1 in Figure 3a from 0 to 5 and 19 to 24 h. In between these hours, there was availability of the solar resource. In grid-connected mode, the whole solar resource was available at the MMG level, showing that the grid was responsible for supplying the load and the solar resource could be used to supply the other MGs if needed. In islanded mode, the solar resource of the MG was configured to supply the load. Thus, we saw a reduction in solar availability during these hours. During the grid-connected hours, the ESUs were free to participate in MMG interaction; therefore, the whole of the discharge capacity ( S ess , do , avb , mg , i + S ess , cd , avb , mg , i ) was available at MMG level. In islanded mode, the ESUs were engaged in supplying the load after using RESs and EVs. As a result, their participation at MMG level was reduced in islanded mode. The NRESs were not deployed in grid-connected mode; thus, the full capacity of the NRESs of the MG was available for MMG interaction. In the case of the islanded modes, the NRESs were deployed if other sources were not sufficient to supply the load. Thus, the availability of NRESs at MMG level was thereby reduced (see Figure 3d) during these hours. It can be observed that it was a well balanced MG, as it did not require any power from the MMGC, as represented by zero lines for P mg , req , 1 , Q mg , req , 1 , P mg , cd , 1 , and Q mg , cd , 1 in Figure 3a.
Figure 3b represents the behavior of the MGC. The MGC accepted the available solar capacity at the MG level from the RESC, charging and discharging capacity from the ESUs by means of the ESSC, available and required power from the EVs by means of EVCs, rated capacity of the NRESs from NRESC, and the required load from the LC. Having the information about the required load and available resources, the MGC makes decisions for each controller at the unit level, to provide or shed a certain load and curtail a certain source. The concerned MG operates at the unity power factor; thus, we did not see any reactive power scheduling here. RESs were operated at their full capacity, with only one exception where a curtailment took place during a low load, and the ESUs were fully charged and no grid was present. The ESUs were controlled to be charged as much as possible from the RESs, EVs, and grid in order, if possible, and discharged only when required. The same trend can be observed in Figure 3b. The NRESs were kept idle in grid-connected mode and only operated during islanding when other sources could not support the load. The load was fully supplied in grid-connected mode and load shedding was only performed in islanded mode when the available MG resources were not sufficient to supply the load.
Figure 3c represents the behavior of the RESC at the MG level. It can be seen that the RESs were extracted to the maximum extent in grid-connected mode. In islanded mode, the RESs were curtailed if these were in excess, even after supplying the loads, ESUs, and EVs, as happened from 14 to 15 h.
Figure 3d represents the behavior of the NRESC at MG level. The NRESs were not operated in grid-connected mode, where the grid maintains the load supply, while accepting RESs at MPPT and charging the ESUs at their available capacity. The NRESs were operated in islanded mode as a last resort when the other available resources were not sufficient to supply the loads.
Figure 3f represents the behavior of the ESSC at MG level. The ESUs were charged whenever the grid was available or the RESs were sufficient to supply the load, and they were only discharged when the grid was not available and the RESs were not sufficient. The same trend was observed here. During the hours of solar deficiency and islanded mode, the ESUs were discharged to supply the load and charged whenever the grid was connected after that.
Figure 3e represents the behavior of the EVC at MG level. The first EV chose “minimum time charging mode”, the second EV chose “minimum time fixed cost charging mode”, the third EV chose “minimum cost charging mode”, the fourth EV chose “fixed cost maximum SoC charging mode”, and the fifth EV chose “grid-support mode”. Since the MG was fairly self sufficient, there was no power shedding as far as the EV demand was concerned.
Figure 3g represents the behavior of the load in the first MG. It can be observed that the load was always supplied during grid-connected mode, and load shedding was observed in islanded mode when no available resources could sufficiently meet the load requirements.

3.2. Response of MG 2

Figure 4 represents the behavior of the different controllers for the second MG. Figure 4a represents the resources of the MG 2 that were able to participate in MMG interaction. It can be seen that the MG was quite self-sufficient. In the grid-tied mode of operation, there were resources available that could participate in the MMG operation. However, in such a case, the grid took care of the load supply imbalance. However, such resources could be used in the case of partial islanding in some other MGs. Thus, we can see that P mg , cd , 2 and Q mg , cd , 2 were zero in such a mode. In the islanded mode of operation, the MG was able to provide its loads but it did not have enough resources to participate in MMG operation. That was reflected by zero values of S res , avb , mmg , 2 , P ev , avb , mmg , 2 , S ess , avb , mmg , 2 , S nres , avb , mmg , 2 , P mg , req , 2 , Q mg , req , 2 , P mg , cd , 2 , and Q mg , cd , 2 in the islanded mode of operation.
Figure 4b represents the behavior of the MGC for the second MG. The MGC accepted the available and required capacities at the MG level from all the unit controllers and took decisions for each controller at the unit level, to provide or shed a certain load and curtail a certain source. The MG operated at the lagging power factor. Thus, we saw both active and reactive powers here. During the hours of grid-tied mode operation, the MGC showed full utilization of S res , avb by operating RESs at MPPT. In islanded mode of operation, the RESs were operated to meet the requirements of the load required. It can be observed that from 14 to 15 h, the load demands were low compared to the available capacity of the RESs. Thus, we saw a curtailment of the RESs. The ESUs were charged in the grid-tied mode of operation if required. In the islanded mode of operation, the ESUs were charged if enough RESs and EVs were available beyond the requirements of the loads. The NRESs were kept idle in the grid-tied mode of operation and operated only if required. Since the reactive power demand could be compensated for by the resources of the MG, we can see that there was no reactive power load shedding.
Figure 4c represents the behavior of the RESC at the MG level. The RESC took the active and reactive power commands from the MGC and distributed them to the respective RESs according to the control algorithm, to meet the requirements of the MGC. Since we had reactive power demands as well, the respective MC controlled the power electronic interface to meet both the active and reactive power demands according to the requirements of the MGC.
Figure 4d represents the behavior of the NRESC at MG level. It can be seen that the NRESs were not operated in grid-tie mode, as the grid was responsible for maintaining the load supply balance. On the other hand, the NRESs were operated during islanding, when the other DESs were not sufficient to meet the load requirements, as occurred from 3 to 4, 6 to 7, 18 to 19, and 22 to 23 h. In the islanded mode of operation from 14 to 15 h, the RESs were available above the load demand.Thus, we observed a curtailment of RESs, and hence the NRESs were not operated, as this was not required as the load had already been satisfied.
Figure 4f represents the behavior of the ESSC at MG level. ESUs are charged whenever the grid was available or RESs are sufficient to supply the load, and discharged only when the grid was not available and the RESs were not sufficient. The same trend was observed here. During the hours of solar deficiency and islanded mode, the ESUs were discharged to supply the load and charged whenever the grid was connected after that. It can be observed that ESUs were discharged only during islanding when the RESs were not sufficient to supply the load. For example, from 14 to 15 h, the RESs were curtailed. This means that the RESs could supply the load, and hence the ESUs were not discharged, even in the absence of the grid.
Figure 4e represents the behavior of the EVC at MG level. The first EV chose the “minimum time charging mode”, the second EV chose “minimum time fixed cost charging mode”, the third EV chose “minimum cost charging mode”, the fourth EV chose “fixed cost maximum SoC charging mode”, and the fifth EV chose “grid-support mode”. All the vehicles operated according to their operating modes.
Figure 4g represents the behavior of the LC in the second MG. It can be observed that the load was always supplied in grid-connected mode and load shedding was observed in islanded mode when the available resources could not sufficiently meet the load requirements. There was no reactive power load shedding, since the MG tried to preferably compensate for the reactive power from its own resources. That is why we saw active power load shedding during islanding conditions from 18 to 19 h when the RESs were not present and the NRESs and ESUs were insufficient to supply the load even when operated at full capacity.The MG required P mg , req , 2 from the MMGC, as can be seen in Figure 4a, but there was no P mg , cd , 2 corresponding to the request, as there was no nearby available MG to meet this demand.

3.3. Response of MG 3

Figure 5 represents the behavior of the different controllers for the third MG. Figure 5a represents the resources of MG 3 that was able to participate in the MMG interaction. It can be seen that the RESs were available at MMG level during grid-tied mode, as the grid took care of all the feed from the RESs. Since the MG had a leading power factor, the ESUs were used to absorb this reactive power; thus, S ess , avb , mmg , 3 was smaller compared to the corresponding MG with unity power factor. The NRESs were idle in grid-connected mode; therefore, full capacity was available to participate in the MMG interaction. It can be seen that the MG was quite well self balanced. Thus, there was no P mg , req , 3 and Q mg , req , 3 . It can also be seen that the MG resources were not in excess of those needed in islanded mode; thus, there was also no P mg , cd , 3 and Q mg , cd , 3 . Figure 5b represents the behavior of MGC for the third MG. It can be observed that the MG resources were sufficient for the MG requirements.
Figure 5c represents the behavior of the RESC at MG level. Since the MG was operating at a leading power factor, the stress on the ESUs was higher in islanded mode compared to the second MG. Therefore, we can see that the RESs were controlled to operate at their full potential. A curtailment was observed from 14 to 15 h, representing an excess of RESs. Figure 5d represents the behavior of the NRESC at MG level. The NRESs were kept idle during the grid-tied mode and only operated during islanding, when the other DESs were not able to support the load. The same behavior was observed here. Figure 5e represents the behavior of the ESSC at MG level. Since the MG operated at the leading power factor, we can observe that the ESUs were charged when there was an excess of reactive power. Figure 5f represents the behavior of the EVC at MG level. The first EV chose “minimum time charging mode”, the second EV chose “minimum time fixed cost charging mode”, the third EV chose “minimum cost charging mode”, the fourth EV chose “fixed cost maximum SoC charging mode”, and the fifth EV chose “grid-support mode”. The operating modes were followed by the coordination of MGC and MMGC. Figure 5g represents the behavior of the LC. Since the MG had enough resources, there was no load shedding.

3.4. Response of MG 4

Figure 6 represents the behavior of the different controllers for the fourth MG. This MG was identical to the first MG, with the exception of a high load. Thus, we can see a negative coordination power during the islanding instants from 18 to 19 and 22 to 23 h (see Figure 6a). This means that the MG was not able to meet its load from the available resources and requested support from the MMGC. The MMGC used the geographically nearby MGs that were able to support this MG (see Figure 5a and Figure 7a) to meet the MG demand at MMG level. Figure b represents the behavior of the MGC for this MG. The MGC fulfilled the load demands from the available resources and requested support from the other MGs through the MMGC when the available resources fell short of providing the MG load demands. Figure c represents the behavior of the RESC at the MG level. It can be observed that the RESs were fully utilized. Figure d represents the behavior of the NRESC at MG level. The NRESs were kept idle in grid-tie mode, while they operated in islanded mode only if all the other sources were not able to meet the MG demands. Figure f represents the behavior of the ESSC at MG level. Since the MG had a high load, the ESUs were always discharged in islanded mode. This is in contrast to the behavior of similar MGs with lower load demands. Figure e represents the behavior of the EVC at MG level. The first EV chose “minimum time charging mode”, the second EV chose “minimum time fixed cost charging mode”, the third EV chose“minimum cost charging mode”, the fourth EV chose “fixed cost maximum SoC charging mode”, and the fifth EV chose “grid-support mode”. All the vehicles followed their operating modes. Figure g represents the behavior of the LC in this MG. We observed load shedding when the MGC and MMGC were not able to provide the load.

3.5. Response of MG 5

Figure 7 represents the behavior of the different controllers for the fifth MG. This MG was identical to the first MG, with the exception that it had high RESs. Thus, all the loads were satisfied with no load shedding. Such a MG with excess resources took part in the MMG operation, as is evident from Figure 7a. The ESUs were discharged during islanding if required. Otherwise, the ESUs were kept fully charged. The NRESs remained idle in grid-tie mode and only operated in islanded conditions if required. The EVs are charged and discharged according to their demands with no power shedding or curtailment.
Figure 7. Behavior of MG 5 controllers. (a) MMGC for MG 5; (b) MGC 5; (c) RESC 5; (d) NRESC 5; (e) EVC 5; (f) ESSC 5; (g) LC 5.
Figure 7. Behavior of MG 5 controllers. (a) MMGC for MG 5; (b) MGC 5; (c) RESC 5; (d) NRESC 5; (e) EVC 5; (f) ESSC 5; (g) LC 5.
Sustainability 15 12648 g007aSustainability 15 12648 g007b

4. Conclusions

A novel tetra-level dynamic decomposition based coordinated control of electric vehicles in multimicrogrids is proposed. The proposed control scheme is comprehensive, generic, modular, and secure in nature, with the intention to maximize renewable energy utilization, while meeting the required load. There are a number of microgrids that are connected to the grid. Each microgrid consists of renewable energy sources, energy storage systems, non-renewable energy sources, electric vehicles, and loads. Each distributed energy source or load is controlled by a microsource controller. All the microsource controllers with similar distributed energy sources are put under a unit controller. Thus, there are five unit controllers; namely, a renewable energy source unit controller, energy storage system unit controller, electric vehicle unit controller, non-renewable energy source unit controller, and load unit controller. The unit controllers in a microgrid are controlled by a microgrid controller. There is a single multimicrogrid controller at the top. Electric vehicles can operate in five modes of operation; namely, minimum time charging mode of operation, minimum time fixed cost charging mode of operation, minimum cost charging mode of operation, maximum state of charge fixed cost charging mode of operation, and grid-support mode of operation. The proposed control scheme was verified using simulation-based case studies.
In future, this work could be extended to consider reactive power support from EVs. MMG control could be improved, to take care of MMG interactions during partial islanding; i.e., when some MGs are islanded and some are still grid connected.

Author Contributions

Data curation, M.A.A.; Formal analysis, M.A.A.; Funding acquisition, M.K.; Investigation, S.A.R.K.; Methodology, M.M.G.; Project administration, M.A.; Resources, S.A.R.K.; Supervision, S.A.R.K. and M.K.; Visualization, M.M.G.; Writing—review and editing, M.A. All authors have read and agreed to the published version of the manuscript.

Funding

The authors extend their appreciation to the Deanship of Scientific Research at King Khalid University for funding this work through large group Research Project under grant number RGP2/239/44. In addition, we would like to acknowledge the support received from Saudi Data and AI Authority (SDAIA) and King Fahd University of Petroleum and Minerals (KFUPM) under SDAIA-KFUPM Joint Research Center for Artificial Intelligence, Dhahran 31261, KSA.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
BESSBattery Based Energy Storage System
DESDistributed Energy Source
ESSEnergy Storage System
ESSCEnergy Storage System Unit Controller
ESUEnergy Storage Unit
EVElectric Vehicle
EVCElectric Vehicle Unit Controller
LCLoad Unit Controller
MCMicrosource Controller
MGMicrogrid
MGCMicrogrid Controller
MMGMultimicrogrid
MMGCMultimicrogrid Controller
MPPTMaximum Power Point Tracking
NRESNon Renewable Energy Source
NRESCNon Renewable Energy Source Unit Controller
PCCPoint of Common Coupling
RESRenewable Energy Source
RESCRenewable Energy Source Unit Controller
SoCState of Charge
UCUnit Controller

References

  1. K.S., N.; Gaonkar, D.N.; N.S., J. Operation and control of multiple electric vehicle load profiles in bipolar microgrid with photovoltaic and battery energy systems. J. Energy Storage 2023, 57, 106261. [Google Scholar] [CrossRef]
  2. Rastgoo, S.; Mahdavi, Z.; Azimi Nasab, M.; Zand, M.; Padmanaban, S. Using an Intelligent Control Method for Electric Vehicle Charging in Microgrids. World Electr. Veh. J. 2022, 13, 222. [Google Scholar] [CrossRef]
  3. Gulzar, M.M.; Sibtain, D.; Khalid, M. Cascaded Fractional Model Predictive Controller for Load Frequency Control in Multiarea Hybrid Renewable Energy System with Uncertainties. Int. J. Energy Res. 2023, 2023, 5999997. [Google Scholar] [CrossRef]
  4. Zou, M.; Yang, Y.; Liu, M.; Wang, W.; Jia, H.; Peng, X.; Su, S.; Liu, D. Optimization Model of Electric Vehicles Charging and Discharging Strategy Considering the Safe Operation of Distribution Network. World Electr. Veh. J. 2022, 13, 117. [Google Scholar] [CrossRef]
  5. Mal, S.; Chattopadhyay, A.; Yang, A.; Gadh, R. Electric vehicle smart charging and vehicle-to-grid operation. Int. J. Parallel Emergent Distrib. Syst. 2013, 28, 249–265. [Google Scholar] [CrossRef]
  6. Ferreira, J.C.; Monteiro, V.; Afonso, J.L.; Silva, A. Smart electric vehicle charging system. In Proceedings of the 2011 IEEE Intelligent Vehicles Symposium (IV), Baden-Baden, Germany, 5–9 June 2011; pp. 758–763. [Google Scholar] [CrossRef]
  7. Zhang, Z.; Gu, D. Impacts of charging plug-in hybrid electric vehicles on the electric grid and its charging strategies. In Proceedings of the 2012 Power Engineering and Automation Conference, Wuhan, China, 18–20 September 2012; pp. 1–4. [Google Scholar] [CrossRef]
  8. Xydas, E.; Marmaras, C.; Cipcigan, L.M. A multi-agent based scheduling algorithm for adaptive electric vehicles charging. Appl. Energy 2016, 177, 354–365. [Google Scholar] [CrossRef]
  9. Wang, D.; Guan, X.; Wu, J.; Li, P.; Zan, P.; Xu, H. Integrated Energy Exchange Scheduling for Multimicrogrid System With Electric Vehicles. IEEE Trans. Smart Grid 2016, 7, 1762–1774. [Google Scholar] [CrossRef]
  10. Ahmadi, S.E.; Marzband, M.; Ikpehai, A.; Abusorrah, A. Optimal stochastic scheduling of plug-in electric vehicles as mobile energy storage systems for resilience enhancement of multi-agent multi-energy networked microgrids. J. Energy Storage 2022, 55, 105566. [Google Scholar] [CrossRef]
  11. Pamulapati, T.; Cavus, M.; Odigwe, I.; Allahham, A.; Walker, S.; Giaouris, D. A Review of Microgrid Energy Management Strategies from the Energy Trilemma Perspective. Energies 2023, 16, 289. [Google Scholar] [CrossRef]
  12. Battula, A.R.; Vuddanti, S.; Salkuti, S.R. Review of Energy Management System Approaches in Microgrids. Energies 2021, 14, 5459. [Google Scholar] [CrossRef]
  13. Al-Ghaili, A.M.; Kasim, H.; Aris, H.; Al-Hada, N.M. Can electric vehicles be an alternative for traditional fossil-fuel cars with the help of renewable energy sources towards energy sustainability achievement? Energy Inform. 2022, 5, 60. [Google Scholar] [CrossRef]
  14. Sibtain, D.; Mushtaq, M.A.; Murtaza, A.F. Adaptive design and implementation of fractional order PI controller for a multi-source (Battery/UC/FC) hybrid electric vehicle. Energy Sources Part A Recover. Util. Environ. Eff. 2022, 44, 8996–9016. [Google Scholar] [CrossRef]
  15. Tamrakar, U.; Shrestha, D.; Maharjan, M.; Bhattarai, B.P.; Hansen, T.M.; Tonkoski, R. Virtual Inertia: Current Trends and Future Directions. Appl. Sci. 2017, 7, 654. [Google Scholar] [CrossRef]
  16. Yazdanian, M.; Mehrizi-Sani, A. Distributed Control Techniques in Microgrids. IEEE Trans. Smart Grid 2014, 5, 2901–2909. [Google Scholar] [CrossRef]
  17. Kroposki, B.; Johnson, B.; Zhang, Y.; Gevorgian, V.; Denholm, P.; Hodge, B.; Hannegan, B. Achieving a 100% Renewable Grid: Operating Electric Power Systems with Extremely High Levels of Variable Renewable Energy. IEEE Power Energy Mag. 2017, 15, 61–73. [Google Scholar] [CrossRef]
  18. Kroposki, B. Integrating high levels of variable renewable energy into electric power systems. J. Mod. Power Syst. Clean Energy 2017, 5, 831–837. [Google Scholar] [CrossRef]
  19. Worighi, I.; Maach, A.; Hafid, A.; Hegazy, O.; Mierlo, J.V. Integrating renewable energy in smart grid system: Architecture, virtualization and analysis. Sustain. Energy Grids Netw. 2019, 18, 100226. [Google Scholar] [CrossRef]
  20. Mararakanye, N.; Bekker, B. Renewable energy integration impacts within the context of generator type, penetration level and grid characteristics. Renew. Sustain. Energy Rev. 2019, 108, 441–451. [Google Scholar] [CrossRef]
  21. Phuangpornpitak, N.; Tia, S. Opportunities and Challenges of Integrating Renewable Energy in Smart Grid System. Energy Procedia 2013, 34, 282–290. [Google Scholar] [CrossRef]
  22. Rakhshani, E.; Rouzbehi, K.; J. Sánchez, A.; Tobar, A.C.; Pouresmaeil, E. Integration of Large Scale PV-Based Generation into Power Systems: A Survey. Energies 2019, 12, 1425. [Google Scholar] [CrossRef]
  23. Kumar, G.V.B.; Sarojini, R.K.; Palanisamy, K.; Padmanaban, S.; Holm-Nielsen, J.B. Large Scale Renewable Energy Integration: Issues and Solutions. Energies 2019, 12, 1996. [Google Scholar] [CrossRef]
  24. Hache, E.; Palle, A. Renewable energy source integration into power networks, research trends and policy implications: A bibliometric and research actors survey analysis. Energy Policy 2019, 124, 23–35. [Google Scholar] [CrossRef]
  25. Xu, Z.; Yang, P.; Zheng, C.; Zhang, Y.; Peng, J.; Zeng, Z. Analysis on the organization and Development of multi-microgrids. Renew. Sustain. Energy Rev. 2018, 81, 2204–2216. [Google Scholar] [CrossRef]
  26. Wu, P.; Huang, W.; Tai, N.; Liang, S. A novel design of architecture and control for multiple microgrids with hybrid AC/DC connection. Appl. Energy 2018, 210, 1002–1016. [Google Scholar] [CrossRef]
  27. Yoo, H.J.; Nguyen, T.T.; Kim, H.M. Multi-Frequency Control in a Stand-Alone Multi-Microgrid System Using a Back-To-Back Converter. Energies 2017, 10, 822. [Google Scholar] [CrossRef]
  28. Majumder, R.; Bag, G. Parallel operation of converter interfaced multiple microgrids. Int. J. Electr. Power Energy Syst. 2014, 55, 486–496. [Google Scholar] [CrossRef]
  29. Shafiee, Q.; Dragičević, T.; Vasquez, J.C.; Guerrero, J.M. Hierarchical Control for Multiple DC-Microgrids Clusters. IEEE Trans. Energy Convers. 2014, 29, 922–933. [Google Scholar] [CrossRef]
  30. Gulzar, M.M.; Iqbal, M.; Shahzad, S.; Muqeet, H.A.; Shahzad, M.; Hussain, M.M. Load Frequency Control (LFC) Strategies in Renewable Energy-Based Hybrid Power Systems: A Review. Energies 2022, 15, 3488. [Google Scholar] [CrossRef]
  31. Chen, J.; Chen, C.; Duan, S. Cooperative Optimization of Electric Vehicles and Renewable Energy Resources in a Regional Multi-Microgrid System. Appl. Sci. 2019, 9, 2267. [Google Scholar] [CrossRef]
  32. N.S., J.; Jadoun, V.K.; Gaonkar, D.; Shrivastava, A.; Kanwar, N.; K.K., N. Optimal operation of multi-source electric vehicle connected microgrid using metaheuristic algorithm. J. Energy Storage 2022, 52, 105067. [Google Scholar] [CrossRef]
  33. Lan, T.; Jermsittiparsert, K.; T. Alrashood, S.; Rezaei, M.; Al-Ghussain, L.; A. Mohamed, M. An Advanced Machine Learning Based Energy Management of Renewable Microgrids Considering Hybrid Electric Vehicles’ Charging Demand. Energies 2021, 14, 569. [Google Scholar] [CrossRef]
  34. Hai, T.; Zhou, J.; K. Alazzawi, A.; Muranaka, T. Management of renewable-based multi-energy microgrids with energy storage and integrated electric vehicles considering uncertainties. J. Energy Storage 2023, 60, 106582. [Google Scholar] [CrossRef]
  35. Khokhar, B.; Dahiya, S.; Parmar, K.P.S. Load Frequency Control of a Multi-Microgrid System Incorporating Electric Vehicles. Electr. Power Compon. Syst. 2021, 49, 867–883. [Google Scholar] [CrossRef]
  36. Zou, Y.; Dong, Y.; Li, S.; Niu, Y. Multi-time hierarchical stochastic predictive control for energy management of an island microgrid with plug-in electric vehicles. IET Gener. Transm. Distrib. 2019, 13, 1794–1801. [Google Scholar] [CrossRef]
  37. Tan, B.; Chen, H.; Zheng, X.; Huang, J. Two-stage robust optimization dispatch for multiple microgrids with electric vehicle loads based on a novel data-driven uncertainty set. Int. J. Electr. Power Energy Syst. 2022, 134, 107359. [Google Scholar] [CrossRef]
  38. Tan, B.; Chen, H. Multi-objective energy management of multiple microgrids under random electric vehicle charging. Energy 2020, 208, 118360. [Google Scholar] [CrossRef]
  39. Rehman, H.U.; Yan, X.; Abdelbaky, M.A.; Jan, M.U.; Iqbal, S. An advanced virtual synchronous generator control technique for frequency regulation of grid-connected PV system. Int. J. Electr. Power Energy Syst. 2021, 125, 106440. [Google Scholar] [CrossRef]
  40. Mabrouk, E.; Maach, A. Assessing the Impact of Electric Vehicle Fleets on a Multi-Microgrids System Under Different Operating Modes. Turk. J. Comput. Math. Educ. 2021, 12, 1000–1014. [Google Scholar] [CrossRef]
  41. Yu, Z.; Dou, Z.; Zhao, Y.; Xie, R.; Qiao, M.; Wang, Y.; Liu, L. Grid Scheduling Strategy Considering Electric Vehicles Participating in Multi-microgrid Interaction. J. Electr. Eng. Technol. 2022. [Google Scholar] [CrossRef]
  42. Ali, A.Y.; Hussain, A.; Baek, J.W.; Man-Kim, H. An algorithm to enhance the profit margin of electric vehicle owners and resilience of multi-microgrid using EV. J. Electr. Eng. Technol. 2022, 17, 2161–2169. [Google Scholar] [CrossRef]
  43. Mauricette, L.; Dong, Z.; Zhang, L.; Zhang, X.; Zhang, N.; Strbac, G. Resilience enhancement of an urban energy system via coordinated vehicle-to-grid control strategies. CSEE J. Power Energy Syst. 2022, 9, 433–443. [Google Scholar] [CrossRef]
  44. Wang, J.; Li, K.J.; Javid, Z.; Sun, Y. Distributed Optimal Coordinated Operation for Distribution System with the Integration of Residential Microgrids. Appl. Sci. 2019, 9, 2136. [Google Scholar] [CrossRef]
  45. Wang, P.; Wang, D.; Zhu, C.; Yang, Y.; Abdullah, H.M.; Mohamed, M.A. Stochastic management of hybrid AC/DC microgrids considering electric vehicles charging demands. Energy Rep. 2020, 6, 1338–1352. [Google Scholar] [CrossRef]
  46. Kaewdornhan, N.; Srithapon, C.; Chatthaworn, R. Electric Distribution Network With Multi-Microgrids Management Using Surrogate-Assisted Deep Reinforcement Learning Optimization. IEEE Access 2022, 10, 130373–130396. [Google Scholar] [CrossRef]
  47. Cavallo, A.; Canciello, G.; Guida, B.; Kulsangcharoen, P.; Yeoh, S.S.; Rashed, M.; Bozhko, S. Multi-Objective Supervisory Control for DC/DC Converters in Advanced Aeronautic Applications. Energies 2018, 11, 3216. [Google Scholar] [CrossRef]
  48. Canciello, G.; Cavallo, A.; Lo Schiavo, A.; Russo, A. Multi-objective adaptive sliding manifold control for More Electric Aircraft. ISA Trans. 2020, 107, 316–328. [Google Scholar] [CrossRef] [PubMed]
  49. Ahmad, A.; Kashif, S.A.R.; Ashraf, A.; Gulzar, M.M.; Alqahtani, M.; Khalid, M. Coordinated Economic Operation of Hydrothermal Units with HVDC Link Based on Lagrange Multipliers. Mathematics 2023, 11, 1610. [Google Scholar] [CrossRef]
  50. Gulzar, M.M.; Gardezi, S.; Sibtain, D.; Khalid, M. Discrete-Time Modeling and Control for LFC Based on Fuzzy Tuned Fractional-Order PDμ Controller in a Sustainable Hybrid Power System. IEEE Access 2023, 11, 63271–63287. [Google Scholar] [CrossRef]
  51. Liu, X.; Gao, B.; Zhu, Z.; Tang, Y. Non-cooperative and cooperative optimisation of battery energy storage system for energy management in multi-microgrid. IET Gener. Transm. Distrib. 2018, 12, 2369–2377. [Google Scholar] [CrossRef]
  52. Siddique, A.B.; Gabbar, H.A. Adaptive Mixed-Integer Linear Programming-Based Energy Management System of Fast Charging Station with Nuclear–Renewable Hybrid Energy System. Energies 2023, 16, 685. [Google Scholar] [CrossRef]
  53. Padhilah, F.A.; Kim, K.H. A Centralized Power Flow Control Scheme of EV-Connected DC Microgrid to Satisfy Multi-Objective Problems under Several Constraints. Sustainability 2021, 13, 8863. [Google Scholar] [CrossRef]
  54. Chen, L.; Yu, W.; Cheng, G.; Wang, J. State-of-charge estimation of lithium-ion batteries based on fractional-order modeling and adaptive square-root cubature Kalman filter. Energy 2023, 271, 127007. [Google Scholar] [CrossRef]
  55. Gulzar, M.M.; Iqbal, A.; Sibtain, D.; Khalid, M. An innovative converterless solar PV control strategy for a grid connected hybrid PV/wind/fuel-cell system coupled with battery energy storage. IEEE Access 2023, 11, 23245–23259. [Google Scholar] [CrossRef]
  56. Zandrazavi, S.F.; Guzman, C.P.; Pozos, A.T.; Quiros-Tortos, J.; Franco, J.F. Stochastic multi-objective optimal energy management of grid-connected unbalanced microgrids with renewable energy generation and plug-in electric vehicles. Energy 2022, 241, 122884. [Google Scholar] [CrossRef]
  57. Masrur, H.; Shafie-Khah, M.; Hossain, M.J.; Senjyu, T. Multi-Energy Microgrids Incorporating EV Integration: Optimal Design and Resilient Operation. IEEE Trans. Smart Grid 2022, 13, 3508–3518. [Google Scholar] [CrossRef]
  58. Molzahn, D.K.; Dörfler, F.; Sandberg, H.; Low, S.H.; Chakrabarti, S.; Baldick, R.; Lavaei, J. A Survey of Distributed Optimization and Control Algorithms for Electric Power Systems. IEEE Trans. Smart Grid 2017, 8, 2941–2962. [Google Scholar] [CrossRef]
  59. Karaarslan, A.; Seker, M.E. Distributed Control of Microgrids. In Microgrid Architectures, Control and Protection Methods; Mahdavi Tabatabaei, N., Kabalci, E., Bizon, N., Eds.; Springer International Publishing: Cham, Switzerland, 2020; pp. 403–422. [Google Scholar]
  60. Aslam, M.A.; Kashif, S.A.R.; Abbas, G.; Ullah, N.; Prokop, L.; Blazek, V.; Misak, S. A Comprehensive Decomposition Based Hierarchical Heuristic Control of Multimicrogrids. IEEE Access 2022, 10, 131611–131626. [Google Scholar] [CrossRef]
Figure 1. Basic control structure of the MMG network. A line diagram of the network is represented in black. The sphere of influence of each hierarchical controller is represented by a rectangular box.
Figure 1. Basic control structure of the MMG network. A line diagram of the network is represented in black. The sphere of influence of each hierarchical controller is represented by a rectangular box.
Sustainability 15 12648 g001
Figure 2. Detailed layout of the control scheme.
Figure 2. Detailed layout of the control scheme.
Sustainability 15 12648 g002
Figure 3. Behavior of MG 1 controllers. (a) MMGC for MG 1; (b) MGC 1; (c) RESC 1; (d) NRESC 1; (e) EVC 1; (f) ESSC 1; (g) LC 1.
Figure 3. Behavior of MG 1 controllers. (a) MMGC for MG 1; (b) MGC 1; (c) RESC 1; (d) NRESC 1; (e) EVC 1; (f) ESSC 1; (g) LC 1.
Sustainability 15 12648 g003
Figure 4. Behavior of MG 2 controllers. (a) MMGC for MG 2; (b) MGC 2; (c) RESC 2; (d) NRESC 2; (e) EVC 2; (f) ESSC 2; (g) LC 2.
Figure 4. Behavior of MG 2 controllers. (a) MMGC for MG 2; (b) MGC 2; (c) RESC 2; (d) NRESC 2; (e) EVC 2; (f) ESSC 2; (g) LC 2.
Sustainability 15 12648 g004
Figure 5. Behavior of MG 3 controllers. (a) MMGC for MG 3; (b) MGC 3; (c) RESC 3; (d) NRESC 3; (e) EVC 3; (f) ESSC 3; (g) LC 3.
Figure 5. Behavior of MG 3 controllers. (a) MMGC for MG 3; (b) MGC 3; (c) RESC 3; (d) NRESC 3; (e) EVC 3; (f) ESSC 3; (g) LC 3.
Sustainability 15 12648 g005
Figure 6. Behavior of MG 4 controllers. (a) MMGC for MG 4; (b) MGC 4; (c) RESC 4; (d) NRESC 4; (e) EVC 4; (f) ESSC 4; (g) LC 4.
Figure 6. Behavior of MG 4 controllers. (a) MMGC for MG 4; (b) MGC 4; (c) RESC 4; (d) NRESC 4; (e) EVC 4; (f) ESSC 4; (g) LC 4.
Sustainability 15 12648 g006aSustainability 15 12648 g006b
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Aslam, M.A.; Kashif, S.A.R.; Gulzar, M.M.; Alqahtani, M.; Khalid, M. A Novel Multi Level Dynamic Decomposition Based Coordinated Control of Electric Vehicles in Multimicrogrids. Sustainability 2023, 15, 12648. https://doi.org/10.3390/su151612648

AMA Style

Aslam MA, Kashif SAR, Gulzar MM, Alqahtani M, Khalid M. A Novel Multi Level Dynamic Decomposition Based Coordinated Control of Electric Vehicles in Multimicrogrids. Sustainability. 2023; 15(16):12648. https://doi.org/10.3390/su151612648

Chicago/Turabian Style

Aslam, Muhammad Anique, Syed Abdul Rahman Kashif, Muhammad Majid Gulzar, Mohammed Alqahtani, and Muhammad Khalid. 2023. "A Novel Multi Level Dynamic Decomposition Based Coordinated Control of Electric Vehicles in Multimicrogrids" Sustainability 15, no. 16: 12648. https://doi.org/10.3390/su151612648

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop