HIERARCHICAL DISTRIBUTED CONTROL METHOD AND DEVICE FOR MICROGRID CLUSTER WITH HETEROGENEOUS BATTERIES

Abstract
The invention pertains to the control technology of microgrid energy storage systems, particularly to a hierarchical distributed control method and device for microgrid cluster with heterogeneous batteries. This method includes primary droop control, two-layer voltage regulation control, and two-layer power management control. The incremental cost of heterogeneous batteries is physically defined as the partial derivative of energy loss with respect to output power. A cooperative control method for the incremental cost of multiple heterogeneous battery units is proposed, which can achieve economic power distribution among multiple heterogeneous battery units while meeting the constraints of charging/discharging power, SoC, and power balance. This invention's method integrates battery types where charging efficiency is tied to charging power with those where charging efficiency is connected to SoC, ensuring ease of expansion. Even with the introduction of a new battery type in the microgrid cluster, the method continues to be effective.
Description
CROSS-REFERENCE TO RELATED APPLICATION

This application claims the priority benefit of China Application Serial Number 202311810350.X, filed on Dec. 25, 2023. The entirety of the above-mentioned patent application is hereby incorporated by reference and made a part of this specification.


BACKGROUND
Technical Field

This invention belongs to the technical field of microgrid energy storage system control, and particularly relates to a hierarchical distributed control method and device for the microgrid cluster with heterogeneous batteries.


Description of Related Art

In the microgrid domain, strategies for handling voltage regulation and power balance in single microgrid systems, such as active power sharing, maximizing energy efficiency, dynamic supply-demand balance, direct current (DC) bus voltage stabilization, communication reliability under heterogeneous delays, and rolling power fluctuation optimization methods, have been widely advanced. However, with the continuous expansion of application scenarios, the interconnection of various microgrids can form a system of multiple microgrid clusters. Significant research has been conducted in areas like network reconfiguration based on local energy markets, demand response services for multi-microgrids, energy trading markets, optimal energy management frameworks for mixed time scales, voltage setpoint management, and load-sharing between microgrid clusters. However, the current power management and operational control strategies of these microgrid clusters are all equipped with the same type of energy storage components.


In actual microgrid clusters, it is relatively unlikely that all microgrids will be equipped with the same type of energy storage components, and the expansion of microgrid clusters often requires the integration of various types of batteries to meet different power demand scenarios. Current research mainly focuses on the coordination between batteries and supercapacitors to achieve autonomous power sharing. Recently, hybrid energy storage systems that integrate vanadium redox flow batteries with lithium-ion batteries have emerged as a solution to meet the varied power demands in microgrid clusters. By integrating the unique features of each component, a hybrid energy storage system comprising vanadium redox flow and lithium-ion batteries can capitalize on the advantages of both technologies, while minimizing their individual drawbacks. However, proper power distribution among the internal units of hybrid batteries is crucial, as improper coordination can result in additional power losses, which grow more prominent as the microgrid cluster scales up. Present economic management strategies for vanadium redox flow and lithium-ion hybrid systems predominantly optimize energy costs at the tertiary control layer for longer time scales, often neglecting the power losses occurring at the secondary control layer over shorter time scales. Therefore, for hybrid energy storage systems in microgrid clusters, studying the economic operation power management and voltage regulation control between heterogeneous batteries over different time scales poses greater challenges and holds more practical engineering significance.


SUMMARY

This invention provides a hierarchical distributed control method for a microgrid cluster with heterogeneous batteries to address the issue of economic power distribution and voltage regulation control among hybrid energy storage systems in DC microgrid clusters in existing technology. It enables the economic distribution of power and voltage regulation both within individual microgrid energy storage systems and across multiple microgrid energy storage systems.


This invention provides a hierarchical distributed control method for a microgrid cluster with heterogeneous batteries, including the following.


S1. To resolve the problems of economic operation and voltage regulation among energy storage systems within microgrid clusters over different time scales, this invention has developed a two-layer control structure, as illustrated in FIG. 1. This structure incorporates primary droop control, two-layer voltage regulation control, and two-layer power management control, enabling economic power distribution and voltage regulation within and between different microgrid energy storage systems.


S2. To implement the two-layer control structure mentioned in S1, this invention targets the energy storage systems of the microgrid cluster that utilize mixed batteries with different characteristics to meet the needs of various scenarios. It standardizes the physical definition of incremental costs of heterogeneous battery units to achieve economic power distribution among different battery units.


S3. Based on the two-layer control structure proposed in S1, P-V primary droop control is employed to ensure that the output voltage of the i-th converter quickly tracks the nominal voltage value.

    • S4. Based on the two-layer control structure proposed in S1, a two-layer voltage regulation controller is designed. When the control time meets conditions and 0<{tilde over (τ)}/{tilde over (T)}<ψV, the two-layer voltage regulation control algorithm can achieve the following control objectives:









lim

t







"\[LeftBracketingBar]"




V

s
,
i


(
t
)

-

V

s
,
re





"\[RightBracketingBar]"



=
0

,



lim

t







"\[LeftBracketingBar]"




V

k
,
i


(
t
)

-

V

k
,
re





"\[RightBracketingBar]"



=
0

,









lim

t







"\[LeftBracketingBar]"




V

s
,
re


(
t
)

-

V
rated




"\[RightBracketingBar]"



=
0

,



lim

t







"\[LeftBracketingBar]"




V

k
,
re


(
t
)

-

V
rated




"\[RightBracketingBar]"



=
0







    • where τ and {tilde over (τ)} represent the lower-layer control times that represent response speed, while T and {tilde over (T)} represent the upper-layer control times. Systems with the lithium battery are denoted as s, and those with the vanadium redox flow battery are denoted as k. ψV=min{ψSV, ψKV}, where











Ψ
S
V


=
Δ





4



λ
min

(


L
S

+

B
S


)




λ
min

(



L
~

S

+


B
~

S


)




and



Ψ
K
V



=
Δ



4



λ
min

(


L
K

+

B
K


)




λ
min

(



L
~

K

+


B
~

K


)




,




while Vrated is the rated value.


S5. Based on the two-layer control structure proposed in S1 and the unified physical definition of incremental costs of heterogeneous battery units from S2, a two-layer power management controller is designed. By setting an appropriate positive condition coefficient γ, the two-layer power management control algorithm can achieve the following control objectives:













(
i
)




lim

t







"\[LeftBracketingBar]"





s
,
i

LB


(
t
)


-



re
,
s

LB


(
t
)





"\[RightBracketingBar]"




=
0








(
ii
)




lim

t







"\[LeftBracketingBar]"





re
,
s

LB


(
t
)


-



re
,
k

VRB


(
t
)





"\[RightBracketingBar]"




=
0






and








(
i
)




lim

t







"\[LeftBracketingBar]"





k
,
i

VRB


(
t
)


-



re
,
k

VRB


(
t
)





"\[RightBracketingBar]"




=
0








(
ii
)




lim

t







"\[LeftBracketingBar]"





re
,
k

VRB


(
t
)


-



re
,
l

VRB


(
t
)





"\[RightBracketingBar]"




=
0





,






    • where systems with lithium batteries (LB) are denoted as s, systems with vanadium redox flow batteries (VRB) are denoted as k, and custom-character represents the incremental cost





According to the hierarchical distributed control method for the microgrid cluster with heterogeneous batteries provided by the present invention, the two-layer control structure described in S1 includes the following.


S11. All nodes in the microgrid cluster system can be divided into representative nodes and non-representative nodes. The representative nodes constitute the upper control structure, and the non-representative nodes form the lower control structure.


S12. In the two-layer control structure, representative nodes are selected from each subnet for performing the distributed consensus control method through the upper-layer communication network {tilde over (G)}, while the other nodes in the lower layer can coordinate their own states using the leader-follower control method via the communication network G. The two-layer control structure can regulate voltage and distribute power between lithium battery microgrid clusters and vanadium redox flow battery microgrid clusters, as illustrated in FIG. 2.


S13. The lower-layer network of the two-layer control structure adopts the leader-follower control method to ensure each node's stable state is consistent with the representative node's state, enabling voltage restoration, incremental cost coordination, and power balance within an individual microgrid.


S14. The operation of the upper-layer network of the two-layer control structure can be divided into two scenarios: when an external node sends a reference state value to the upper-layer network, the leader-follower control method is applied to force the representative nodes' stable states to match the reference value. Otherwise, the distributed consensus control method is used to ensure that the representative nodes' stable states equal the average of the total initial values.


According to the hierarchical distributed control method for the microgrid cluster with heterogeneous batteries provided by the present invention, the steps for unifying the physical definition of the incremental cost of heterogeneous battery units in S2 include the following.


S21. First, the evaluation method of the state of charge (SoC) for different types of batteries can be expressed as:








S


o
.



C
i


=



-

P

B
,

i





η

B
,

i


/

E

B
,

i

rated



i



v
C



,






    • where νC represents the set of converters connected to the batteries in the DC microgrid cluster, SoCi, PB,i, ηB,i, and EB,irated denote the SoC, controllable charging power, charging efficiency, and rated capacity of the i-th battery, respectively.





S22. Furthermore, different battery types exhibit different charging efficiencies. For conventional batteries, such as the lithium-ion battery, charging efficiency ηB,i can be simplified as a function of charging power. For flow batteries, such as the vanadium redox flow battery, charging efficiency ηB,i can be simplified as a function of SoC and charging power. Thus, the charging efficiencies of the lithium-ion and vanadium redox flow batteries can be expressed as:






{






η

B
,

i


=



α
i
LB



P

B
,

i



+


β
i
LB



lithium

-

ion


battery









η

B
,

i


=


(



α
VRB



SoC
i
VRB


+

b
VRB


)

+



P

B
,

i

rated



P

B
,

i


(
t
)




(



c
VRB



SoC
i
VRB


+

d
VRB


)











vanadium


redox


flow


battery





.





S23. To design the economic charging control method for mixed battery operation, the optimization objective is proposed to minimize the total consumed power:











min



f

(

P

B
,

i


)


=

min





i
=
1

N




P

B
,

i




η

B
,

i












s
.
t
.





i
=
1

N



P

B
,

i




=





i
=
1

N



P

G
,

i



-




i
=
1

N



P

L
,

i










{






P

B
,

i


=
0


,





if



SOC
i




[



SOC
i

_

,


SoC
i

_


]









P

B
,

i




[



P

B
,

i


_

,


P

B
,

i


_


]


,



else







,






    • where PL=ΣPL,i represents the total load demand, and ΣPG,i represents the total generation power.





S24. Next, the Lagrange multiplier method is employed for optimization, where the Lagrangian function is given as:








F
Lag

(

P

B
,

i


)

=





i
=
1

n



f

(

P

B
,

i


)


+




i
=
1

n





ϖ
i

(


P

G
,

i


-

P

L
,

i


-

P

B
,

i



)

.







Then take the partial derivatives:












F
Lag

(

P

B
,

i


)





P

B
,

i




=





f

(

P

B
,

i


)





P

B
,

i




-

ϖ
i



,






    • where wi represents the Lagrange multiplier of the i-th battery, and thus the economic operation can be achieved by coordinated designing of the Lagrange multipliers for different batteries. Physically, wi also represents the incremental cost of the i-th battery, and thus the incremental cost of heterogeneous batteries is the partial derivative of energy loss with respect to output power for each battery unit, which gives them a unified physical meaning.





Based on the hierarchical distributed control method for the microgrid cluster with heterogeneous batteries provided in this invention, the P-V primary droop control described in S3 includes the following.


S31. The voltage and power output relationship in the P-V primary droop control can be formulated as:









V
i

-

V
i
*


=


D
i

(


P
i
*

-

P
i


)


,

i


v
C


,






    • where νC denotes the set of converters connected to batteries in the DC microgrid cluster, while Vi and Di are the output voltage and the droop coefficient, respectively. V*i and P*i represent the nominal voltage and the nominal active power. The active power injection P*i satisfies Pi=PG,i−PB,i, where PG,i and PB,i are the generation power and the charging power of the battery, respectively.





S32. Secondary control is needed to eliminate voltage deviation which is inevitably generated in the primary droop control. By driving the charging power PB,i to equal the reference power PB,iref generated by secondary control, the voltage deviation {circumflex over (V)}i=Vi−V*i can be restored to zero, i.e.:












lim

t







"\[LeftBracketingBar]"




P

B
,

i


(
t
)

-


P

B
,

i

ref

(
t
)




"\[RightBracketingBar]"



=
0

,

i


v
C











lim

t







V
^

i

(
t
)


=
0

,

i


v
C









Based on the hierarchical distributed control method for the microgrid cluster with heterogeneous batteries provided by this invention, the two-layer voltage regulation controller described in S4 includes the following.


S41. The voltage regulation algorithm for a single microgridMGs/MGk in a lower layer:






{






τ



V
.


s
,

i



=





j


N

s
,

i







a
ij
s

(


V

s
,

j


-

V

s
,

i



)


+


a

i

0

s

(


V

s
,

re


-

V

s
,

i



)










τ
~




V
.


k
,

i



=





j


N

k
,

i







a
ij
s

(


V

k
,

j


-

V

k
,

i



)


+


a

i

0

k

(


V

k
,

re


-

V

k
,

i



)






,







    • where τ and {tilde over (τ)} are the lower-layer control times representing response speed. When aij>0, the i-th node can receive data from neighboring nodes; when ai0>0, the i-th node can receive data from the representative node.





S42. The voltage regulation algorithm between upper-layer microgrid clusters is as follows:






{






T



V
.


s
,

re



=





l



N
~

S







a
~

sl

(


V

l
,

re


-

V

s
,

re



)


+



a
~


s

0


(


V
rated

-

V

s
,

re



)










T
~




V
.


k
,

re



=





l



N
~

K







a
~

kl

(


V

l
,

re


-

V

k
,

re



)


+



a
~


k

0


(


V
rated

-

V

k
,

re



)






,







    • where T and {tilde over (T)} are the upper-layer control times. When ãsl>0/ãkl>0, the s/k-th representative node in the s/k-th microgrid can receive data from neighboring nodes; when ãs0>0/ãk0>0, the s/k-th representative node can receive the rated value Vrated which is set from the virtual leader node.





Based on the hierarchical distributed control method for the microgrid cluster with heterogeneous batteries provided in this invention, the two-layer power management controller mentioned in S5 includes the followings.


S51. The two-layer economic operation control method for the microgrid cluster with the lithium battery includes the following.


The lower-layer power controller:











τ



P
.


s
,

i

LB


=

2


α

s
,

i

LB




ϖ
.


s
,

i


L

B










τ



ϖ
.


s
,

i

LB


=


K
li

(





j


N

s
,

i







a
ij
s

(


ϖ

s
,

j


L

B


-

ϖ

s
,

i

LB


)


+


a

i

0

s

(


ϖ

re
,

s


L

B


-

ϖ

s
,

i

LB


)


)





,






    • where aijs and aijs represent the network link relations and leader node connection relations in the microgrid with the lithium battery.





The upper-layer power controller is as follows:











T



P
.


re
,

s

LB


=

2


α

re
,

s

LB




ϖ
.


re
,

s


L

B










T



ϖ
.


re
,

s

LB


=


K

li
,

up


(





l



N
~

s






a
sl
s

(


ϖ

re
,

l


L

B


-

ϖ

re
,

s

LB


)


+


a

s

0


li
,

up


(


ϖ

re
,

k

VRB

-

ϖ

re
,

s

LB


)


)





,






    • where asls represents the link relation of the upper-layer network.





S52. The two-layer economic operation control method for the microgrid cluster with the vanadium redox flow battery includes:












τ
~




P
.


k
,

i

VRB


=


-


E
VRB
rated


a

VRB
,

c







ϖ
¨


k
,

i

VRB










τ
~




ϖ
.


k
,

i

VRB


=



K
ϖ







j

Nk

,

i





a
ij
k

(


ϖ

k
,

j

VRB

-

ϖ

k
,

i

VRB


)



+


K
ϖ




a

i

0

k

(


ϖ

k
,

re

VRB

-

ϖ

k
,

i

VRB


)











T
~




P
.


re
,

k

VRB


=


-


E
VRB
rated


a

VRB
,

c







ϖ
¨


re
,

k

VRB










T
~




ϖ
.


re
,

k

VRB


=





l



N
~


k


,

i





a
ij
k

(


ϖ

re
,

l

VRB

-

ϖ

re
,

k

VRB


)






.




According to the hierarchical distributed control method for the microgrid cluster with heterogeneous batteries provided by this invention, the design steps for the two-layer economic operation control algorithm for the microgrid cluster with the lithium battery include the following.


S511. Considering the cost function of the lithium battery, whose charging efficiency is related to output power, the cost function for operating can be represented by a traditional quadratic cost function as:









f

s
,

i

LB

(

P

s
,

i

LB

)

=



(


α

s
,

i

LB



P

s
,

i

LB


)

2

+


β

s
,

i

LB



P

s
,

i

LB


+

c

s
,

i

LB









f

re
,

s

LB

(

P

re
,

s

LB

)

=



(


α

re
,

s

LB



P

re
,

s

LB


)

2

+


β

re
,

s

LB



P

re
,

s

LB


+

c

re
,

s

LB



,







    • where αs,is,i, cs,i, αre,s, βre,s, and cre,s are the charging fitting coefficients for the i-th battery in the lower-layer network and the s-th representative battery in the upper-layer network.





S512. The proposed two-layer power management control method aims to minimize the total operating cost, and the control objective is:










{




min





i
=
1

n




f

s
,

i

LB

(

P

s
,

i

LB

)








min





i
=
1

S




f

re
,

s

LB



(

P

re
,

s

LB

)














s
.
t
.





i
=
1

n



P

s
,

i

LB



=






i
=
1

n


P

s
,

i

G


-




i
=
1

n



P

s
,

i

L



=

P

D
,

ic

LB









s
.
t
.





s
=
1

S



P

re
,

s

LB



=

P

D
,

re

LB







{






P

s
,

i

LB

=
0

,





if



SoC

s
,

i

LB




[



SoC

s
,

i

LB

_

,


SoC

s
,

i

LB

_


]









P

s
,

i

LB



[



P

s
,

i

LB

_

,


P

s
,

i

LB

_


]


,



else









{






P

re
,

s

LB

=
0

,





if



SoC

re
,

s

LB




[



SoC

re
,

s

LB

_

,


SoC

re
,

s

LB

_


]









P

re
,

s

LB



[



P

re
,

s

LB

_

,


P

re
,

s

LB

_


]


,



else







,






    • where PD,loLB and PD,reLB are the load power of the upper-layer network and the load power of the lower-layer network, respectively; Ps,iLB,Ps,iLB and SoCs,iLB,SoCs,iLB are the minimum/maximum output power and the minimum/maximum SoC of the i-th battery in the s-th microgrid, respectively; Pre,sLB,Pre,sLB and SoCre,sLB,SoCre,sLB are the minimum/maximum output power and the minimum/maximum SoC of the battery in the s-th representative node, respectively.





S513. The Karush-Kuhn-Tucker conditions for the cost function for operating are:






{










F
Lag

(

P

s
,

i

LB

)





P

s
,

i

LB



=







f

s
,

i

LB

(

P

s
,

i

LB

)





P

s
,

i

LB



-

ϖ

s
,

i

LB


=



2


α

s
,

i

LB



P

s
,

i

LB


+

β

s
,

i

LB

-

ϖ

s
,

i

LB


=
0













F
Lag

(

P

re
,

s

LB

)





P

re
,

s

LB



=







f

re
,

s

LB

(

P

re
,

s

LB

)





P

re
,

s

LB



-

ϖ

re
,

s

LB


=



2


α

re
,

s

LB



P

re
,

s

LB


+

β

re
,

s

LB

-

ϖ

re
,

s

LB


=
0






.





S514. The optimal solution can be obtained as follows:










{







s
,
i

LB

=


2


α

s
,
i

LB



P

s
,
i

LB


+

β

s
,
i

LB



,



as




P

s
,
i

LB



[



P

s
,
i

LB

_

,


P

s
,
i

LB

_


]










s
,
i

LB

=


2


α

s
,
i

LB




P

s
,
i

LB

_


+

β

s
,
i

LB



,



as




P

s
,
i

LB

=


P

s
,
i

LB

_










s
,
i

LB

=


2


α

s
,
i

LB




P

s
,
i

LB

_


+

β

s
,
i

LB



,



as




P

s
,
i

LB

=


P

s
,
i

LB

_











{







re
,
s

LB

=


2


α

re
,
s

LB



P

re
,
s

LB


+

β

re
,
s

LB



,



as




P

re
,
s

LB



[



P

re
,
s

LB

_

,


P

re
,
s

LB

_


]










re
,
s

LB

=


2


α

re
,
s

LB




P

re
,
s

LB

_


+

β

re
,
s

LB



,



as




P

re
,
s

LB

=


P

re
,
s

LB

_










re
,
s

LB

=


2


α

re
,
s

LB




P

re
,
s

LB

_


+

β

re
,
s

LB



,



as




P

re
,
s

LB

=


P

re
,
s

LB

_









.




Based on the hierarchical distributed control method for the microgrid cluster with heterogeneous batteries provided by this invention, the design steps of the two-layer economic operation control algorithm for the microgrid cluster with the vanadium redox flow battery include the following.


S521. The cost function of the vanadium redox flow battery is determined by the SoC and the charging power, which can be expressed as:








f

(

P

k
,
i

VRB

)

=



(



a

VRB
,
c




P

k
,
i

VRB


+


c

VRB
,
c




P
VRB
rated



)



SoC

k
,
i

VRB


+


b

VRB
,
c




P

k
,
i

VRB


+


d
VRB



P
VRB
rated




,






    • where pVRBrated represents the charging power of the vanadium redox flow battery, SoCk,iVRB represents its state of charge (SOC), PVRBrated is its rated charging power, aVRB,c, bVRB,c, cVRB,c, and dVRB,c are charging efficiency parameters obtained through a nonlinear least squares regression method.





S522. The control objective of the two-layer power management control algorithm for the vanadium redox flow battery in the microgrid cluster is:






{




min





i
=
1

n



f

k
,
i

VRB

(

P

k
,
i

VRB

)








min





k
=
1

K



f

re
,
k

VRB



(

P

re
,
k

VRB

)














s
.
t
.





i
=
1

n


P

k
,
i

VRB



=






i
=
1

n


P

k
,
i

G


-




i
=
1

n


P

k
,
i

L



=

P

D
,
Jo










s
.
t
.





k
=
1

K


P

re
,
k

VRB



=

P

D
,
re

VRB







{






P

k
,
i

VRB

=
0

,





if



SoC

k
,
i

VRB




[



SoC

k
,
i

VRB

_

,


SoC

k
,
i

VRB

_


]









P

k
,
i

VRB



[



P

k
,
i

VRB

_

,


P

k
,
i

VRB

_


]


,



else









{






P

re
,
k

VRB

=
0

,





if



SoC

re
,
k

VRB




[



SoC

re
,
k

VRB

_

,


SoC

re
,
k

VRB

_


]









P

re
,
k

VRB



[



P

re
,
k

VRB

_

,


P

re
,
k

VRB

_


]


,



else









    • where PD,loVRB and PD,reVRB represent the load powers of the two-layer network in the microgrid cluster with vanadium redox flow battery, Pk,iVRB,Pk,iVRB and SoCk,iVRB,SoCk,iVRB are the minimum/maximum output power and the minimum/maximum SoC of the i-th battery in the k-th microgrid, while Pre,kVRB,Pre,kVRB and SoCre,kVRB,SoCre,kVRB are the minimum/maximum output power and the minimum/maximum SoC of the k-th battery in the representative node.





S523. The KKT conditions for the vanadium redox flow battery are:






{













F
Lag

(

P

k
,
i

VRB

)





P

k
,
i

VRB



=






f

k
,
i

VRB

(

P

k
,
i

VRB

)





P

k
,
i

VRB



-









k
,
i

VRB

=




a

VRB
,
c




SoC

k
,
i

VRB


+

b

VRB
,
c


-


k
,
i

VRB


=
0


















F
Lag

(

P

re
,
k

VRB

)





P

re
,
k

VRB



=






f

re
,
k

VRB

(

P

re
,
k

VRB

)





P

re
,
k

VRB



-









re
,
s

LB

=




a

VRB
,
c




SoC

re
,
k

VRB


+

b

VRB
,
c


-


re
,
k

VRB


=
0








.





S524. The optimal solution can be obtained as:






{







k
,
i

VRB

=



a

VRB
,
c




SoC

k
,
i

VRB


+

b

VRB
,
c




,



as




SoC

k
,
i

VRB



[



SoC

k
,
i

VRB

_

,


SoC

k
,
i

VRB

_


]










k
,
i

VRB

=



a

VRB
,
c





SoC

k
,
i

VRB

_


+

b

VRB
,
c




,



as




SoC

k
,
i

VRB

=


SoC

k
,
i

VRB

_










k
,
i

VRB

=



a

VRB
,
c





SoC

k
,
i

VRB

_


+

b

VRB
,
c




,



as




SoC

k
,
i

VRB

=


SoC

k
,
i

VRB

_











{








re
,
k

VRB

=



a

VRB
,
c




SoC

re
,
k

VRB


+

b

VRB
,
c




,



as




SoC

re
,
k

VRB



[



SoC

re
,
k

VRB

_

,


SoC

re
,
k

VRB

_


]










re
,
k

VRB

=



a

VRB
,
c





SoC

re
,
k

VRB

_


+

b

VRB
,
c




,



as




SoC

re
,
k

VRB

=


SoC

re
,
k

VRB

_










re
,
k

VRB

=



a

VRB
,
c





SoC

re
,
k

VRB

_


+

b

VRB
,
c




,



as




SoC

re
,
k

VRB

=


SoC

re
,
k

VRB

_





.





The invention provides an electronic device, comprising a memory, a processor and a computer program stored on the memory which can operable on the processor. The processor is capable of executing programs to implement any of the above hierarchical distributed control methods for microgrid clusters with heterogeneous batteries.


The present invention provides a non-transitory computer-readable medium storing a program that causes a processor to implement any of the above hierarchical distributed control methods for microgrid clusters with heterogeneous batteries.


Compared with existing technologies, the present invention proposes a hierarchical distributed control framework to reduce the operational losses of different batteries in a microgrid cluster, while meeting the economic power sharing requirements within each microgrid, achieving economic power management between different microgrid clusters, and solving voltage regulation and power allocation problems within subnets and between microgrid clusters under communication delay interference.


Meanwhile, to solve the control problem of microgrid systems containing different types of batteries, the present invention physically defines the incremental cost of heterogeneous batteries as the partial derivative of battery energy loss with respect to output power, and proposes a cooperative control method for incremental cost of heterogeneous multiple battery cells, which can achieve economic power sharing among multiple heterogeneous battery cells while satisfying charging/discharging power constraints, SoC constraints, and power balance constraints. In addition, the method of combining heterogeneous batteries proposed by the present invention has scalability.





BRIEF DESCRIPTION OF THE DRAWINGS

To clearly illustrate the technical solution of the present invention, a brief introduction will be given to the images required for the cases. For those skilled in the art, other drawings can be obtained based on these drawings without creative labor.



FIG. 1 is a two-layer control structure diagram of heterogeneous batteries in DC microgrid clusters provided by the present invention.



FIG. 2 is a two-layer system diagram of the heterogeneous battery system provided by the present invention.



FIG. 3A is a physical structure diagram of the two-layer structure provided by the present invention.



FIG. 3B is a two-layer communication network diagram provided by the present invention.



FIG. 4A is a schematic diagram of incremental cost variables in the mode switching case of the present invention.



FIG. 4B is a schematic diagram of SoC variables in the mode switching case of the present invention.



FIG. 4C is a schematic diagram of the charging power variable in the mode switching case of the present invention.



FIG. 4D is a schematic diagram of node voltage variables in the mode switching case of the present invention.



FIG. 5A is a schematic diagram of incremental cost variables in the load changes case of the present invention.



FIG. 5B is a schematic diagram of SoC variables in the load changes case of the present invention.



FIG. 5C is a schematic diagram of the charging power variable in the load changes case of the present invention.



FIG. 5D is a schematic diagram of node voltage variables in the load changes case of the present invention.



FIG. 6A is a schematic diagram of incremental cost variables in the plug and play case of the present invention.



FIG. 6B is a schematic diagram of SoC variables in the plug and play case of the present invention.



FIG. 6C is a schematic diagram of the charging power variable in the plug and play case of the present invention.



FIG. 6D is a schematic diagram of the voltage variable in the plug and play case of the present invention.



FIG. 7A is a schematic diagram of incremental cost variables in the communication delay case of the present invention.



FIG. 7B is a schematic diagram of SoC variables in the communication delay case of the present invention.



FIG. 7C is a schematic diagram of the charging power variable in the communication delay case of the present invention.



FIG. 7D is a schematic diagram of node voltage variables in the communication delay case of the present invention.



FIG. 8 is a schematic diagram of the electronic device structure provided by the present invention.





DESCRIPTION OF THE EMBODIMENTS
Specific Implementation Method

The technical solution of the present invention will be described clearly and completely in conjunction with the accompanying drawings. Obviously, the described cases are a part of the cases of the present invention, not all of them. Based on the cases of the present invention, all other cases obtained by skilled persons in the art without creative labor are within the scope of protection of the present invention.


This case is the hierarchical distributed control method for the microgrid cluster with heterogeneous batteries, which includes a hierarchical distributed control framework for microgrids. The structure comprises primary droop control, two-layer voltage regulation control, and two-layer power management control. It can address voltage regulation issues within subnets and between microgrid clusters, as well as the economic power distribution among multiple heterogeneous batteries.


Secondly, the incremental cost of heterogeneous batteries is physically unified as the partial derivative of the battery's energy loss with respect to output power. A cooperative control method for the incremental cost of multiple heterogeneous battery units is proposed, allowing economical power distribution among various units while satisfying charging/discharging power constraints, SoC constraints, and power balance constraints.


Finally, the proposed method combines battery types with charging efficiency related to charging power (e.g., lithium batteries) and battery types with charging efficiency related to SoC (e.g., vanadium flow batteries), which makes it easily scalable. Even when a new type of battery is adopted in the microgrid cluster, the proposed method remains effective.


Case 1

Case 1 simulates several DC microgrid clusters containing lithium-ion and vanadium flow batteries. The physical structure and communication links of the heterogeneous batteries within the microgrid clusters are shown in FIGS. 3A and 3B, and the parameters of the two-layer structure are given in Tables 1 and 2.


The lithium-ion battery microgrid MG1LB contains nodes DG1,1LB and DG1,2LB, while MG2LB contains nodes DG2,1LB and DG2,2LB. The vanadium flow battery microgrid MG1VRB contains nodes DG1,1VRB, DG1,2VRB, and DG1,3VRB, while MG2VRB includes node DG2,1VRB.


In the two-layer control structure, the lithium-ion battery nodes DG1,2LB and DGLB2,2LB, and the vanadium flow battery nodes DG1,3VRB and DG2,1VRB are selected as representative nodes. The state of DG1,1LB can follow the state of DG1,2LB, and the state of DG2,1LB can follow the state of DG1,2LB.


In the vanadium flow battery microgrid, DG1,1VRB and DG1,2VRB can follow the state of DG1,3VRB.


Moreover, the leadership adjacency matrix is defined as BS=diag{1,0,1,0}, BK=diag{1,1,0,1}, {tilde over (B)}S=diag{1,1}, while the rest of the adjacency matrices are designed as

    • AS=[0,1,0,0; 1,0,0,0; 0,0,0,1; 0,0,1,0],
    • AK=[0,1,1,0; 1,0,1,0; 1,1,0,0; 0,0,0,0],
    • ÃSK=[0,1; 1,0].


The corresponding eigenvalues of the matrices are λmax[({tilde over (L)}S+{tilde over (B)}S)⊗In]2]=9, λmin[(LS+BS)⊗In]=1, λmax(LS+BS)=3, λmax(LK+BK)=3, λmin(LK+BK)=0.382, λmin(LS+BS)=0.382, λ2({tilde over (L)}K⊗In)=2, λmax[({tilde over (L)}K⊗In)2]=4.


Additionally, this example sets the control time coefficients of the lithium-ion battery microgrid clusters to T=0.2, T=10, and those of the vanadium flow battery microgrid clusters to {tilde over (τ)}=0.3, {tilde over (T)}=20, yielding ψVSVKV=0.5093, which clearly meets the control time constant ratio constraints








τ
T

<


ψ
V



and




τ
~


T
~



<

ψ
V


,




while ensures voltage regulation in the two-layer structure.


The control gain coefficients are set as Kli=3, Kli,up=0.8, Kvan=1, Kvan,up=0.5. Therefore.






max


{









T
2

+



(

K

li
,
up


)

2




λ
max

[

[



L
~

S

+


B
~

S






)



I
n


]

2

]





2


TK

li
,
up





λ
max

[

[



L
~

S

+


B
~

S





)



I
n


]


,











τ
~


2


K
van




λ
min

(


L
K

+

B
K


)



=
6.61

,






min


{



2
τ



K
li




λ
min

(


L
K

+

B
K


)


,












T
~

2




λ
2

(



L
~

K



I
n


)




K

van
,
up






λ
max

(



L
~

K



I
n


)

2



=

11.459

are



obtained
.






Therefore, in this case, the condition coefficient is set to γ=8 ensure the stability of the control system.









TABLE 1







Parameters of microgrid with lithium battery









Parameters
Symbol
Value













Nominal Voltage
V*
300
V









Charge Power
pB, i0
{1.88, 2.98, 1.8, 2.55}KW


Droop Parameter
Di
{0.25, 0.28, 0.22, 0.5}


Charge Parameter
α
0.038


Charge Parameter
β
0.118


Line Resistance
Rline
0.05Ω










Line Inductance
Lline
15
mH


Battery Nominal Power
PVRBrated
1.5
kW


Battery Capacity
ELBrated
20
kWh









Charging Power
[PLB, i,
[0.5 kW, 5 kW]


Limitation

PLB, i]

















TABLE 2







Parameters of microgrid with vanadium flow battery









Parameters
Symbol
Value













Nominal Voltage
V*
300
V









Charge Power
PB, i0
{5.11, 5.10, 7.12, 3.2}KW


Droop Parameter
Di
{0.23, 0.27, 0.25, 0.52}


Charge Parameter
ac, bc, cc, dc
−0.128, 1.05, 0.038, 0.118


Line Resistance
Rline
0.01Ω










Line Inductance
Lline
5
mH


Battery Nominal Power
PVRBrated
5
kW


Battery Capacity
ELBrated
50
kWh









SoC Limitation
[SoCi, SoCi]
[0.2, 0.8]


Charging Power
[PVRB, i, PVRB, i]
[1 kW, 10 kW]


Limitation









Case 2

When switching from islanded mode to grid-connected mode, the control process is divided into two parts as shown in FIGS. 4A, 4B, 4C, and 4D.


In the initial staget ∈[0,0.2)s, eight nodes including distributed generation units with batteries operate in islanded mode, and their incremental costs, SoC, charging power, and voltage do not interact with each other. Then, the islanded DC microgrid cluster system can be connected to the grid at t=0.2s.


In the second part t∈[0.2,2)s, by adding a lower layer controller, eight nodes including distributed generation units with batteries are formed into four independent microgrids. Therefore, incremental cost consistency, SoC coordination, economical charging power allocation, and voltage regulation can be achieved within each microgrid. At the same time, the upper layer controller can achieve state interaction between microgrids containing different batteries, coordinate incremental costs, balance SoC, allocate charging power, and eliminate voltage deviations.


During the control process of microgrid with the lithium-ion battery, the follower controllers in DG1,1LB and DG2,1LB can follow the leader controllers in DG1,2LB and DG2,2LB. Meanwhile, the representative nodes DG1,2LB and DG2,2LB can coordinate the state of microgrid cluster with the lithium-ion battery by exchanging information and receiving external reference data. Similarly, in microgrid cluster with the vanadium flow battery, the incremental cost, SoC, and node voltage of DG1,1VRB and DG1,2VRB can be controlled to match the corresponding parameters of DG1,3VRB.


Moreover, microgrid cluster with the vanadium flow battery applies a distributed cooperative control method, whereas microgrid cluster with the lithium-ion battery implements a leader-follower control method at the upper control layer. It is worth noting that the leader defined in microgrid cluster with the lithium-ion battery essentially acquires steady-state information from microgrid cluster with the vanadium flow battery. Subsequently, by applying power balance constraints within microgrid cluster with the hybrid battery, the designed algorithm can achieve voltage regulation and economic power management.


Case 3

In this case, a 2.5 k W load Load2,2LB is removed from node DG2,2LB when t∈[0.6,0.8)s and re-added at t=0.8s. Furthermore, a 15 kW load Load1,3VRB is removed from node DG1,3VRB at t=1s and re-added at t=1.4s. After networking at t=0.2s, FIG. 5A demonstrates that the incremental costs of all battery units can converge to a common value. Load variations in microgrid cluster with the vanadium flow battery will affect the SoC increase rate of each battery, as depicted in FIG. 5B.



FIG. 5C shows the charging power of all batteries. In a single microgrid, the state of representative node DG1,2&2,2LB influences the state of non-representative nodes, while non-representative nodes DG1,1&2,1LB perform power allocation through information exchange to achieve power balance. At t=0.6s, the removal of the 2.5 kW load from node DG2,2LB increases the charging power of each lithium battery node. After the load is re-added at t=0.8s, the charging power returns to its previous value. For microgrid cluster with the vanadium flow battery, a 15 kW load Load1,3VRB is removed from DG1,3VRB when t∈[1,1.4)s, and the charging power variation shown in FIG. 5C confirms the robustness of the invention under load fluctuations. Since the actual charging power follows the reference values provided by the controller, voltage fluctuations caused by load changes can be eliminated, and the system can re-enter a steady state, as shown in FIG. 5D.


Case 4

This case demonstrates the plug-and-play capability, as shown in FIGS. 6A, 6B, 6C, and 6D.


Six battery-equipped DG units form a microgrid at t=0.2s. At t=0.6s, a new microgrid MG1LB is added, disrupting the steady state of the original microgrid cluster composed of six battery-equipped DG units. At this point, the designed two-layer controller is applied to the system to mitigate the fluctuations caused by the plug operation, while coordinating incremental costs, balancing SoC, sharing charging power, and restoring the voltage. After a brief period of transient evolution, the system can return to a stable state.


The microgrid cluster MG2LB formed by DG2,1&2,2LB is cut off at t=1.6s, severing the physical link between MG2LB and the other microgrid clusters. However, after the disconnection of MG2LB, the remaining microgrid clusters MG1LB, MG1VRB, and MG2VRB can still realize economic power sharing and voltage regulation, demonstrating the plug-and-play capability of the proposed two-layer control structure.


Case 5

Variable communication delays 0.008 (sin(25t)+π/4)+0.022 exist in this case, as depicted in FIGS. 7A, 7B, 7C, and 7D. Due to the control time constraints between the microgrid clusters containing lithium batteries and those containing vanadium redox flow batteries, the two-layer control scheme of this invention is highly sensitive to system response speed. However, the sparse communication matrix can cover a wide range of low-bandwidth communication networks, providing robustness against delays in communication links. The impact is minimal, thus the system can still accomplish incremental cost alignment, SoC balancing, power distribution, and voltage regulation.


Case 6


FIG. 8 illustrates a schematic diagram of the physical structure of an electronic device. The electronic device include a processor 810, a communications interface 820, memory 830, and a communications bus 840. The processor 810, communications interface 820, and memory 830 communicate with each other via the communications bus 840. The processor 810 can invoke logical instructions in memory 830 to execute the hierarchical distributed control method for microgrid clusters with heterogeneous batteries.


Furthermore, the logical instructions stored in memory 830 can be realized in the form of software functional units. The software can be stored in a computer-readable storage medium when sold or used independently. With this understanding, the technical solution of this invention, or the part contributing to existing technology, may be expressed as a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in various cases of the invention. The aforementioned storage media include: USB drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical discs, and various other media capable of storing program code.


Furthermore, the present invention provides a non-transitory computer-readable medium storing a program that causes a processor to implement any of the above hierarchical distributed control methods for microgrid clusters with heterogeneous batteries.


The aforementioned device cases are only illustrative. The units described as separate components may or may not be physically separated, and the components presented as units may or may not be physical entities. They may be situated in one location or distributed across multiple network units. Parts or all of the modules can be selected according to actual needs to achieve the objectives of the case. Skilled persons in this field can understand and implement it without creative effort.


Based on the description of the above cases, those skilled in the art can readily understand that these cases can be realized by using software combined with the necessary general hardware platform, or through hardware. Naturally, hardware can also be employed. From this perspective, the essence of the above-mentioned technical solution, or the part contributing to existing technologies, can be embodied as a software product, which may be stored in computer-readable storage media, such as ROM (read-only memory)/RAM (random-access memory), magnetic disks, optical disks, etc., including a set of instructions for enabling a computer device (such as a personal computer, server, or network equipment) to perform the methods described in the cases or portions of them.


Finally, it should be clarified that the above cases serve merely to illustrate the technical solutions of the invention and are not intended to limit them. Although the invention has been described in detail with reference to the above cases, those skilled in the field should understand that they can still modify the technical solutions described in the previous cases, or make equivalent replacements of certain technical features. These modifications or replacements do not deviate from the spirit and scope of the technical solutions of the cases of the present invention.

Claims
  • 1. A hierarchical distributed control method for a microgrid cluster with heterogeneous batteries, characterized by following steps: establishing a two-layer control structure, which includes primary droop control, two-layer voltage regulation control, and two-layer power management control;unifying a physical definition of incremental cost for heterogeneous battery units;adopting P-V primary droop control to quickly track a nominal voltage of an i-th converter's output voltage;using a two-layer voltage regulation controller; when a control time meets conditions 0<τ/T<ψV and 0<{tilde over (τ)}/{tilde over (T)}<ψV, a two-layer voltage regulation algorithm achieves following control objectives:
  • 2. The hierarchical distributed control method for the microgrid cluster with the heterogeneous batteries according to claim 1, wherein the two-layer control structure includes: S11, all nodes in a microgrid cluster system are divided into representative nodes and non-representative nodes, wherein all representative nodes form a upper-layer control structure, and the non-representative nodes form a lower-layer control structure;S12, the two-layer control structure selects representative nodes from each subnet for performing a distributed consensus control method via a upper-layer communication network {tilde over (G)}, while the other nodes in a lower layer perform a leader-follower control method via a communication network G to coordinate their own states;S13, a lower-layer network of the two-layer control structure adopts the leader-follower control method to ensure that a stable state of each node is consistent with that of the representative node, achieving voltage restoration, incremental cost coordination, and power balance within an individual microgrid;S14, an operation of a upper-layer network of the two-layer control structure has two situations: when an external node sends a reference state value to the upper-layer network, the upper-layer network adopts the leader-follower control method to ensure the stable state of the representative node equals the reference value; otherwise, the upper-layer network employs the distributed consensus control method to ensure the stable state of the representative node equals to an average of total initial values.
  • 3. The hierarchical distributed control method for the microgrid cluster with the heterogeneous batteries according to claim 1, wherein the unified physical definition of the incremental cost for the heterogeneous battery units includes: S21, for different types of batteries, an evaluation method of a state of charge (SoC) is expressed as:
  • 4. The hierarchical distributed control method for the microgrid cluster with the heterogeneous batteries according to claim 1, wherein the P-V primary droop control includes: S31, a voltage and power output expression for the P-V primary droop control is:
  • 5. The hierarchical distributed control method for the microgrid cluster with the heterogeneous batteries according to claim 1, wherein the two-layer voltage regulation controller includes: S41, a voltage regulation algorithm for a single microgrid MGs/MGk in a lower layer:
  • 6. The hierarchical distributed control method for the microgrid cluster with the heterogeneous batteries according to claim 1, wherein the two-layer power management controller includes: S51, a two-layer economic operation control for the microgrid cluster with the lithium battery includes:a lower-layer power controller:
  • 7. The hierarchical distributed control method for the microgrid cluster with the heterogeneous batteries according to claim 6, wherein an algorithm for the two-layer economic operation control for the microgrid cluster with the lithium battery in S51 includes: S511, considering a cost function of the lithium battery, which have charging efficiency related to output power, the cost function for operating is represented by a traditional quadratic cost function as:
  • 8. The hierarchical distributed control method for the microgrid cluster with the heterogeneous batteries according to claim 6, wherein an algorithm for the two-layer economic operation control for the microgrid cluster with the vanadium redox flow battery in S52 includes: S521, considering a cost function of the vanadium redox flow battery, the cost function of the vanadium redox flow battery is expressed as:
  • 9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes proposed program, it implements the hierarchical distributed control method for the microgrid cluster with the heterogeneous batteries according to claim 1.
  • 10. A non-transitory computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the hierarchical distributed control method for the microgrid cluster with the heterogeneous batteries according to claim 1.
Priority Claims (1)
Number Date Country Kind
202311810350.X Dec 2023 CN national