1 Introduction

Distributed Energy Storage Systems (DESSs) are widely used in MG operation in order to assist RESs which have intermittent nature [1]. The mix of DESSs with RESs improves significantly the MG reliability, flexibility and power quality [2]. ESSs are vital in islanded MG in order to compensate the short-term mismatch power between RESs and loads [3].

Coordinated control is indispensable in this case to achieve power management between RESs, energy storage and loads in order to enhance the MG reliability, flexibility and power quality. This coordinated control is used to balance and maintain the SoC of DESSs in a certain range (20–90%), to maintain generation/consumption balance and to regulate frequency/voltage.

DESSs and RESs power management strategy has many benefits. First, DESSs SoC balancing extends their lifetime by avoiding deep discharge and surcharge and reducing the BESSs charge/discharge cycles that caused premature ageing. Second generation/consumption balance allows to supply power to critical loads longer especially when a power mismatch between distributed generators (RESs and DESSs) and loads is observed.

Coordinated control can be achieved by using a centralized (Fig. 1) or a distributed architecture controller. A centralized architecture uses a MGCC (Microgrid Central Controller) to achieve the power management between DESSs and RESs by exchanging data with all DGs while a distributed architecture controller only exchanges information between DGs through a sparse communication network. In a distributed architecture, each agent receives information from its neighbors. Unlike centralized control architecture which has a unique point of failure (MGCC default), the distributed architecture allows the continuity of system control when a communication failure happens and improves the system reliability and expandability.

Fig. 1
A schematic of the configuration for an A C microgrid system from the main grid to the various storage systems such as residential loads, wind energy, solar energy, E V station, and 2 BESS. Each has a load controller originating from M G C C.

Typical configuration for an AC microgrid system with distributed storage systems

Many methods have been proposed to ensure coordinated control between RESs and DESSs. Conventionally, centralized control is used for the coordinated operation of DESSs, RESs units and loads. Reference [4] used a centralized control architecture for the coordinated operation, where SoC equalization is achieved between DESSs with different capacities by adjusting the frequency droop gain value. Nevertheless, centralized architecture control possesses the single point of failure that may cause loss of the coordination of the Microgrid and modifying the droop gain may bring stability issues. In [5], a distributed control based on leader-follower is implemented to ensure power management and DESSs SoC balancing. In order to maintain generation/consumption balance, load shedding and PV curtailment are introduced. However, since this strategy was used in DC MG, frequency regulation is not implemented.

In this paper, a fully distributed control is used for coordinated operation of DESSs, RESs units and loads to ensure a reliable and stable operation of an AC islanded MG based PV-DESSs. The power management strategy achieves PV active power curtailment to prevent DESSs surcharge; loads shedding to avoid the storage systems from deep discharge and DESSs SoC balancing in order to reduce the storage systems charge/discharge cycles that caused premature ageing and to avoid uneven degradation. The Adaptive Frequency Droop based on Virtual Power (AFDVP) method is used for SoC synchronization. This method introduces a virtual power in the P- ω equation of the droop that is determined with a simple PI controller. In addition, frequency and voltage regulation is implemented in a distributed control architecture. In this proposal, active power curtailment, loads shedding, SoC balancing as well as frequency and voltage restoration are achieved in a fully distributed architecture controller therefore the proposed method is robust against communication failure. Information in this architecture is exchanged through a sparse communication network. The main contributions of this proposal are as follows:

  1. 1.

    The proposed coordinated control is fully distributed without a leader-follower strategy and is resilient to communication failure.

  2. 2.

    Frequency regulation is implemented in coordinated control with SoC balancing to maintain the frequency of the DGs at the nominal frequency of the MG.

  3. 3.

    Proposed algorithms for load shedding and PV curtailment are simple to implement.

The rest of the paper is organized as follows: In Sect. 2, the studied system is presented. AFDVP and voltage/frequency regulation method implementation in a distributed control architecture are investigated in Sect. 3. In Sect. 4, coordinated control algorithm for PV-DESSs based islanded MG is explained. Simulation results are presented in Sects. 5 and 6 concludes this paper.

2 Studied System

The general synoptic scheme of the studied system is presented in Fig. 2. This System represents an islanded AC Microgrid with two batteries and photovoltaic source supplying three loads (two non-critical and constant loads and one critical and variable load) connected the AC bus. All Distributed Generators (DESSs and PV) are relied to the AC bus through inverters. In the next section, the AFDVP strategy is presented, to ensure DESSs SoC synchronization.

Fig. 2
A schematic diagram of the studied system. In the diagram, D G 1, D G 2, and D G 3 are connected to no-critical load, critical load, and no-critical load through filters, lines, and switches. A C bus passes vertically through all circuits.

Studied system

3 SoC Balancing and Voltage/Frequency Regulation in a Fully Distributed Architecture Controller

Distributed control is recently widely used in MG especially for secondary control. It is a promising approach to enhance islanded MG reliability, stability and performance [6]. Many works have been already proposed to ensure distributed secondary control [7,8,9]. Distributed control has many advantages such as reduction of the communication infrastructure cost, reduction of computational burden, is more reliable and adapted for large and complex MG compare to the centralized control.

In this section, a fully distributed control architecture is used for DESSs SoC synchronization and voltage/frequency restoration.

3.1 Graph Theory and Distributed Control Based on Consensus

The communication network can be expressed by a graph G = (V, E), with V = {v1, v2, …, vN}, the set of N nodes or N agents and E ⊆ V × V, the set of edges or arcs. Elements of E are denoted as (vi, vj) and represent the arcs from node vi to node vj and are represented with arrows at unique or double direction depending on the information flow between the two agents (unidirectional or bidirectional) as represented in Fig. 3.

Fig. 3
A graph has four agents 1 to 4. Agents 1 and 2, agents 1 and 3, and agents 4 and 3 are connected unidirectionally. Agents 3 and 4, agents 1 and 4, and agents 2 and 3 are connected bidirectionally.

Graph with four agents

Each edge (vi, vj) is associated with a weight aij > 0 if vi receives information from vj else aij = 0. The adjacency matrix is defined as: A = [aij] and the graph Laplacian matrix as L = D–A. D the diagonal matrix is defined as: D =  diag {di} and \( {d}_i={\sum}_{j=1}^N{a}_{ij} \).

In order to bring all the agents (xj) to converge to the same value (x0), the distributed control-based consensus protocol is defined as:

$$ {\upmu}_i={\sum}_{j=1}^N{a}_{ij}\left({x}_j-{x}_i\right)+{b}_i\left({x}_i-{x}_0\right) $$
(1)

where bi >0 if the agent vi has the information about the consensus value, otherwise bi = 0.

With this protocol, the global dynamics of the consensus control protocol can be defined as:

$$ \dot{X}=K\left(- LX+B\left({X}_0-X\right)\right) $$
(2)

where X = [x1, …, xN]; X0 = [x01, …, x0N]; B = diag {bi}, the diagonal pinning matrix; L = D − A, the Laplacian matrix and K, the consensus gain.

For the studied system defined in Fig. 2, the adjacency matrix A and Laplacian Matrix L can be defined respectively as:

$$ A=\left(\begin{array}{ccc}0& 1& 1\\ {}1& 0& 1\\ {}1& 1& 0\end{array}\right),L=\left(\begin{array}{ccc}\kern0.75em 2& -1& -1\\ {}-1& \kern0.75em 2& -1\\ {}-1& -1& \kern0.75em 2\end{array}\right);\textrm{B}=\left(\begin{array}{ccc}1& 0& 0\\ {}0& 1& 0\\ {}0& 0& 1\end{array}\right) $$

3.2 DESSs SoC Balancing and Voltage/Frequency Regulation

In this section, a distributed control-based consensus control is used for frequency/voltage regulation and the AFDVP method in [10] is used for DESSs SoCs synchronization. Equations for the distributed control-based consensus to calculate f & V compensators are designed as follows:

$$ \dot{X_v}={K}_v\left(-L\overline{V}+B\left(\overline{V_n}-\overline{V}\right)\right)\vspace*{-25pt} $$
(3)
$$ \dot{X_{\omega }}={K}_{\omega}\left(- LW+B\left({W}_n-W\right)\right) $$
(4)

with \( {X}_v={\left[{x}_{1v},{x}_{2v},{x}_{3v}\right]}^{\prime };\overline{V}={\left[{V}_1,{V}_2,{V}_3\right]}^{\prime } \); \( \overline{V_n}={\left[{V}_{\textrm{n}},{V}_{\textrm{n}},{V}_{\textrm{n}}\right]}^{\prime } \)Xω = [x1ω, x2ω, x3ω] W = [ω1, ω2, ω3]; Wn = [ωn, ωn, ωn]; where Kv, Kω: voltage and frequency consensus control gain respectively; L: Laplacian matrix; B: diagonal pinning Matrix and xiv, x: voltage and frequency compensator of the DESSi respectively.

The global dynamic equations for voltage/frequency restoration and SoC equalization are as follows:

$$ {V}_i={V}_n-{n}_i\left({Q}_i-{Q}_{in}\right)+{\boldsymbol{x}}_{\boldsymbol{iv}}\vspace*{-6pt} $$
(5)
$$ {\omega}_i={\omega}_n-{m}_i\left({P}_i-{P}_{in}+{\boldsymbol{P}}_{\boldsymbol{i}\boldsymbol{SoC}}\right)+{\boldsymbol{x}}_{\boldsymbol{i}\omega }\vspace*{-6pt} $$
(6)
$$ {P}_{iSoC}={K}_{pSoC}\Delta {SoC}_i+{K}_{iSoC}\int \Delta {SoC}_i dt\vspace*{-6pt} $$
(7)

with PiSoC: the virtual power for SoC balancing; KpSoC: the PI proportional coefficient; KiSoC : the PI integrator coefficient.

In the next section, proposed algorithms for PV active power reduction and load shedding are presented.

4 Proposed Fully Distributed Control for RESs and DESSs Coordinated Operation

This section introduces a fully distributed control for coordinated operation of DESSs, RESs units and loads to ensure a reliable and stable operation of an AC Microgrid. The optimized power management strategy should ensure PV active power curtailment (during daytime when PV generation is maximum and DESSs are almost fully charged) to prevent DESSs surcharge and loads shedding in order to avoid deep surcharge during night (no PV generation). This proposal also includes a management for critical loads (CL) and non-critical loads (NL). Non-critical loads should be disconnected first when DESSs state of charge is below the minimum state of charge (SoCmin). Then, critical load should be disconnected to the MG only when DESSs SoCs reach a critical value (SoCminc). Loads are reconnected only when DESSs SoCs reach a value of safe reconnection (SoCr for non-critical loads and SoCrc for critical loads).

The proposed method to ensure load shedding, uses signals based on DESSs SoCs (si and sci) which are exchanged between the DESSs. Each DESS sends a signal to the loads according to its local information, information received from its neighbors and the loads (critical and non-critical). Loads are disconnected if one of the DESSs SoCs reach a minimum value (SoCmin _ NLSoCmin _ CL) and reconnected if all DESSs SoCs reach a safe range for reconnection (SoCr _ NL or SoCr _ CL). The proposed strategy algorithm for load shedding is reported in Fig. 4.

Fig. 4
A schematic of the proposed strategy and algorithm for load shedding. The schematic is divided into 2 sections namely, D E S S i and loads. The loads section is divided into non-critical loads and critical loads.

Algorithm for load shedding (mode 2) and reconnection (mode 3)

PV curtailment is ensured thanks to signals (ki) that are exchanged between DESSs and PV. When DESSs states of charge reach the maximum value (SoCmax), PV active power (Ppv) is reduced according to the curtailment coefficient (kpv) calculated using the loads total active power (PLoads) sends by the loads to the PV unit local controller. kpv is determined in order to maintain the SoC of DESSs at SoCmax (SoCi = SoCmax, Ppv = PLoads, PDESSs = 0). Proposed algorithm for PV curtailment is represented in Fig. 5. All operational mode of the MG is reported in Fig. 6.

Fig. 5
A schematic chart of the algorithm for P V curtailment. The chart has 2 sections titled D E S S i and P V. D E S S i with the algorithm leads to P V with the algorithm for loads.

Algorithm for PV curtailment (mode 4)

Fig. 6
A graph has modes 1 to 4. These are normal, load-shedding, load reconnection, and P V curtailment modes, respectively. The transitions are. Mode 1 to 2 when S o C is less than S o C minimum. Mode 2 to 3 when S o C is greater than S o C critical. Mode 3 to 1 when S o C is between S o C minimum and maximum. Mode 1 to 4 when S o C is greater than S o C maximum. Mode 4 to 1 when P p v is less than P loads.

Operations modes of the MG

The global communication network of the whole MG is represented in Fig. 7.

Fig. 7
A graph of the global communication network system has D G 1 to 3, and loads interconnected through different values of P V curtailment signal, load active power, frequency, voltage amplitude, D E S S S o C state, average S o C error, and load switch signal.

Global communication network system

5 Simulation Results

To investigate the proposed coordinated strategy, a MATLAB/Simulink simulation is performed on the studied system reported in Fig. 2 for 1 day of operation with a typical PV active power curve and residential load consumption. Systems parameters are reported in Table 1. Two tests are realized: First test is realized to validate the effectiveness of the proposed power management strategy without communication failure. Second test is performed to show the resilience and robustness of the proposed coordinated control in the event of a communication network failure. For both tests, the DESS 1 and 2 SoCs are set initially to 87% and 80% respectively and all three loads are also connected to the MG.

Table 1 System parameters

5.1 Test 1: Typical Day Operation

First test is devoted to validate the effectiveness of the proposed method. The simulation results are reported in Fig. 8. PV active power and residential load active power profile for the day are represented in Fig. 8a. Loads switches signals and PV curtailment coefficient are reported in Fig. 8b. The SoC of the DESSs are presented in Fig. 8d and DGs active power in Fig. 8c.

Fig. 8
a to f are line graphs of active power, signals, active power, S o C %, frequency, and voltage, respectively, versus time. a plots for P V and load. b plots for on off N L, C L and k p v. c plots for D Gs active power. d plots for S o C of D Gs. e and f plot 3 lines for D Gs.

Typical day operation of the islanded MG: (a) Load and PV power profile (b) Control signals (c) DGs active power (d) SoC of DGs (e) Frequency of DGs (f) Voltage of DGs

At 0 h to 4 h, PPV = 0 only the batteries ensure power supply to the loads. However, at 6 h 51 min, even if PV started to supply power, the CPL 1 and 3 are plugged-out when SoCi < SoCmin _ NL (45%). At this moment, batteries started to recharge since PPV < PLoads. Batteries are recharged to SoCr _ NL (70%) then the CLP 1 and 3 are reconnected to the grid at 11 h 04 min. PV curtailment mode is activated at 13 h 37 min as soon as the SoC of BESSs reaches SoCmax (90%) until PPV < PLoads at 16 h. The MG operates in normal mode, photovoltaic and batteries ensure the power supply of the loads.

It is also worth mentioning that voltage (Fig. 8f) and frequency (Fig. 8e) are maintained to their nominal value during the MG operation despite load shedding and variation. Slight peaks of DESSs voltage and frequency appear during load variations. However, these peaks are negligible compare to the limited variations range. The SoCs of all BESSs are also well synchronized during the operating day.

5.2 Test 2: Communication Network Failure

Second test is dedicated to the robustness of the proposed method against communication failure. In order to see the impact of communication failure on the proposed coordinated method, a communication link failure between the agent 1 and 3 is simulated as reported in Fig. 9. Information exchange between the DG1 and the DG3 is no longer possible (a13 = 0 and a31 = 0). PV active power and the residential load active power profile for 1 day are the same as those used in the first test and are shown in Fig. 10a. The simulation results are illustrated in Fig. 10 Loads switches signals and PV curtailment coefficient are reported in Fig. 10b. The SoC of the DESSs are presented in Fig. 10d and DGs active power in Fig. 10c.

Fig. 9
A schematic chart of the communication failure event between D G 1 and D G 3. D G 1, 2, 3, and loads are interconnected bidirectionally. The connection between D 1 and D 3 is labeled failure. The connection from loads to D G 3 is unidirectional.

Communication failure event between DG1 and DG3

Fig. 10
a to f are line graphs of active power, signals, active power, S o C %, frequency, and voltage, respectively, versus time. a plots for P V and load. b plots for on off N L, C L and k p v. c plots for D Gs active power. d plots for S o C of D Gs. e and f plot 3 lines for D Gs.

Test with communication failure between DG1 and DG3: (a) Load and PV power profile (b) Control signals (c) DGs active power (d) SoC of DGs (e) Frequency of DGs (f) Voltage of DGs

Results show that despite the loss of communication between the two agents (1 and 3), the coordinated control (load shedding and PV curtailment) continues to works perfectly. Indeed, even if the information on the state of the DG1 is not directly received by the DG3, this information is transmitted to the DG2 which will then transmit it to the DG3. The convergence speed of the SoC balancing becomes slower but works properly (Fig. 10d). Frequency and voltage of the DESSs remained to their nominal (Fig. 10e, f) value during all the MG operation therefore their regulation control is also resilient to the loss of the communication link.

6 Conclusions

In this paper a fully distributed control has been proposed to ensure coordinated operation in an autonomous MG based PV-DESSs. The design objective is to achieve power management by ensuring SoC balancing of the DESSs, PV curtailment, load shedding and frequency/voltage regulation. The main contributions are the use of a fully distributed resilient control for the coordinated control, the implementation of frequency regulation and algorithms for PV curtailment and load shedding.

The proposed coordination control is validated through a MATLAB/Simulink simulation for a system of two BESSs and a PV panel linked to an AC bus supplying variable and constant loads. Simulation results show the effectiveness and the resilience of the proposed power management strategy during a typical day of operation and show that all four operations modes of the MG work perfectly even in the event of failure in the communication network.