- Original Research
- Open Access

# Hierarchical distributed control for decentralized battery energy storage system based on consensus algorithm with pinning node

- Hanqing Yang
^{1}, - Shihan Li
^{1}, - Qi Li
^{1}Email author and - Weirong Chen
^{1}

**3**:6

https://doi.org/10.1186/s41601-018-0081-5

© The Author(s) 2018

**Received:**29 March 2017**Accepted:**2 February 2018**Published:**27 February 2018

## Abstract

A decentralized battery energy storage system (DBESS) is used for stabilizing power fluctuation in DC microgrids. Different state of charge (SoC) among various battery energy storage units (BESU) during operation will reduce batteries’ service life. A hierarchical distributed control method is proposed in this paper for SoC balancing and power control according to dispatching center requirement in DBESS. A consensus algorithm with pinning node is employed to allocate power among BESUs in the secondary control whereas in the primary control, the local controller of BESU adjusts output power according to the reference power from secondary control. Part of BESUs are selected to be pinning node for accepting command from dispatching center while other BESUs as following nodes which exchange output power and SoC information with the adjacent nodes through communication network. After calculating reference power of each BESU by adopting consensus algorithm, the power sharing in DBESS is achieved according to their respective SoC of BESUs. Meanwhile, the total output power of DBESS follows the varying requirements of dispatching center. The stability of DBESS is also improved because of having no center controller. The feasibility of the proposed control strategy is validated by simulation results.

## Keywords

- Decentralized battery energy storage system
- Hierarchical distributed control
- Consensus algorithm
- Pinning node

## 1 Introduction

Compared with the conventional energy sources, renewable energy sources (RESs) have gained increasing attention due to the advantages of being clean and worldwide distribution [1, 2]. Recently, the concept of microgrid has been proposed for more efficient use of RESs [3, 4]. In particular, DC microgrids have shown to provide simpler structure and control than AC microgrids, because of requiring fewer power conversion stages when integration DC sources such as photovoltaic cells, fuel cells and batteries [5].

However, the intermittent and randomness characteristics of RESs cause problems of power quality and stability in microgrids. In order to ensure the security and stability of the system, decentralized battery energy storage system (DBESS) has become an importance part of microgrid systems [6].

It is well known that the batteries have higher efficiency and longer service life when their state of charge (SoC) are maintained at a certain range [7]. Thus, it is important that the SoC of each battery energy storage unit (BESU) is kept similar at all-time within the required range. Therefore, the allocation of total power in DBESS should be controlled to avoid overcharging / over-discharging of any of the BESUs.

Several previous studies have been conducted to achieve SoC balancing. A droop control method combining droop coefficient and SoC is proposed in [8] to achieve proportional load power sharing. Reference [9] presents a new droop control method based on voltage scheduling to maintain the SoC of different energy storage units balanced by modifying voltage references. To ensure SoC balancing, a gain-scheduling controller based on fuzzy logic is designed in [10] by adjusting the droop coefficient.

However, there are several limitations of these methods mentioned above when line resistances are considered, as the batteries will operate at different charging/discharging current due to the voltage drops across the line resistances. This will cause the SoC of the BESSs to diverge. Although the centralized control strategy can be used to solve this problem, the required data transmission and communication devices introduce potential system instability [11, 12].

The hierarchical distributed control needs the autonomous control units updating their own states by communicating with adjacent nodes to complete complex tasks together. In [13], a distributed multi-agent based algorithm is proposed to realize SoC balancing by means of voltage scheduling. Reference [14] proposes a sliding mode control strategy based on multi-agent system to improve the converge speed of the existing SoC balancing strategies. However, these methods are not applicable in energy management as the required power is allocated automatically among batteries according to their respective SoC through communicating with adjacent nodes and cannot receive instructions from dispatching center.

The technique of providing the reference values to only a fraction of agents in the network, known as pinning, has been studied in [15, 16]. The pinning-based control can reduce the number of controllers by pinning parts of nodes for a large complex system, which often requires to add controllers to all nodes [17, 18].

In this paper, a hierarchical distributed control method is proposed for balancing SoC and controlling power as required from dispatching center in DBESS. A consensus algorithm with pinning node is employed to allocate power among BESUs in the secondary control, whereas the local controller of BESU in the primary control adjusts output power according to the reference power from the secondary control.

The rest of the paper is organized as follows. The DBESS is presented in Section 2 whereas Section 3 introduces hierarchical distributed control based on consensus algorithm with pinning node. Simulation of different operation conditions is developed in Section 4 and finally, Section 5 summarizes the paper and draws the conclusion.

## 2 Decentralized battery energy storage system

Typically, droop control is employed in the BESU DC/DC converter for voltage regulation and power sharing. Furthermore, the adaptive droop control based on SoC can dynamically adjust the charge/discharge power of BESU, ensuring all the batteries’ SoC to be consistent after operating for a certain period [8–10].

*V*

_{dc}and

*V*

_{dc}

^{*}are the actual and reference voltages of the DC common bus, respectively.

*R*

_{di}is the virtual resistance (droop constant) calculated by SoC of the

*i*-th BESU and

*I*

_{BESUi}is the output current of the

*i*-th BESU.

*R*

_{linei}stands for the line resistance of the

*i*-th BESU branch.

*SoC*

_{1}) is smaller than SoC of BESU2 (

*SoC*

_{2}).

For the case shown in Fig. 2a without line resistance, it is necessary to satisfy *I*_{BESU1} < *I*_{BESU2} *(R*_{d1} > *R*_{d2}), to ensure that BESU2 with higher SoC outputs a lager discharging current than that of BESU1 with lower SoC. When the line resistances are presented in Fig. 2b, in the case of *R*_{d1} + *R*_{line1} < *R*_{d2} + *R*_{line2}, the BESU1 with smaller SoC will output more power than BESU2.

Therefore, due to the presence of uncertain line resistance, employing the adaptive droop control based on SoC method could potentially lead the BESU with the smallest SoC to a higher discharging rate, resulting in a shorter service life of battery. Therefore, appropriate allocation of total power in DBESS should be achieved to avoid the overcharging/over-discharging of BESUs.

## 3 Methods

### 3.1 Hierarchical distributed control

1) The primary control. It controls the voltage and current of BESU according to the control command sent by the secondary control. Meanwhile, it transmits the collected power, SoC and other physical signals to the secondary control.

2) The secondary control. It sends the calculated control command by exchanging data with adjacent generation units through preset communication networks.

3) Dispatching center. By applying the pinning control to some nodes, the dispatch control of the system can be realized by the coupling relationship between the following nodes and the pinning nodes.

In this paper, the primary control and the secondary control of BESU are studied, so that the BESU can automatically control the charge/discharge power based on their respective SoC conditions. At the same time, the part of secondary control units can accept the command from the dispatching center to realize the ability for the whole DBESS to respond to system dispatching.

### 3.2 Discrete consensus algorithm with communication delay

Consensus control tends to make some states of all individuals in the distributed system be consistent with each other by exchanging information between the individual and its adjacent ones. Consensus algorithm is a kind of distributed algorithm for consensus control [19, 20]. In recent years, the consensus algorithm has achieved many successes in the group and formation control of space shuttles, and has gradually been used for power system economic scheduling and hierarchical control. The first-order discrete consensus algorithm is widely used for its advantages of simple convergence condition and fast convergence speed [21].

*x*

_{ i }denotes the state variable of the

*i*-th BESU, and

*x*

_{ i }can represent any physical information, such as voltage, current and SoC. When

*x*

_{ i }of all BESUs are the same, the DBESS achieves consensus convergence. The discrete consensus algorithm is shown as:

*j*is an adjacent node of the

*i*-th BESU,

*d*

_{ ij }is the transfer coefficient between the

*i*-th BESU and its adjacent node

*j*, and

*m*is the number of BESUs.

*j*to node

*i*is

*τ*

_{1}is the total time for signal sampling and communication processing,

*τ*

_{2}is the time of transmitting over the communication line, and

*τ*

_{3}is the time of converting the received signals by node

*i*.

*T*between two communications. When

*T*is greater than the communication delay

*τ*

_{ ij }, the communication delay does not have any effect on system. In the case of

*τ*

_{ ij }being greater than

*T*, the communication delay will impact on the consensus algorithm, and the corresponding algorithm expression should be rewritten as:

Equations (3) and (5) can describe and simulate all the operation conditions whereas (3) stands for normal operation condition with small communication delay and (5) represents condition with lager communication delay.

*d*

_{ ij }can affect the convergence and convergence speed of consensus algorithm. When

*D*= [

*d*

_{ ij }] is a random matrix,

*x*

_{ i }can converge in some specific conditions [22]. If

*D*is a double random matrix,

*x*

_{ i }can converge to the average of the system initial value. In order to improve the reliability of discrete consensus algorithm, the Metropolis method are employed to construct a double random matrix

*D*with non-zero diagonal elements [23]. The Metropolis method is describe as:

*n*

_{ i }and

*n*

_{ j }are the respective adjacent numbers of node

*i*and

*j*, max(

*n*

_{ i },

*n*

_{ j }) stands for the maximum value of

*n*

_{ i }and

*n*

_{ j }.

### 3.3 Consensus control with pinning node

The main principle of the consensus control with pinning node is to consider the DBESS shown in Fig. 3 as a network-connected distributed system. Each BESU contains the primary control and the secondary control. The secondary control of BESU which is selected as the pinning node, can receive the dispatching command from the system. The principle of power allocation is that the charge/discharge power of each BESU is the same as the ratio of the power to their respective SoC.

*I*

_{bi},

*SoC*

_{ i }

^{*},

*C*

_{ei}are the output current, initial SoC and rated capacity of the battery of the

*i*-th BESU, respectively.

*U*

_{ini},

*P*

_{ i },

*P*

_{ini}are the output voltage, output power and input power of the DC/DC converter of the

*i*-th BESU, respectively.

*P*

_{BESUi}[

*k*] and

*SoC*

_{ i }[

*k*] are the input/output power and SoC of the

*i*-th BESU, and

*r*

_{chari}[

*k*] and

*r*

_{disci}[

*k*] are the charging and discharging ratios of the

*i*-th BESU.

*P*

_{BESUi}[

*k*] < 0 stands for charging operation while

*P*

_{BESUi}[

*k*] > 0 for discharging operation. The ratio of each BESU will tend to be consistent after several iterations by using consensus algorithm. Thus, the purpose of power distribution is achieved.

*P*

_{all}is the reference power value from dispatching center.

*P*

_{all}< 0 stands for charging operation while

*P*

_{all}> 0 represents discharging operation.

*P*

_{BESUi}and

*SoC*

_{ i }as:

*i*-th BESU will also converge to constants as:

The above equation describes how to obtain the power reference value of each BESU by the consensus control with pinning node. This method is a distributed algorithm as each BESU gets its own charge/discharge power reference value according to their own information and information of its adjacent nodes. The SoC of different BESUs can be balanced and the total output power of DBESS follows dispatching requirement.

## 4 Results and discussion

System parameters

Parameters | value | |
---|---|---|

Line resistance |
| 0.5 |

| 0.8 | |

| 0.9 | |

BESU | type | Lead-acid battery |

Rated voltage (V) | 24 | |

Rated capacity (Ah) | 5 | |

DC bus | Rated voltage (V) | 48 |

In this paper, matrix *D* is constructed by (6) and the scheme of self-organization mechanism is designed. In this case, it is assumed that the pinning node is reliable and has been involved all the time. The self-organization mechanism is mainly used to constrain the switching of the following nodes.

Taking BESU2 as an example, when BESU2 needs to be connected in, BESU2 will send incoming packets to BESU1 and BESU3, and then update its own matrix *D*. After receiving the incoming message, BESU1 and BESU3 broadcast the latest neighbor messages and update their own matrix *D* elements. Their own matrix *D* are all updated by (6), ensuring that matrix *D* is still a double random matrix with non-zero diagonal elements. According to the self-organization mechanism, the BESU can connect or disconnect their neighbor nodes without affecting the system operation.

In 0~ 100 s, the total power of DBESS given by dispatching center is 800 W. At the beginning of operation, BESU1 has the smallest SoC and absorbs most of the power. At 100 s, the SoC of BESU1 and BESU2 become almost identical and thus, the charging currents also tend to be equal. During the time of 100~ 200 s, the total power of DBESS given by dispatching center is reduced to 500 W. The charging currents of all BESUs are reduced accordingly. At 200 s the difference of SoC between BESU1/BESU2 and BESU3 almost disappears. In 200~ 300 s, the total power of DBESS given by dispatching center is 700 W. During this period, the SoC of these three BESUs is balanced and so as the charging currents. Although the total power changes to 600 W at 300 s, the charging ratios of all three BESUs stay the same. According to Fig. 6c, the voltage is maintained in the range of 48 ± 0.5 V during the operation.

As seen from Fig. 6, in the charging operation, the priority is given to the BESU with the lowest SoC to obtain a larger charging current. The proposed control strategy can balance SoC and control output power varying with dispatching center requirements in DBESS.

In 0~ 100 s, the total power of DBESS given by dispatching center is 500 W. At the beginning of operation, BESU1 has the largest SoC and produces most of the output power. At 100 s, the difference of SoC among the BESUs is reduced to be less than 5%. During 100~ 200 s, the total power of DBESS given by dispatching center is increased to 700 W and thus, the discharging currents of all BESUs are also increased. At 200 s, the SoC difference among the three BESUs is small and therefore, their discharging currents also become similar. In 200~ 300 s, the total power of DBESS given by dispatching center is 600 W whereas it reduces to 500 W at 300 s. During this period, the BESU with the highest SoC always provide more power than the BESU with the smallest SoC. Finally, SoC balancing is achieved at 400 s. According to Fig. 7c, the voltage is maintained in the range of 48 ± 1 V during the whole operation.

As seen from Fig. 7, in the discharging operation, although the total power demanded varies, the BESU with the lowest SoC always has less discharging current. SoC balancing and controlling output power according to dispatching center in discharging operation are realized by adopting the proposed control strategy.

## 5 Conclusions

To address the problems related to the sharing accuracy of the current methods considering the line resistance, a hierarchical distributed control is proposed to realize SOC balancing using consensus algorithm in decentralized battery energy storage system. The proposed control strategy can also change the total output power in DBESS according to the requirements of dispatching center by pinning partial secondary control units of BESU. The simulation results in both charging and discharging operation validate the feasibility of the proposed control strategy.

## Declarations

### Authors’ contributions

HY conceived and designed the study. HY and SL performed the experiments. HY, SL and QL wrote the paper. HY, SL, QL and WC reviewed and edited the manuscript. All authors read and approve the manuscript. The part of establishing DBESS model was supported by National Natural Science Foundation of China (61473238, 51407146), the primary droop control analysis got support of Sichuan Provincial Youth Science and Technology Fund (2015JQ0016), and the part of distributed consensus algorithm was supported by Doctoral Innovation Funds of Southwest Jiaotong University (D-CX201714).

### Competing interests

The authors declare that they have no competing interests.

**Open Access**This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## Authors’ Affiliations

## References

- Li, Q., Chen, W., Liu, Z., et al. (2015). Development of energy management system based on a power sharing strategy for a fuel cell-battery-supercapacitor hybrid tramway.
*J Power Sources, 279*(279), 267–280.View ArticleGoogle Scholar - Xin, H., Lu, Z., Liu, Y., et al. (2014). A center-free control strategy for the coordination of multiple photovoltaic generators.
*Smart Grid IEEE Trans, 5*(3), 1262–1269.View ArticleGoogle Scholar - Shen, C. (2013). Wu, et al. multi-stage under frequency load shedding for islanded microgrid with equivalent inertia constant analysis.
*Int J Electr Power Energy Syst, 46*(1), 36–39.Google Scholar - Guo, W., & Mu, L. (2016). Control principles of micro-source inverters used in microgrid.
*Prot Control Mod Power Syst, 1*(1), 5.View ArticleGoogle Scholar - Zhu, X., Liu, J., Liu, Y., Zhou, W., Sun, Z., & Jin, Y. (2014). The study of micro-grid control strategy contained unbalanced load based on sliding-mode variable structure. IEEE International Conference on Power System Technology, pp. 3328–3334.Google Scholar
- Gu, W., Wu, Z., Bo, R., et al. (2014). Modeling, planning and optimal energy management of combined cooling, heating and power microgrid: A review.
*Int J Electr Power Energy Syst, 54*(1), 26–37.View ArticleGoogle Scholar - Hu, X., Sun, F., & Zou, Y. (2013). Comparison between two model-based algorithms for li-ion battery SOC estimation in electric vehicles.
*Simul Model Pract Theory, 34*(4), 1–11.View ArticleGoogle Scholar - Lu, X., Sun, K., Guerrero, J. M., & Vasquez, J. C. (2012). SoC-based droop method for distributed energy storage in DC microgrid applications. IEEE International Symposium on Industrial Electronics, pp.1640–1645.Google Scholar
- Li, C., Dragicevic, T., Diaz, N. L., Vasquez, J. C., & Guerrero, J. M. (2014). Voltage scheduling droop control for State-of-Charge balance of distributed energy storage in DC microgrids. IEEE Energy Conference, pp.1310–1314.Google Scholar
- Diaz, N. L., Dragicevic, T., Vasquez, J. C., & Guerrero, J. M. (2014). Fuzzy-logic-based gain-scheduling control for state-of-charge balance of distributed energy storage systems for DC microgrids. IEEE Applied Power Electronics Conference and Exposition, pp. 2171–2176.Google Scholar
- Meng, L., Dragicevic, T., Vasquez, J., Guerrero, J., & Sanseverino, E. R. (2015). Hierarchical control with virtual resistance optimization for efficiency enhancement and State-of-Charge balancing in DC microgrids. IEEE First International Conference on Dc Microgrids, pp. 1–6.Google Scholar
- Dragicevic, T., Guerrero, J. M., Vasquez, J. C., et al. (2014). Supervisory control of an adaptive-droop regulated DC microgrid with battery management capability.
*Power Electron IEEE Trans, 29*(2), 695–706.View ArticleGoogle Scholar - Li, C., Dragicevic, T., Plaza, M. G., Andrade, F., Vasquez, J. C., & Guerrero, J. M. (2015). Multiagent based distributed control for state-of-charge balance of distributed energy storage in DC microgrids. IEEE Conference on Industrial Electronics Society, pp. 2180–2184.Google Scholar
- Morstyn, T., Savkin, A., Hredzak, B., & Agelidis, V. (2017). Multi-agent sliding mode control for state of charge balancing between battery energy storage systems distributed in a dc microgrid. IEEE Transactions on Smart Grid, PP. (99), 1–1.Google Scholar
- Su, H., Rong, Z., Chen, M. Z., Wang, X., Chen, G., & Wang, H. (2013). Decentralized adaptive pinning control for cluster synchronization of complex dynamical networks. IEEE Transactions on Systems Man & Cybernetics, 43(1), 394–399.Google Scholar
- Li, X., Wang, X., & Chen, G. (2004). Pinning a complex dynamical network to its equilibrium.
*IEEE Trans Circuits Syst Regular Papers, 51*(10), 2074–2087.MathSciNetView ArticleMATHGoogle Scholar - Talebi M, Manaffam S, Jain A K, et al. Intelligent pinning based cooperative secondary control of distributed generators for microgrid in islanding operation mode. 2016.Google Scholar
- Liu, W., Gu, W., Sheng, W., Meng, X., Xue, S., & Chen, M. (2016). Pinning-based distributed cooperative control for autonomous microgrids under uncertain communication topologies. IEEE Transactions on Power Systems, 31(2), 1320–1329.Google Scholar
- Chen, C., Zhang, B., Lu, Q., et al. (2015). A consensus algorithm based on nearest second-order Neighbors’ information.
*IFAC-PapersOnLine, 48*(11), 545–550.View ArticleGoogle Scholar - Zhang, Z., & Chow, M. Y. (2012). Convergence analysis of the incremental cost consensus algorithm under different communication network topologies in a smart grid.
*Power Syst IEEE Trans, 27*(4), 1761–1768.View ArticleGoogle Scholar - Xu, Y., & Liu, W. (2011). Novel multiagent based load restoration algorithm for microgrids.
*IEEE Trans Smart Grid, 2*(1), 152–161.MathSciNetView ArticleGoogle Scholar - Kriegleder, M., Oung, R., & D'Andrea, R. (2013). Asynchronous implementation of a distributed average consensus algorithm. IEEE International Conference on Intelligent Robots and Systems, pp. 1836–1841.Google Scholar
- Guerrero, J. M., Vasquez, J. C., Matas, J., et al. (2011). Hierarchical control of droop-controlled AC and DC microgrids—A general approach toward standardization.
*IEEE Trans Ind Electron, 58*(1), 158–172.View ArticleGoogle Scholar - Bhangu, B. S., Bentley, P., Stone, D. A., et al. (2005). Nonlinear observers for predicting state-of-charge and state-of-health of lead-acid batteries for hybrid-electric vehicles.
*Vehicular Technol IEEE Trans, 54*(3), 783–794.View ArticleGoogle Scholar