Abstract
The state of charge (SoC) balance, power sharing, and frequency restoration are common control objectives of battery energy storage systems. However, the SoC balance scheme induced by the power allocation through existing droop controllers can cause the capacity parameters of battery cells to be unequal to the droop coefficient, which is the result of battery capacity degradation. Under this limitation, previous capacity-based droop controllers and the secondary controllers are no longer suitable to address the imprecise power sharing and frequency restoration caused by this problem. Therefore, a power allocation scheme based on the current SoC level ratio is designed to induce a new droop controller and ensure that the SoC simultaneously drops to 0. In order to restore frequency in a distributed manner and obtain the SoC level ratio, a distributed nominal frequency controller, SoC average estimator, and power-sharing controller are designed based on multi-agent systems in both asymptotic and finite-time manners. In the asymptotic scheme, the steady-state performance of the SoC estimator is adjustable, and power sharing and frequency restoration are zero errors. In the finite-time scheme, the influence of parameters on convergence time is well analyzed, and some conservative calculation methods are provided. Several time-domain simulation examples are designed on an improved IEEE-57 bus system to verify the distribution of asymptotic and finite-time schemes.
Introduction
A battery energy storage system (BESS) is integrated into the smart grid to suppress the peak and valley supply gap and suppress the randomness and intermittency of renewable energy generation (Lin and Zamora, 2022; Pei et al., 2022), thereby improving power quality and providing reliable uninterrupted power supply (Pei et al., 2022). However, the management of multiple parallel BESSs also faces challenges (Calero et al., 2022; Kang et al., 2022; Rouholamini et al., 2022). The imbalance of state of charge (SoC), serving as an important indicator to measure the level of a BESS, leads to the waste of battery capacity (Calero et al., 2022; Kang et al., 2022; Kebede et al., 2022; Qays et al., 2022; Xu et al., 2022), which increases management costs. The differential restoration of frequency leads to power harmonics, thereby reducing power quality (Hossain Lipu et al., 2022; Kang et al., 2022; Pei et al., 2022; Rouholamini et al., 2022; Xu et al., 2022). Hence, cooperative management/control of multiple parallel BESSs becomes a problem worthy of in-depth study.
Thus, a large number of excellent literature has been committed to solving the above problems. Both distributed and centralized manners have been investigated. For example, the SoC of each battery was monitored by a centralized controller in Gonzalez-Garrido et al. (2020), while an external balancing circuit was applied to realize power sharing. However, the external balancing circuit was going to consume some energy. In practice, the centralized controller is more expensive, and the single-point failures are unavoidable (Calero et al., 2022; Forero-Quintero et al., 2022; Rouholamini et al., 2022). Instead, distributed control represented by multi-agent systems (MASs) can enhance the robustness and scalability of the system, making it more favored for managing BESSs.
For multiple BESSs, many distributed algorithms based on MAS for BESS focus on asymptotic control (Khazaei and Nguyen, 2019; Nguyen and Khazaei, 2021; Raeispour et al., 2020; Zeng et al., 2022), finite-time control (Ding et al., 2020; Zhang et al., 2023), and disturbance rejection/resilience control (Ding et al., 2020; Raeispour et al., 2020), etc., of SoC balancing, power sharing, and frequency restoration. Therefore, in terms of convergence performance (Ding et al., 2020; Khazaei and Nguyen, 2019; Nguyen and Khazaei, 2021; Raeispour et al., 2020; Zeng et al., 2022; Zhang et al., 2023), robustness performance (Ding et al., 2020; Raeispour et al., 2020), etc., these results are exhibited extremely well. The model-free method is also used to promote SoC consensus and frequency regulation based on droop control in Chen et al. (2022). The author improved the power allocation scheme based on capacity using an adaptive term based on SoC in Yang et al. (2021) and achieved SoC consensus. In Yu et al. (2021), the author allocates power based on marginal cost to achieve optimal economic cost operation. These distributed algorithms for BESS are hierarchical and have some commonalities. Therein, power needs to be proportionally shared according to the capacity of each BESS, resulting in SoC consensus and only power participation in frequency modulation based on droop control.
However, the consensus method of SoC based on power exchange has changed the working modes of some BESSs, that is, from discharge mode to charging mode. This not only leads to an increase in losses on the power feeder line, but also causes some existing battery parameters to change due to early entry into the next cycle, thus requiring a re-estimation of the parameters. In other words, the current methods have caused a waste of power and capacity, as well as modeling errors.
Recently, some new developments regarding SoC balance have emerged in (Meng et al., 2021, 2022; Wu et al., 2022; Xing et al., 2019). The results of these studies are all aimed at verifying that when BESSs have a uniform discharge rate, no battery will exit prematurely due to power depletion, in other words, all batteries will run out of energy at the same time. There is a power allocation scheme implied here. Unlike previous balance schemes based on SoC consensus, these results seem to indicate that as long as power is shared according to the current SoC, the goal of achieving time consensus for SoC depletion to 0 can be achieved. Based on this, the previous droop control as a primary control strategy cannot achieve accurate frequency restoration. Thus, inspired by the above-related work, considering the novel power allocation scheme, we replace the original static value with a dynamic droop coefficient based on SoC. This dynamic value includes the rated capacity of the battery, real-time SoC, and its average value. In order to obtain this average value and achieve secondary frequency control in distributed manners, we are going to design two types of distributed estimators for the SoC balance and two active power-sharing controllers, which are later referred to as power-sharing estimators, for multi-BESS networks with the heterogeneous dynamics in this paper, respectively. That is, asymptotic and finite-time schemes are simultaneously designed here. Concisely, the main contributions in this paper are listed as follows:
(i) This article introduces a discharge rate constraint for each battery, expecting each BESS to have the same relative discharge rate. The constraint of the discharge mode introduced in this article ensures that all batteries are depleted simultaneously and that the operating mode of each one will be unchanged before depletion. Compared to existing schemes in Ding et al. (2020), Khazaei and Nguyen (2019), Lu et al. (2023), Nguyen and Khazaei (2021), Raeispour et al. (2020), Zeng et al. (2022), and Zhang et al. (2023), our designed scheme does not require power exchange, thereby reducing losses on power feeders.
(ii) A new frequency droop controller is proposed. Active power is no longer allocated based solely on the rated capacity of each battery, but rather on the rated capacity and the current SoC level of each BESS and the average SoC and output power states in this network. That is to say, the frequency droop coefficient is dynamic and nonconstant, which is different from before (Ding et al., 2020; Khazaei and Nguyen, 2019; Nguyen and Khazaei, 2021; Raeispour et al., 2020; Zeng et al., 2022; Zhang et al., 2023). The advantage of doing so is that the power allocated by this droop control can ensure that all BESSs are in discharge mode at all times and depleted simultaneously.
(iii) In order to obtain the average SoC and output power states and achieve secondary frequency control and SoC balance, two distributed schemes are proposed based on an improved droop control strategy, one is asymptotic and the other is finite time.
Section “Introduction” gives a general description of graph theory. Section “The description of a BESS and : problem statement” introduces a common model of BESS with droop control and common control objectives. Section “Distributed secondary control schemes design” presents asymptotic and finite-time schemes, respectively. Section “Some simulation cases” designs several cases to test the proposed estimators. Section “Conclusions” summarizes this paper.
The description of a BESS and problem statement
A frequency droop-controlled BESS
A BESS usually adopts a hierarchical control scheme. In this paper, we adopt a multi-BESS network, and the simplified dynamics of each one can be described in the dq frame as (1a) to (1d), refer to Ding et al. (2020), Khazaei and Nguyen (2019), Nguyen and Khazaei (2021), Raeispour et al. (2020), and Zhang et al. (2023) for details.
where
In previous SoC balance schemes, both underactuated and fully actuated schemes are actually induced by output power to achieve SoC consensus. Driven by these schemes, some batteries at low SoC levels are in charging mode for a period of time, while others are in discharge mode. The inconsistency of working modes has led to batteries in charging mode entering the next cycle ahead of schedule. However, we note that the capacity of the battery decreases with an increase in the number of cycles. Specifically, for BESS
where
A novel power allocation strategy and its induced droop controller
The significance of SoC balance is to ensure that the battery cells within the battery pack are simultaneously depleted, thereby fully utilizing the capacity of the battery pack. The previous schemes of directly aligning SoC and proportionally aligning output power both require power exchange between battery packs, resulting in unnecessary waste on power feeders. To alleviate this situation, for a BESS network containing
Combining (1a) and (2), it can be concluded that the output power of each BESS can be counted as
where
Based on (5), we can conclude that active power needs to be allocated according to the SoC level. If
Control objectives
Frequency restoration helps to provide high-quality electricity. Before that, SoC balance and power-sharing states should be well distributed and estimated. Hence, each BESS is subjected to the following dynamics:
where (5c) and (5e) are a power allocation scheme and a modified droop controller, respectively,
(1) The real-time active power-sharing state of each battery can be well estimated, and reactive sharing can be achieved, that is,
(2) On the premise that
where
(3) Thus, to achieve SoC balance, the real-time SoC balance state should be well estimated, that is,
where
Distributed secondary control schemes design
Graph theory
In general, agents communicate with each other on a topology
The leader–follower model is mainly applied in this paper. Let
Under Assumption 1,
Distributed asymptotical control scheme
Inspired by George and Freeman (2019), Meng et al. (2021), and Wu et al. (2022), the distributed SoC balance and powersharing estimators can be designed for each battery unit here, as shown in (6a) to (6c),
where
Due to the fact that the nominal frequency is not a variable that needs to be measured by a BESS, the use of this controller can reduce the installation of measurement equipment and measurement errors. Figure 1 shows the secondary frequency control structure with SoC balance and power-sharing estimators designed in detail.

The proposed distributed hierarchical control for a battery energy storage system (BESS).
To illustrate the stability analysis of (6) and (7), the following useful lemmas are given.
Let
where
where
If
There exist a positive constant
where
Based on the above analysis, we have the following result about the distributed control schemes (6) and (7). And the relevant proof will be given next.
Denote some stack vectors
Next, the convergence of the average load power estimator will be explained as follows. Construct the following candidate Lyapunov function:
Derivative of
So,
Combined with (6a) and (6b), it can be concluded that
With the help of the mapping in Lemma 2 and (6c), the following state-space model can be obtained:
where
Then, it can be inferred in terms of Lemma 2 that
Lastly, according to Lemma 4 and (7), we have
where
Then,
So far, we have completed the proof of Theorem 1.
The estimator below can serve as an alternative to this solution,
At this point, simply update
Distributed finite-time control scheme
In this section, we present the distributed finite-time scheme to solve Problem 1. In order to illustrate the subsequent design and related proof, we give the following lemmas.
A finite-time estimator of the SoC balance of each battery can be designed as (8a) and (8b):
where
With these above lemmas in hand, the following result can be easily obtained based on the designed estimators.
Find its derivative as
According to Lemmas 5 and Lemma 6,
By Lemma 7,
That is
Rewrite (9a) in a matrix form as
Define a new variable
whose derivative is, according to Lemma 6
which implies, according to Lemma 7, if
for
Next, the finite-time convergence of the SoC balance estimator will be proved.
By constructing a matrix form of (8a) and (8b), one can get
As for the estimation error
Denote
Select the Lyapunov function with respect to
Because
The second term on the right side of the above equation satisfies the following inequality:
where
As a result,
In general,
According to Lemma 7, SoC balance error converges to 0 within a finite-time denoted by
So far, we have completed the proof of Theorem 2.
Some simulation cases
In this section,several cases are designed to verify the two proposed schemes. The modified IEEE-57 bus is selected as the load distribution exhibited in Figure 2(a), where seven BESSs are set on buses 1, 2, 3, 6, 8, and 9. The communication topologies are illustrated in Figure 2(b).

The modified IEEE-57 bus system and its communication topology: (a) the modified IEEE-57 bus system; (b) the communication topology graph.
These two schemes, under a fixed graph, are tested in Cases 1 and Case 4, respectively.
To test the effectiveness of two schemes under time-varying communication topologies, a switching sequence with an interval of 20 minutes, i.e.that is, (a) → (b) → (c) → (d) in Figure 2(b), is executed in Cases 2 and 5.
In Cases 3 and 6, the influence of parameters on the results is studied trial and error.
Case 1. The test on the asymptotic algorithm
In order to verify the effectiveness of the strategy proposed in an asymptotic manner, some operations are implemented during the simulation. The whole system works in discharging mode. The secondary controllers based on droop control work at
Figure 3 is the simulation result. Figure 3 reveals that the estimation of SoC balance, and active power sharing are reached, and the frequency restores to the reference. In addition, the SoC balance can be well maintained regardless of how the load changes, and the active power of each BESS output stably.

The simulation result of the asymptotic algorithm in Case 1.
To illustrate the progressiveness of the scheme we designed, two existing distributed schemes are compared, one of which is fully driven Khazaei and Nguyen (2019) and the other is under driven Nguyen and Khazaei (2021). The simulation results are shown in Figure 4. Comparing Figure 3, it can be seen that previous schemes have performed poorly in addressing the secondary control and SoC balance of BESSs with capacity degradation. Especially in the underactuated scheme, it makes it difficult to achieve precise consensus on the SoC, proportional power, and frequency of each BESS, respectively.In contrast, our designed solution improves the traditional droop control approach of distributing power according to rated capacity, so that power is shared according to the current SoC level. This enables all the SoCs of BESS to converge to 0 simultaneously, while ensuring accurate frequency restoration.

Simulation results under previous schemes: (a) simulation results under an underactuated scheme in Nguyen and Khazaei (2021); (b) simulation results under a full drive scheme in Khazaei and Nguyen (2019).
Case 2. The test on the asymptotic algorithm with time-varying communication topologies
In this case, the performance of the asymptotic scheme in dealing with switching topologies is studied. After the controller is activated at

The simulation result of the asymptotic algorithm with timevarying communication topologies in Case 2.
From this result,it can be seen that each variable can still converge under time-varying topologies, but with slightly different rates. This is related to the current communication topology. This indicates the robustness of the designed scheme to switching topologies. In addition, as long as connectivity is maintained, even if some communication links fail, this algorithm remains effective, ensuring the stability and security of BESS.
Case 3. Influence of parameters on the asymptotic algorithm
Different parameters value groups of

The influence of parameters of asymptotic algorithms on simulation results: (a) effect of different
From the simulation results in Figure 6(a), different values of
Case 4. The test on the finite-time control algorithm
To test theffect of the proposed finite-time control scheme, the same events and load changes as Case 1 are implemented in this case. Figure 7 are the simulation results in the discharging mode.

The simulation result of the finite-time algorithm in Case 4.
Compared with Case 1, although the estimation of the real-time SoC balance and power sharing can be well estimated as described in Figure 7. Besides, frequency can be restored to the reference value. SoCs can ultimately reach 0 simultaneously and BESSs have stable power output. At this time, the high-frequency chatting behavior is not obvious.
Case 5. The test on the finite-time algorithm with time-varying communication topologies
In this case, the performance of the finite-time scheme in dealing with switching topologies is studied. After the controller is activated at

The simulation result of the finite-time algorithm with time-varying communication topologies in Case 5.
From this result, it can be seen that each variable can still converge under time-varying topologies, and with no significantly changed rate. This indicates, similar to the conclusion in Case 3, that this algorithm exhibits robustness to time-varying topologies and solves the problems proposed in this article while ensuring the connectivity of the communication topology.
Case 6. Influence of parameters on the finite-time algorithm
To explore the impact relevant parameters

The influence of

The influence of
It can be deduced from Figure 9(a) that with a larger
Conclusions
In this article, we propose a novel droop controller with a dynamic droop gain for a BESS to allocate power, and design a distributed asymptotic and finite-time secondary controller for it. These efforts are made to address the issue of secondary control and SoC balance considering battery cell capacity degradation. As a result, our designed scheme promotes the SoCs of all BESSs to converge to 0 simultaneously and ensures frequency restoration to the reference value through reasonable power allocation. This scheme ensures all BESSs to work in the discharging mode before depletion, thus preventing some BESSs working modes from being changed before the entire network is depleted of energy. We do not advocate for consistent SoCs for all BESSs, as this may cause some batteries to enter the next cycle ahead of schedule, leading to modeling errors. Two distributed schemes are designed namely asymptotic and finite-time schemes. The simulation results show that the power is shared according to the SoC ratio, and the frequency can be restored to the reference value, while the SoCs of all BESSs simultaneously drop to 0. In addition, based on this work, new explorations can be explored in the future, such as intermittent communication and event-triggering schemes.
Footnotes
Appendix I
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Natural Science Foundation of China (grant no. 62103203), the Natural Science Foundation of Tianjin (grant no. 22JCQNJC01440), and the General Terminal IC Interdisciplinary Science Center of Nankai University.
