1. Introduction
Microgrids are gaining more and more attention in recent years as a new kind of miniature power system to cope with the shortage of fossil fuels and environmental pollution [
1,
2,
3]. However, due to the stochasticity and uncertainty of renewable energy output, which can easily bring many negative impacts to microgrids [
4,
5,
6], microgrids are usually equipped with corresponding energy storage systems to work together [
7]. A Battery Energy Storage Device (BESD) is a common energy storage method for microgrids due to its high reliability, mature technology, and other advantages [
8,
9], but with the continuous operation of the system, the State of Charge (SOC) of the batteries will be different, which may cause some BESDs to be over-charged or to exit the operation prematurely due to the low battery level, thus causing the rest of the storage to bear an excessive load, further deteriorating the microgrid operation state and affecting the battery life [
9,
10,
11]. Therefore, if the SOC balancing strategy can be introduced to optimize the power allocation of microgrid energy storage when smoothing out the frequency fluctuation, it is of great significance to make full use of the capacity of energy storage and improve the security and stability of the microgrid [
8,
9,
10,
11].
The current equalization methods for energy storage SOCs in microgrids can be classified into centralized and distributed control strategies according to the presence or absence of a central controller that communicates with each energy storage unit.
In [
8], the authors propose a fuzzy control-based method to equalize the battery SOC and maintaine the stability of the system output voltage. In [
10], the authors use improved sag control to incorporate the battery SOC into the frequency sag equation, thus correcting the energy storage local sag control parameters to realize the energy storage charging and discharging power control. In [
12], the authors propose a hierarchical operation control strategy for multiple energy storage units based on SOC, which can avoid the over-discharging or over-charging of energy storage units and realize the SOC equalization of multiple energy storage units, but there is no communication between the energy storage systems in this method, which may lead to a greatly reduced control effect due to the collection of bad data. In [
13,
14,
15,
16,
17], the authors investigate relatively independent energy storage battery packs, mainly using mutual charging and discharging between energy storage cells as a means of the SOC equalization control. In [
8,
10,
12,
13,
14,
15,
16,
17], the authors use all centralized control strategies, and these control strategies impose extremely high requirements on the reliability of the control center, and the failure of a single point may cause the whole system to fail to work properly. Moreover, most of the traditional methods consider DC microgrids [
18]. In AC microgrids, there are frequency and phase attributes as well as three-phase line characteristics, and the methods for DC microgrids are usually unable to deal with the reactive power distribution and frequency of sag problems in AC microgrids [
19]. In recent years, decentralized distributed control structures have gained popularity among researchers for their higher reliability, scalability, and flexibility [
20]. In [
11], the authors introduce the SOC equalization factor in sag control to achieve the SOC equalization of distributed energy storage units (DESUs) with different power ratings, but the energy storage is not involved in the frequency or voltage control of the microgrid. The authors of [
18,
21] address the frequency sag problem in AC microgrids based on a multi-agent structure and improved sag control, where the agent gives its own estimate of the overall SOC average through consistent iteration and uses this as a criterion to regulate the power output, although the method does not consider that the energy storage system may have different power ratings. In [
21], the authors adopt a distributed structure and propose a two-tier SOC equalization control strategy based on a dynamic consistency algorithm, in which each individual estimates the overall SOC mean and calculates the deviation from its own SOC, and the difference is controlled by PI to form a virtual impedance correction quantity, which then regulates the output power of each energy storage.
In addition, the authors of [
22,
23] propose a distributed control strategy using distributed consensus based on ADMM to manage batteries’ integrations considering different sources of uncertainties. However, these authors did not consider the impact of communication volume on control, as frequent data requests in control algorithms and rapid changes in loads may lead to a significant increase in communication volume between devices. It can cause communication congestion, communication delay, and packet loss. This will result in inaccurate raw data, reduced SOC calculation accuracy, increased calculation iterations, and higher requirements for agent devices and communication networks.
In [
24] the authors consider the difference between different storage capacities and use improved sag control and storage local information to achieve SOC equalization independent of communication. In [
25], an event-driven control structure combined with a consistency algorithm is used to realize power allocation among inverter sources of islanded AC microgrids to achieve a consistent power loading rate, which effectively reduces the frequency of communication between agents, but does not take into account the difference in capacity between individuals.
The main purpose of this paper is to propose a distributed control strategy that can realize microgrid power balance and SOC equalization. To be specific, the contributions of this paper are as follows:
1. Introducing event-driven control to reduce the amount of communication between the MAS agents in the process of achieving SOC equalization, while ensuring the proper SOC equalization control;
2. Accelerating the linear iterative process of agents using consistent parameter optimization methods in distributed control and convergence analysis;
3. Based on the existing distributed microgrid SOC equalization control, and considering the rated capacity of energy storage and the initial SOC, a distributed control strategy that can realize microgrid power balance and SOC equalization is proposed.
The main contents of the subsequent sections of this paper are as follows:
Section 2 establishes the power model of the energy storage system, distributed power sources, and loads within the AC microgrid.
Section 3 gives the definition of the agent, describes the communication network in a graph-theoretic way through which it establishes a multi-agent control system, and then conducts the convergence analysis of the system and proposes the distributed power calculation method that can realize the SOC equalization and the power balancing.
Section 4, based on this foundation, defines the indexes to quantitatively measure the communication volume, introduces the optimization of the parameters of the consistency algorithm, and also introduces the event-driven mechanism to form the SOC balanced distributed control strategy for energy storage in microgrids.
Section 5 conducts simulation experiments through Matlab R2018b to verify the effectiveness of the control strategy proposed in this paper and the optimization effect on the communication volume.
Section 6 concludes the whole paper.
3. Energy Storage SOC Equalization Control Strategy
3.1. Definition of Agent Internal Data
In order to achieve a balanced SOC among parallel storage systems, the power should be allocated according to its own SOC while the total power of the storage system satisfies the loads and distributed power sources, which requires each agent to obtain an approximate estimation of the average value of the SOC of all the energy storage within the microgrid.
A single energy storage system is regarded as an individual with communication and computation capabilities, called an agent.Each agent needs to record within itself its own numbered ID, the current overall SOC mean value , the increment of the SOC mean value , and the above information of its neighbors that are able to communicate. The current SOC can be obtained by sampling according to the SOC estimation algorithm Equation (2), while the current SOC mean value needs to be obtained through communication with neighbors.Therefore each agent has the estimation of the overall mean value from itself and each neighbor.
When the agent obtains the above information through communication, it can calculate the required output of the energy storage system at the current moment based on this information, and realize the equalization of each energy storage SOC under the premise of satisfying the power balance of the microgrid.
Figure 3 illustrates the communication connectivity relationships and the information stored locally by each agent in an AC microgrid containing six energy storage systems. While PDG denotes the sum of the outputs of the distributed power sources, PL denotes the total load within the microgrid,
Pi (
i = 1, …, 6) denotes the output of the ith energy storage system,
DESUi, which is the energy storage system in the communication network, is represented by the agent
i, and
A and
D denote the correlation matrix and degree matrix of the communication network, respectively. When Agent 1 needs to communicate with Agent 2, then Agent 1 sends its ID, its estimate of the overall SOC mean, and the SOC increment to Agent 2, which saves the received data locally according to the ID and updates the existing record x
21 where x
21 denotes the estimate of the overall SOC mean recorded by Agent 2 by Agent 1. In turn, Agent 2 sends the state quantity to Agent 1, which saves it locally and updates the local information in the same way.
3.2. Graph-Theoretic Representation of Communication Networks
In this paper, it is assumed that the energy storage systems under study can communicate with each other in both directions with the help of a communication network, and all such communication relationships can be described by an undirected graph containing the connection relationships between agents, denoted as . Where denotes the set of all agents in the communication network, and denotes the set consisting of all communication connections in the communication network, where the group communication connection is an unordered set of two agents.
A communication relationship is said to exist between intelligence i and intelligence j if , and the set of all neighbors of intelligence i is denoted as .
For an undirected graph G, notate A to denote the association matrix of graph G. The association matrix of graph G is denoted as where , if then , otherwise . . Denote the degree matrix of the graph, where is the number of edges connected to node i. Then, the Laplace matrix of G is . The Laplace matrix L is a semipositive definite matrix capable of reflecting the connectivity of the graph, and the number of zeros in the L eigenvectors denotes the number of connected components in graph G, and its next smallest eigenvalue denotes the closeness of the communication network connection. In this paper, it is assumed that the communication network formed between the energy storage of the microgrid is connected, i.e., the L eigenvector contains only one zero.
3.3. Multi-Agent SOC Equalization Control System Model
Consider a communication-based MAS, and let the MAS contain n agents and the state of intelligence i be denoted by
. It is assumed that its state equation is described by Equation (4).
where
denotes the input control signal of the agent i.
Using the graph theory described in
Section 4.2 to describe the agents and their communication relationships in MAS, the following can be seen: (1) Each node represents an intelligence in the system, and all the agents constitute the set of nodes
. (2) If there exists a direct communication between agents i and j, the two are connected by an edge, and all the communication relationships in the system constitute the set of edges
. (3) Agents that have a direct communication with intelligence i are neighbors of node i in the graph. The neighbors of node i are denoted by the set
.
The agents communicate with each other and eventually the overall state is consistent, and according to the consistency algorithm [
28], the control signal can be expressed as Equation (5):
In order to ensure the convergence of the iterations of the discrete consistency algorithm, the coefficient α [
29] is introduced to obtain the state update Formula (6) for the discrete consistency algorithm:
3.4. Convergence Analysis
In the microgrid system depicted in
Figure 3 of
Section 3.1, the agent state variable
is selected. Representing the consistency in matrix form, iterating Equation (5) yields
Describe the consistency iteration formula as a matrix and write
where
is the unit diagonal array. Then, the system state update method can be expressed as
Theorem 1. [
30]
. Under the iterative formulation described in Equation (9), the matrix satisfies the following three conditions if and only if:- (1)
- (2)
- (3)
The state quantity of each intelligence can eventually converge to the average value of the initial state quantity through iteration. Where is the unit column vector, denotes the matrix spectral radius.
Noting that the communication network in the MAS is connected and the communication between the energy storage systems considered in this paper is bidirectional, the Laplace matrix L satisfies
where
is a zero-column vector. Thus, it is not difficult to show that both conditions (1) and (2) of Theorem 1 are satisfied.
The spectral radius of
can be written as
where
denotes the kth largest eigenvalue of the matrix. From (8), the eigenvalues of matrix W and matrix L satisfy the relationship between them according to their size
Bringing (13) into Equation (12) yields
Since the communication network of the energy storage system is connected and contains only one connected component, the Laplace matrix L of the graph is semipositive definite, and there are
. Thus, Equation (14) only needs to ensure that
satisfies the conditions of Theorem 1, i.e.,
To summarize, in the case where Equation (15) is satisfied, it can be ensured that the state of the multi-agent system converges to the mean of the initial values after consistency iterations. Therefore, each agent in the MAS can obtain the overall SOC mean value via communication.
3.5. Agent Power Calculation Method
Following the MAS framework described in
Section 3.3, each energy storage system in the microgrid is treated as an intelligence in the system, and the state variable is the current intelligence’s estimate of the overall SOC, with control signals generated by communication with neighbors.
Before the start of each instruction cycle, the state variable
is initialized to its own current SOC
After completing the update of its own state, the agent notifies all neighbors of the change in its own state and sends the updated amount of state to the neighbors, and when the neighbor j receives the state update information from the agent i, the state information of the agent i recorded by the agent j is updated
where
denotes the state of agent i as recorded by agent j. When an agent notifies a neighbor of a status update, it is treated as if a communication has taken place.
At the beginning of the iteration, each intelligence calculates the increment of its own estimate of the overall SOC according to its own recorded information
After calculating the increment, the agent’s own state is updated according to Equation (19)
Here, k denotes the number of iterations performed in one instruction cycle. From the consistency algorithm and reasoning described in
Section 4.4, it is clear that Equations (17)–(19) are able to converge the state variables recorded by each intelligence to the average value of the overall SOC.
It is assumed that the microgrid power deficit is obtained from the difference between the distributed power output and the load, and when the distributed power output is lower than the load, the microgrid frequency will drop. The droop-controlled islanded microgrid bus frequency satisfies the equation:
where
denotes the microgrid bus frequency;
denotes the standard frequency;
denotes the sag control coefficient;
denotes the total power of the distributed power sources in the microgrid; and
denotes the total power of loads.
After the agent consistency iteration is carried out, the bus frequency is detected
, and the agent power is calculated using its own SOC, SOC mean, and capacity-related parameters, and the power is calculated by Equation (21).
where
denotes the storage capacity-related parameter, which generally does not change over time, so it can be informed to all the agents and recorded in the initialization phase of MAS;
denotes the current moment SOC of storage;
denotes the estimated value of storage on the average value of SOC; sgn denotes the sign function; and
denotes the SOC equilibrium coefficient of storage, and the larger the value is, the larger the difference of the power produced by the difference of SOC, and the faster the SOC convergence is, but the smaller the value is, the slower the SOC convergence is. The larger the value, the larger the power difference due to the SOC difference, the faster the SOC convergence, but also the more likely that the storage power exceeds the upper limit, and the smaller the value, the slower the SOC convergence.
If the consistency iteration reaches convergence, then the estimation of the overall SOC mean by all the stored energy converges to the SOC mean at the beginning of the iteration, i.e.,
However, the estimated and actual values are not necessarily equal in practice, and the gap is determined by the number of iterations and convergence conditions.
By bringing Equation (22) into Equation (21), the sum of all the stored energy powers is
Equation (23) illustrates that the control strategy is able to make the sum of the total power of all the energy storage equal to the difference between the load and the distributed power output.
When the SOC of each intelligence is equalized after running for a period of time, there are
Bringing Equation (24) into Equation (21), for any two different agents i and intelligence j, one obtains
Combined with Equation (2), we can see that
Equation (26) shows that when the system reaches stability, the SOC increment of each intelligence is consistent in one control cycle, so the control algorithm can keep the SOC stable equilibrium after equilibrium.
4. Communication Volume Analysis and Control Strategy Optimization
4.1. Number of Iterations and Communication Statistics
From the MAS control model in
Section 3.3, it is known that the system communicates to make the overall SOC average available to all agents. Whenever an agent updates its own state, it has to notify all its neighbors of the state change, so the amount of communication in the system is directly related to the number of times an agent updates its own SOC. So, on the one hand, it is possible to use Formula (27) for judgment in the consistency control to reduce the redundant communication carried out after the energy storage SOC reaches consistency.
where
is a positive real number indicating precision.
On the other hand, it is known from
Section 4.3 that the value of α directly affects the convergence of the SOC estimation effect of the agents and the number of iterations required to reach convergence, and a reasonable value of α can reduce the number of iterations to reach agreement, which in turn reduces the number of communications.
When (27) is satisfied, it means that there is still a gap between the neighbor’s estimation of SOC and the intelligence’s own estimation, and the consistency iteration has not yet converged, and a state update is needed. If (27) is not satisfied, the intelligence maintains its state unchanged and does not notify the neighbors in this calculation, and in this mechanism, the values of α and are directly related to the size of the communication, and a reasonable selection of α and can effectively reduce unnecessary communication during the control. The reasonable selection of α can effectively reduce the unnecessary communication in the control process.
Considering that the number of communications is related to the topology of the communication network and the maximum number of iterations allowed in the same instruction cycle of a single agent, in order to compare the effect of the control strategy on the amount of communication, the ratio of the total communication to the maximum communication is defined as
.
where
denotes the total number of instruction cycles;
denotes the total number of communications of the system in
instruction cycle time;
denotes the number of edges in the communication network; and
denotes the maximum number of iterations allowed for a single agent in MAS in one instruction cycle.
4.2. Optimization of Parameter Selection
The value of α in the iteration formula described in Equation (6) is directly related to the convergence of the consistency iteration, a reasonable α can reduce the number of iterations performed by the system while ensuring the convergence of the iteration, and the number of iterations in the MAS is directly related to the amount of communication in the control process, so optimally selecting the value of α is of great significance. From Equation (9) and Theorem 1, It can be obtained:
Therefore, fast consistency convergence can be achieved by minimizing the value of
by selecting the optimization variable
. It can be obtained through the conditions of Theorem 1:
Then, the optimization problem turns to minimize
. Since the optimization problem is a convex optimization problem, its global optimal solution [
30] can be obtained. The value of optimal α can be obtained from
:
4.3. Event-Driven Iterative Mechanism
In the traditional energy storage SOC balanced distributed control strategy, a large number of communications between agents are often required, and even with the communication conditions limited by Equation (27) and the parameter optimization method described in
Section 4.2, many redundant communications still occur, because Equation (27) judges whether convergence is achieved by the relative increment of the agents’ own states. If an event-driven condition can be proposed based on the neighbor information recorded locally by the energy storage and its own SOC estimation, the agents can judge whether the states agree or not according to the data, and the energy storage is able to update its state when the condition is triggered, or otherwise maintain its state at the time of the last triggering, and the amount of required communication can be further reduced.
Record the average value of SOC of agent i recorded at the neighbor of agent i as
. For the current state of agent i
, if the state is updated, the result of the update is
, denote
. Then, bringing in Equation (7), we have
define
, i.e.,
For the control system described by Equations (5) and (7), let its Lyapunov function be
From Equation (30), we can obtain
Writing the vector expression in the form of a real number yields
Introducing the positive constant a and deflating
in the final summation part of Equation (32) using the arithmetic-geometric mean inequality yields
Note that in the last summation in the above equation, since all communications are bidirectional in the communication model studied in this paper, if
, then there must be
. This yields
Bringing Equation (34) into Equation (33) yields
When the system is in a steady state at , the sufficient condition that enables the above equation to be satisfied is, for each intelligence, the following
i.e.,
where the parameter
, the coefficient introduced by the inequality
is usually taken as
to maximize the coefficient. Equation (36) is the common event-driven condition for the consistency control of multi-agent systems [
29], and when Equation (36) is satisfied, the system is stable in Lyapunov’s sense, and when the above Equation is not satisfied, after updating the state of the agent so
, the system still satisfies the stability criterion
.
It should be noted that the expression of the original
is not a good representation of the difference between the state of agent i and its neighbors, because the difference between the state of agent i and its neighbors may be positive or negative, and the addition leads to the offset of the state difference. The calculation of the
value is on the low side, which leads to the low threshold of the event triggering condition of Equation (36), and the event is easily triggered in some cases, which increases the unnecessary communication. Therefore, in this paper, the
value is calculated by Equation (37) in the strategy.
In the control strategy proposed in this paper, the agent performs a self-state update using only the neighbor state information that has been updated in the current command cycle, and there is no chance that the state of the agent will be consistent to a value that deviates from the mean value because the neighbor event has not been triggered under this strategy.
In the control strategy of this paper, the current state of i recorded by neighbor j of agent I is used as the result of updating after the most recent event trigger , and the current result of agent i computed by Equation (19) is used as the actual amount of the state of agent i at the current moment . When Equation (36) is satisfied in the iteration, the agent updates its own state according to Equation (19) and broadcasts it to its neighbors. Otherwise, the agent maintains its own state and enters into the next round of iteration, which reduces the occurrence of unnecessary communication in the control by this event-driven approach.
4.4. SOC Equalization Policy Flow
On the basis of the distributed balanced control strategy for the microgrid energy storage SOC described in
Section 4, the method of a balanced control strategy for the energy storage SOC described in this paper is obtained by combining the consistency parameter optimization and event-driven control structure described in
Section 4.2 and
Section 4.3, and the flow of the control strategy is shown in
Figure 4.
The control flow of the SOC equalization strategy described in this paper is as follows:
(1) Initialization of the system, determining the consistency of the calculated parameters between the MAS agents, and checking the status of the communication network;
(2) After the energy storage system detects the frequency change, the control strategy starts to execute. At the beginning of each process, i.e., before the strategy starts running at time t, each agent samples the current state, i.e., calculates the current SOC of the energy storage system according to Equation (2), and uses it to update the locally stored state quantity. According to the communication network, it sends its own SOC information to all its neighbors, and at the same time, receives SOC information from its neighbors and updates the locally recorded data;
(3) Each agent performs an iterative computation according to the information of the local record in accordance with Equations (18) and (19) to determine whether the local state quantity needs to be updated. There may be some un-updated data in the local record, and the agent will skip the local records that have not been updated by its neighbors when performing a single computation. The judgment condition here is Equation (27), and also the event-driven condition derived in
Section 4.3 is a prerequisite for communication to take place; the agent updates and initiates communication when, and only when, both mechanisms simultaneously believe that the state needs to be updated;
(4) If the local state quantity of the agent is updated, i.e., Equation (27) and the event-driven condition are satisfied, the updated state quantity is sent to all the neighbors, and the neighbors who receive the message record the state locally;
(5) After all the agents that need to communicate have completed this communication, go back to step (3) until the maximum number of iterations is reached or the convergence condition is reached;
(6) Completing a round of consistency calculation, each agent checks itself. If the agent does not initiate any communication other than initialization during the command cycle, it indicates that the current SOC has reached a level close to the mean. The agent updates its own SOC mean with local information to maintain the difference between the current SOC and the overall SOC mean. Each agent obtains the overall SOC mean value locally, and each agent calculates the power locally using Equation (21);
(7) The locally calculated power is sent down to the energy storage PQ control input loop as the power reference value, and the converter quickly follows the power command to realize the control target.
In the above control process, except for what is obtained by the agent when communicating with its neighbors, the rest of the required data come from local sources, which do not need to be regulated by a central controller, achieving distributed control and realizing energy storage SOC equalization under the condition of satisfying the distributed power and load power constraints.
6. Conclusions
Considering that in the future, large-scale microgrids may have energy storage systems provided by different manufacturers, long distances, and other factors, the centralized control structure cannot solve the problem of the coordinated control of each energy storage system. This paper is based on the multi-intelligence body distributed control strategy, adopts the consistency algorithm to realize the overall SOC equalization, and accelerates the convergence of iterations by appropriately selecting the coefficients in the consistency iterative summation and adopts the event-driven condition in the form of event-triggered communication when communicating. In the form of event-driven triggering in communication, the communication volume during iteration is reduced, and in the simulation results carried out in this paper, the communication volume can be reduced by about 50% while maintaining the effect of the control strategy.
In the energy storage SOC equalization control strategy described in this paper, the existence of different power ratings and different SOC initial value factors for energy storage is considered, and it has the characteristics of a distributed structure, high robustness, and suitability for scenarios with limited communication resources, etc. It is able to achieve frequency restoration in AC microgrids with droop control and satisfy the power balance conditions while maintaining the SOCs of each storage in a relatively balanced state, and has a certain prospect of application in the future. When the efficiency of the centralized energy storage control structure decreases due to the further expansion of the microgrid scale, it has certain application prospects.