Distributed Control Strategy of Microgrid Based On The Concept of Cyber Physical System
Distributed Control Strategy of Microgrid Based On The Concept of Cyber Physical System
To cite this article: Bo Zhang, Chun-Xia Dou, Dong Yue, Zhan-Qiang Zhang & Kai Ma (2019)
Distributed Control Strategy of Microgrid Based on the Concept of Cyber Physical System,
Electric Power Components and Systems, 47:1-2, 55-76, DOI: 10.1080/15325008.2018.1564227
CONTENTS
Abstract—For distributed energy resources (DERs) in islanded
1. Introduction microgrid (MG), to improve the control effect on the output
voltages and frequency from droop control, a novel distributed
2. Hierarchical Control Structure
control strategy is proposed in this article based on the concept of
3. Design of the Cyber Layer cyber physical system (CPS). The novel control structure is
4. Design of the Physical Layer consisted by the cyber and the physical layers. In the cyber layer:
5. Case Study and Analysis firstly, the communication structures of overall microgrid and
single DER are constructed; then, based on the communication
6. Conclusions structures, the influence of time-delay (delay) and packet loss
References (loss) on consensus control is analyzed in this article; And then,
an event-triggered mechanism combined with adapt virtual leader-
following consensus control (AVLFCC) and predictive
compensation is proposed in this layer. It is used to solve the
problem of time-varying delay and loss rate in the process of
consensus control. In the physical layer: firstly, the droop control
is used as the primary control on the output voltages and
frequency of DERs; then, a novel secondary control method is
proposed by using the event-triggered mechanism. And finally, the
simulation results confirm the effectiveness of the novel
distributed control strategy under communication problems (delay
and loss) and during plug-and-play operation.
1. INTRODUCTION
1.1. Literature Review
The CPS is the combination of communication system and
physical entities. It is the next generation engineering sys-
tem. Its function of real-time sense, dynamic control and
information service are realized by the cooperation of the
3C (control, computation, and communication) technology
Keywords: islanded microgrid, distributed control, cyber physical system, [1]. After the concept of “smart grid” has been put for-
event-triggered mechanism, time-varying delay and loss rate,
secondary control ward, the application of CPS in power grid is more and
Received 28 April 2017; accepted 2 December 2018 more extensive [2] and [3], and it is called as “power
Address correspondence to Chun-Xia Dou, Institute of Electrical Engineering, CPS” [4]. The basic architecture of power CPS was also
Yanshan University, Qinhuangdao 066004, People’s Republic of China.
E-mail: [email protected]; Dong Yue, Institute of Advanced Technology, constructed in [4]. Due to the MG is an important compo-
Nanjing University of Posts and Telecommunications, Nanjing 210023, nent of smart grid, a lot of research has been done on com-
People’s Republic of China. E-mail: [email protected]
Color versions of one or more of the figures in the article can be found
bining the concept of CPS and MG in recent years. This
online at www.tandfonline.com/uemp. concept is best applied to the control strategy of MG.
55
56 Electric Power Components and Systems, Vol. 470 (2019), No. 1-2
For an islanded MG system, the droop control is widely decoupled. But this method was not easy to be imple-
used to control the output voltages and frequency of DERs mented in actual power system. Another droop control
in the system. Due to this control method is derived by method by using the virtual power was proposed in [8], the
using many approximations, so the traditional droop con- output voltage and frequency could be also decoupled by
trol will make errors between the controlled variables and this method. However, there were still errors between the
the reference values. It needs the improved control method controlled variables and the reference values by using the
to keep the output voltages and frequency of DERs stably proposed control methods in [6]–[8]. And the use of the
and improve the control effect. Based on the analysis communication network in MG to improve the control
above, there are some corresponding researches in recent effect on DERs was not considered in [5]–[8].
years: A hybrid control strategy for MG with optimal And recently, with the development of communication
scheduling was proposed in [5]. There were two layers in technology, there are some control strategies proposed to
the strategy: the primary layer was for controlling, and the improve the control effect by using communication data. A
secondary layer was for optimization. But it did not take frequency control strategy based on the average consensus
into account the influence of external disturbances (e.g. algorithm was proposed in [9]. Another control method
variations from load). An adaptive droop control strategy with the consensus algorithm was proposed in [10] to
was proposed in [6]. It could adjust the voltage and fre- improve the control effect on frequency. A novel consensus
quency according to external disturbance. An improved algorithm was used in [11] to accomplish the distributed
droop control method based on virtual impedance and vir- load shedding. An adaptive droop control strategy for DC
tual power source was proposed in [7]. This method made MG based on the discrete consensus algorithm was used in
the output voltage and frequency of the droop control [12]. By using consensus control, the parameters in droop
Zhang et al.: Distributed Control Strategy of Microgrid Based on the Concept of Cyber Physical System 57
control were adjusted in [13] to realize the proportional of plug and play can be also realized by using the novel
distribution of load. The secondary control strategy was control strategy.
used in [14] and [15], and the control effect of DERs had
been improved. But the problems of delay and loss in com-
1.2. Assumptions and Contributions
munication were not considered in [9]–[15].
Certainly, there are also some studies proposed to over- In this article, some assumptions are given for the sake of
come the communication problems in recent years. For simplicity: (a) the MG is considered to operate in the
example, Dou et al studied the control strategy of bridge islanded mode; (b) each DER can be regarded as an agent
type DC MG and ordinary AC MG under the consideration in communication network; (c) in the experiments, the
of delay in [16] and [17]. The problem of delay, loss, and renewable energy resources are replaced by direct current
constrained bandwidth had been also studied in [18]. (DC) or alternating current (AC) power sources; (d) when
However, the researches on delay in [16]–[18] are limited. the topology of the MG system is switched, there is
Once the delay was too long, the ideal control effect can- no transition.
not be maintained. Meanwhile, the communication struc- The novel and contribution of this article are as below:
tures of the overall MG and a single DER were not 1. Based on the concept of CPS, the communication
constructed in [9]–[18]. structures of the overall MG and single DER are con-
At present, the distributed control is still the most structed in this article. Meanwhile, a novel distributed con-
studied control strategy [19]. But there are still few studies trol strategy on the output voltages and frequency of DERs
on control strategies to solve the problems in communica- is proposed by using the communication structures. The
tion. And the communication structure in MG is not shown novel control strategy has the characteristic of distributed
in most studies. To improve the control effect on output coordination, and it needs less communication data than
voltage and frequency of each DER with considering the centralized control; 2. An event-triggered mechanism is
problems of delay and loss, a novel distributed control designed to solve the problems of time-varying delay and
strategy is proposed in this article. The control strategy is loss rate. By this method, the conservatism of consensus
also a hierarchical control (it is consisted by cyber and control for delay and loss problems is greatly reduced; 3.
physical layers). The control effect on each DER in the According to the Laplace integral theorem, differential the-
physical layer is improved by using the communication orem and terminal value theorem, an AVLFCC method is
data and consensus control from cyber layer. The capability designed in this article. The parameters in controller can be
58 Electric Power Components and Systems, Vol. 470 (2019), No. 1-2
that case, the only one agent is set as the leader (or “root designed to analyze the influence of delay and loss on the
node”), and the state value of the leader is set as t. The other consensus control. And the controller is designed as the
agents are set as followers. For a multi-agent system, the kind of virtual leader-following consensus controller.
leader–following consensus control is accomplished if there is The delay and packet loss rate in communication are
lim jjxi ðtÞxL ðtÞjj ¼ 0 (2) assumed as below:
t!1
i. The delay occurs in the process that the
The first-order mathematical model is used universally in communication data is sent from the ith DER to the
multiagent system, and the equation is ith communicator. But the value is usually very small,
so it can be ignored in this article.
x_ i ¼ ui (3)
ii. The delay also occurs in the process that the data is
where xi is the state value of the ith DER; ui is the con- sent from the jth DER to the ith DER by
trol input. communicator. And it is set as sij . If time-varying
Therefore, the state of each follower will be consistent to delay is considered, the effect of delay on communication
ith by a consensus protocol. And the protocol can be regarded data can be regarded as changing xij ðtÞ to xij ðtsij ðtÞÞ,
which is essentially the change of data. Furthermore, the
as the way to design controller. Without considering delay
change in time domain can be expressed more specifically
and loss, the consensus protocol of the ith agent is
X in frequency domain. In the frequency domain, a time-
ui ðtÞ ¼ ki aij xj ðtÞ xi ðtÞ þ bi ðxL ðtÞ xi ðtÞÞ (4) delay system can be replaced by a first order inertial
j2Ni system. So if the data is xðtdelayÞ, it can be represented
xðSÞ
as 1þdelayS in the frequency domain, where xðSÞ is the
where xL ðtÞ is the state of the leader; Ni is the collection of Laplace transformation of xðtÞ. Therefore, the data can be
neighbor agents of the ith agent; bi represents the relation- set as kij ðtÞxij ðtÞ in time domain, where kij ðtÞ represents
ship between the leader and the ith agent. If the leader con- the change of data.
nects to the ith agent, bi >0 and bi ¼ 0 otherwise. iii. In the process that the data is sent from the jth DER
Each DER in the MG system can be regarded as an to the ith DER by communicator, the corresponding
agent (follower). Each one can transmit/receive its state packet loss rate is set as 1lij ( i; j 2 ½1; 2 and i 6¼ j ).
data (voltage and frequency) to/from neighbor DERs. All If the loss rate is time-varying, the effect of loss on
DERs constitute the communication network in the the communication data can be regarded as changing
islanded MG. But in actually, there is not convenient to xij ðtÞ to lij ðtÞxij ðtÞ.
select a leader in the power system. So, the “virtual leader” The consensus protocol with considering time-varying
delay and loss rate is as below:
is proposed in this article to solve the problem. “Virtual
8
leader” does not actually exist in a MG, its implementation >
> x_ 1 ¼ kx1 ½a12 l12 ðtÞk12 ðtÞx2 ðtÞx1 ðtÞ
>
>
is only to design the xL of consensus controller to a fixed >
< þb1 l1L ðtÞk1L ðtÞxL ðtÞx1 ðtÞ
value (e.g. voltage or frequency reference value). This can (5)
>
> x_ 2 ¼ kx2 ½a21 l21 ðtÞk21 ðtÞx1 ðtÞx2 ðtÞ
be regarded as a separate agent has been constructed, and >
>
>
:
its state value is xL . As long as the setting of aij guarantees þb2 l ðtÞk2L ðtÞxL ðtÞx2 ðtÞ
2L
the existence of the directed spanning tree and the con-
where k1L ðtÞ represents the change of the data sent from
structed agent acts as the root node, the control effect of
the virtual leader to DER1; k2L ðtÞ represents the change of
consensus control can be guaranteed.
the data sent from the virtual leader to DER2. The Eq. (5)
can be also expressed as
3.4. Consider the Consensus Protocol with the x_ ¼ Ax þ Bu (6)
Problems of Delay and Loss
The coefficient matrices are as follows:
The existence of delay and loss in cyber layer will affect
the quality of communication [22]. And the control effect ½a12 þ b1 kx1 kx1 a12 l12 ðtÞk12 ðtÞ
A¼ :
in cyber layer will be also affected. The specific analysis is kx2 a21 l21 ðtÞk21 ðtÞ ½a21 þ b2 kx2
as the follows.
b l ðtÞk1L ðtÞ
B ¼ 1 1L
b2 l2L ðtÞk2L ðtÞ
3.4.1. Analyze the influence of delay and loss on consensus
control. In this article, the case of two DERs (followers) To verify the stability of (6), there is jSI Aj ¼ 0. The
and one virtual leader (the topology is as Figure 4) is solutions ( S1 ; S2 ) are as (7).
Zhang et al.: Distributed Control Strategy of Microgrid Based on the Concept of Cyber Physical System 61
8
>
> f½a12 þ b1 kx1 þ ½a21 þ b2 kx2 g
>
> S1 ¼ þ
>
> qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
2
>
>
> f½a þ b k þ ½a þ b k g2 4k k ½ða þ b Þða þ b Þa a l l k k Þ
>
>
> 12 1 x1 21 2 x2 x1 x2 12 1 21 2 12 21 12 21 12 21
<
2 (7)
>
> f½a12 þ b1 kx1 þ ½a21 þ b2 kx2 g
> S1 ¼
>
>
> qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
2
>
>
>
> f½a12 þ b1 kx1 þ ½a21 þ b2 kx2 g2 4kx1 kx2 ½ða12 þ b1 Þða21 þ b2 Þa12 a21 l12 l21 k12 k21 Þ
>
>
:
2
and there are: kx21 a21 l21 ðsÞk21 ðsÞX1 ðsÞ=4p2 þ kx22 b2 l2L ðsÞXL ðsÞ=2p þ x2 ð0Þ
¼ þ c2
8 s þ kx21 a21 þ kx22 b2
>
> x_ 1 ¼ kx11 a12 ½l12 ðtÞx2 ðts21 ðtÞÞx1 ðtÞ
>
< (17)
þkx12 b1 ½l1L ðtÞxL ðtÞx1 ðtÞ
(13) where X1 ðsÞ; X2 ðsÞ, and XL ðsÞ are the state values obtained
>
> x_ ¼ kx21 a21 ½l21 ðtÞx1 ðts21 ðÞx2 ðtÞ Ð Ð
>
:
2
by Laplace transform; c1 ¼ x1 ðtÞdtjt¼0 ; c2 ¼ x2 ðtÞdtjt¼0 .
þkx22 b2 ½l2L ðtÞxL ðtÞx2 ðtÞ
If the gains meet the following condition, the states of
where x1 ðtÞ is the state of the DER1; x2 ðtÞ is the state of DERs can be consistency to the corresponding states of the
the DER2. The errors are as below: virtual leader:
8
e1 ðtÞ ¼ x1 ðtÞxL ðtÞ > kx11 a12 l12 ð0Þk12 ð0ÞX2 ð0Þ=4p2 þ kx12 b1 l1L ð0ÞXL ð0Þ=2p þ x1 ð0Þ
(14) >
> þ c1 ¼ 0
e2 ðtÞ ¼ x2 ðtÞxL ðtÞ <
kx11 a12 þ kx12 b1
> kx21 a21 l21 ð0Þk21 ð0ÞX1 ð0Þ=4p þ kx22 b2 l2L ð0ÞXL ð0Þ=2p þ x2 ð0Þ
>
2
where xL is the state of the virtual leader. According to the >
: þ c2 ¼ 0
kx21 a21 þ kx22 b2
Laplace transformation and the approximation principle
(18)
(the delay part can be approximated as a first-order inertial
part). The following equations can be obtained. The proof is accomplished.
Zhang et al.: Distributed Control Strategy of Microgrid Based on the Concept of Cyber Physical System 63
3.4.4. Design of the predictive compensation part. In the – 1)T is used to obtain the subsequent data. The specific
case of delay or loss occurs in the system, the communica- design process is as the follows.
tion data will be changed. This will further affect the con-
trol effect of consensus control. Therefore, if the existence Design the MPC of the ith DER. Based on the research
of delay and loss results in steady-state error or overshoot of [23] and the structure of Figure 1, the MPC can be used
exceeding the trigger values, the actual communication in MG. For the ith DER, the procedure of constructing the
data will be discarded. Meanwhile, the predictive data MG mathematical model is as below:
obtained by ELM and MPC will be used to replace the dis-
carded data, and thus ensure the consensus control can be 1. The control system in Figure 1 is needed to be discrete,
realized. The predictive process is as shown in Figure 5. and the sampling time is set as T. The output voltage
The operation process is as follows: when the event-trig- and frequency of droop control at KT are set as Ui ðKÞ
gered mechanism is triggered at t ¼ KT, the data of t ¼ (K and xi ðKÞ respectively.
64 Electric Power Components and Systems, Vol. 470 (2019), No. 1-2
(
2. Ui ðKÞ and xi ðKÞ will be transferred to the voltage Pi ðK þ 1Þ ¼ f10 Uodi ðK þ 1Þ; Uoqi ðK þ 1Þ; Iodi ðK þ 1Þ; Ioqi ðK þ 1Þ
synthesis part. This process can be represented as Qi ðK þ 1Þ ¼ f11 Uodi ðK þ 1Þ; Uoqi ðK þ 1Þ; Iodi ðK þ 1Þ; Ioqi ðK þ 1Þ
Ui /hi ðK Þ ¼ f1 Ui ðK Þ; xi ðK Þ (19) (22)
where Ui /hi ðKÞ is the obtained voltage by the voltage 6. Pi ðK þ 1Þ and Qi ðK þ 1Þ will be transferred to the
synthesis part. droop control part. Ui ðK þ 1Þ and xi ðK þ 1Þ can be
3. Ui /hi ðKÞ will be transferred to the Park transformation also obtained by this part. The process can be
part. Udrefi ðKÞ and Uqrefi ðKÞ can be also obtained by expressed as
this part. According to the structure of voltage and Ui ðK þ 1Þ ¼ f12ðPi ðK þ 1ÞÞ
current double closed loop in [7], Udrefi ðKÞ and (23)
xi ðK þ 1Þ ¼ f13 Qi ðK þ 1Þ
Uqrefi ðKÞ are also the inputs of voltage loop. After
inputting Udrefi ðKÞ and Uqrefi ðKÞ in the voltage loop, In summary, the output of droop control part at t ¼
Idrefi ðKÞ and Iqrefi ðKÞ can be obtained. Meanwhile, the (K þ 1)T can be obtained from the output data of droop
two variables are the inputs of current loop. The control at t ¼ KT. The initial parameters for MPC includ-
process can be also expressed as ing ZInverteri , ZLinei , Li , Ci and UDCi , et al. In actually, the
8
> Udrefi ðK Þ ¼ f2 ðUi /hi ðK ÞÞ running time in the MG is continuous. Therefore, it needs
>
>
>
< U ðK Þ ¼ f ðU /h ðK ÞÞ to add the D-A converter on the output of MPC.
qrefi 3 i i
In summary, when the data at t ¼ t0 is known, the data
>
> I ð K Þ ¼ f U ð K Þ; Uodi ðK Þ; Uoqi ðK Þ; Iodi ðK Þ
> drefi 4 drefi
: I ðK Þ ¼ f U ðK Þ; U ðK Þ; U ðK Þ; I ðK Þ
> at any time after t0 can be obtained by recursion from (19)
qrefi 5 qrefi oqi odi oqi to (23).
(20)
Design the ELM. ELM is a fast training method for sin-
4. Idrefi and Iqrefi will be transferred to the current loop.
gle hidden layer feed-forward neural network. The initial
Meanwhile, the PWM trigger signal will be obtained
parameters for ELM including historical data, operation
by this part at first. Then, the trigger signal will be
used to create the PWM signal. And then, the PWM time, number of neurons and initial weight, et al. This
signal will be used to control the inverter. The method is operated as the follows.
U0i ðk þ 1Þ (including three-phase, thus A set of training samples is set as
U0ai ðk þ 1Þ; U0bi ðk þ 1ÞandU0ci ðk þ 1Þ ) will be also TELM ¼ fðxi ; yi Þ; i ¼ 1; L; Lg, and xi 2 Rn ; yi 2 Rn . The
obtained. And finally, through the LC filter, Uoi ðK þ 1Þ ELM model with N hidden layer nodes can be expressed
(including Uoai ðk þ 1Þ; Uobi ðk þ 1ÞandUoci ðk þ 1Þ ) and as below [24]:
Ioi ðK þ 1Þ (including U0ai ðk þ 1Þ, U0bi ðk þ 1Þ, and
X
N
U0ci ðk þ 1Þ ) will be obtained. The process can be also bi gðai xi þ ci Þ ¼ Hb (24)
expressed as i¼1
8
>
> PWMi ðK Þ ¼ f6 Idrefi ðK Þ; Iqrefi ðK Þ; Ildi ðK Þ; Ilqi ðK Þ where bi is the weight of the ith hidden layer node to the
>
>
< U ðK þ 1Þ ¼ f PWM ðK Þ; U ; Z
> output layer; ai is the weight for the input layer to the ith
0i 7 i DCi Inverteri
hidden layer node; ci is the degree of bias of the ith hidden
>
> Uoi ðK þ 1Þ ¼ f8 ðU0i ðK þ 1Þ; Li ; Ci ; ZLinei Þ
>
> layer node; H is the output matrix of the hidden layer; b is
>
:
Ioi ðK þ 1Þ ¼ f9 ðU0i ðK þ 1Þ; Li ; Ci ; ZLinei Þ the matrix with the weights of the hidden layer to the out-
(21) put layer. According to Eq. (24), the weights of the hidden
layer to the output layer can be obtained by the least
where Ildi and Ilqi are obtained by Park transformation
square solution of the following linear equation:
on the inductive current Ili (including Ilai ðk þ 1Þ,
Ilbi ðk þ 1Þ, and Ilci ðk þ 1Þ ); UDCi is the voltage of the min kHb Y k (25)
b
ith DER; Zinverteri is the impedance of the ith inverter;
And the solution is b ^ ¼H þ Y , H þ is the Moore-Penrose
ZLinei is the line impedance.
5. The Uodi ðK þ 1Þ, Uoqi ðK þ 1Þ, Iodi ðK þ 1Þ and generalized inverse matrix of H. According to the method
Ioqi ðK þ 1Þ will be obtained by the Park transformation of ELM, the mathematical model of the MG can be built
on Uoi ðK þ 1Þ and Ioi ðK þ 1Þ. And then, the four quickly by historical data. The input data of ELM is time,
things will be transferred to the PQ calculation part. while the target data is the communication data (i.e. the
Meanwhile, Pi ðK þ 1Þ and Qi ðK þ 1Þ can be obtained. output of each DER by droop control). When the weight of
The process can be expressed as the input layer to the hidden layer is determined, the
Zhang et al.: Distributed Control Strategy of Microgrid Based on the Concept of Cyber Physical System 65
weight of the hidden layer to the output layer can be 3. Obtain the predictive data
obtained according to (24) and (25), thus the training of The final predictive data at t ¼ KT is
ELM is completed. ^y ðKÞ ¼ cELM ðKÞyELM ðKÞ þ cMPC ðKÞyMPC ðKÞ; ðy ¼ U=y ¼ xÞ
8
>
> 1: If lim DUi0 <TUi1 and the overshoot of AVLFCC<TUi2
>
> t!1
X h i
where Ui /hi is the obtained voltage by this part. The pro- >
>
>
> u ¼ kUi1 aij lij ðtÞUj t sij ðtÞ Ui ðtÞ þ kUi2 bi liL ðtÞUL Ui ðtÞ
>
>
Ui
cess of designing the doubled closed loop and virtual con- >
< j2Ni
2: lim DUi0
TUi1 or the overshoot of AVLFCC
TUi2
troller is as same as [7]. And the virtual controller is used >
>
t!1
> ð1Þ Use the predictive data
>
to decouple the voltage and frequency of each DER. >
> "
#
> ð2 Þ u ¼ k X a U
>
>
^ i ðtÞ þ bi UL U
^ j ðtÞ U ^ i ðt Þ
>
> Ui Ui ij
: j2Ni
where Udi and Uqi are voltages obtained by Park transform- 4.2.2. Secondary control on frequency. The goal of second-
ation. So, the primary control on voltage can be also writ- ary control on frequency is adjusting xi to xref . To
ten as achieve this goal, based on the differential of Eq. (29), an
auxiliary variable uxi is set up in this article. Meanwhile,
Udi ¼ Uref ni Qi
(32)
Uqi ¼ 0 the following equation can be established.
Therefore, the goal of the secondary control on voltage x_ i ¼ x_ ref ni Q_ i ¼ uxi ; i ¼ 1; 2; :::; n (36)
is adjusting Udi to Uref . To achieve the goal, based on the It is similar to Eq. (34), the consensus protocol for fre-
differential of (32), an auxiliary variable uUi is set in this quency can be designed as below:
article. Meanwhile, the following equation can be 8
>
> 1: lim Dx0i <Txi1 and the overshoot of AVLFCC<Txi2
established. >
> X
>
>
t!1
>
> uxi ¼ kxi1 ½aij ðlij ðtÞxj ðt sij ðtÞÞ xi ðtÞ þ kxi2 bi ½liL ðtÞxL xi ðtÞ
>
>
_ i uUi
U_ di ¼ U_ ref ni Q (33) < j2Ni
2: lim Dx0i
Txi1 or the overshoot of AVLFCC
Txi2
>
> t!1
Based on the analysis in Section 3, the delay and loss >
> ð1ÞUse the predictive
>
> X data
>
> ^ j ðtÞ x
^ i ðtÞÞ þ bi ðx
^ L x
^ i ðtÞÞ
problems are considered in this article. To obtain a better > ð2Þuxi ¼ kxi ½
> aij ðx
: j2Ni
control effect, the consensus protocol for voltage is
designed as below: (37)
FIGURE 8. The effect on predictive compensation part. FIGURE 9. Variations of frequency and voltage in MG1.
(a) The effect on predictive compensation part without dis- (a) Variations of frequency (delay occurs in the system);
turbance; (b) The effect on predictive compensation by (b) Variations of frequency (loss occurs in the system); (c)
MPC (the Load2 is added at t ¼ 2.5 ms); (c) The effect on Variations of frequency by using AVLFCC (delay occurs
predictive compensation by ELM (the Load2 is added at
in the system); (d) Variations of frequency by using
t ¼ 2.5 ms); (d) The effect on predictive compensation by
the proposed part (the Load2 is added at t ¼ 2.5 ms). AVLFCC (loss occurs in the system).
68 Electric Power Components and Systems, Vol. 470 (2019), No. 1-2
Case
Time 1) 2) 3)
t ¼ 1s sj1 =sj5 ¼ 0:5s; lj1 =lj5 ¼ 0:99; sj1 =sj5 ¼ 0:01s; lj1 =lj5 ¼ 0:99; sj1 =sj5 ¼ 0:005s; lj1 =lj5 ¼ 0:99;
other sij ¼ 0s; other lij ¼ 1 other sij ¼ 0s; other lij ¼ 1 other sij ¼ 0s; other lij ¼ 1
t ¼ 2s Turn sj1 =sj5 to 0.01s Turn sj1 =sj5 to 0.5s Turn sj1 =sj5 to 0.01s
TABLE 3. The running process in Case 3.
where x^ i and x
^ j are the predictive frequency values of the used to test the accuracy of the predictive compensation part.
ith DER and the jth DER, respectively; Kxi , Kxi1 and Kxi2 The simulation results are as shown in Figure 8.
are the gains. When selecting consensus protocol, it should The analysis is as below: As shown in Figure 8(a),
be the same as (34), judging first. there is no significant difference among the three predict-
After the system is stable, Switch 3 will be closed, and ive methods when the system is stable. After comparing
xi1 will be adjusted to x ^ i1 . Meanwhile, there will be Figures 8(b)–(d), it has found that: When the system has
a large fluctuation, the adaptability of MPC method is
^ i1 ¼ xi1 þ dxi
x
(38) poor. There is the maximum error between the predictive
dxi ¼ xref xi1
data by MPC and the true data; ELM is a method of ran-
where xi1 is the final frequency value obtained by the domly selecting input weights, different ELM models
consensus control. The feedback value on frequency is Tx1 . have different adaptive abilities to the input data.
Therefore, the predictive error of the ELM model may be
5. CASE STUDY AND ANALYSIS also very large; the predictive data is the most similar to
the true data by using the proposed part combined with
To verify the control effect of the control strategy by appli-
MPC and ELM.
cation, an islanded MG model similar to the actual system
is designed as the experimental model. The specific struc-
ture is as shown in Figure 7. The model is composed of
MG1 and MG2. In order to be reasonable and simplify the
5.2. Case 2: Verify the Effectiveness of the Distributed
experiment process, the DERs are replaced by DC (or AC)
Control Strategy in the Actual System
power sources. The simulation parameters are shown in the
Table 1. The virtual leader-following consensus protocol is used in
this article to accomplish the distributed control (secondary
5.1. Case 1: Verify the Effectiveness of the Predictive control). The voltage and frequency of the virtual leader
Compensation Part are set as Uref and xref , respectively. According to the MG
In this case, the obtained historical frequency data of DER1 system shown in Figure 7, the corresponding matrices are
by droop control is selected as the experiment object. It is set as below:
8 2 3 2 3
>
> 0 1 1 1 0 0
>
> 6 7 6 7
>
> 6
>
> T off : A ¼ 41 0 175; other aij ¼ 0 B ¼ diag½b1 ; b2 ; b3 ¼ 6 40 1 07
5
>
>
2 a
Aa : a57 ¼ 1; a65 ¼ 1; a76 ¼ 1and other aij ¼ 0
>
> 2 3
>
< 1 1 0 0 0 1
2 3 2 3 1 0 0
MG1 : 0 1 1 1 1 0 0 0 MG2 : 6 7
>
> B ¼ diag ½ b ; b ; b ¼ 60 1 07
>
> 6 7 6 7 5 6 7 4 5
>
> 61 0 1 17 60 1 0 07
>
> T on : A ¼ 6 7; other aij ¼ 0 B ¼ diag½b1 ; b2 ; b3 ; b4 ¼ 6 7 0 0 1
>
>
2 a 61 1 0 17 60 07
>
> 4 5 4 0 1 5
>
:
1 1 1 0 0 0 0 1
(39)
Zhang et al.: Distributed Control Strategy of Microgrid Based on the Concept of Cyber Physical System 69
Based on the analysis in Section 3 part D, the gains in the adjusted to their respective reference values after a transi-
consensus protocol should satisfy the following conditions: ent process.
8
>
> kx51 a57 l57 ð0Þk57 ð0ÞX7 ð0Þ=4p2 þ kx52 b5 l5L ð0ÞXL ð0Þ=2p þ x5 ð0Þ
>
> þ c5 ¼ 0
>
> kx51 a57 þ kx52 b5
>
>
<
k a l ð0Þk65 ð0ÞX5 ð0Þ=4p2 þ kx62 b6 l6L ð0ÞXL ð0Þ=2p þ x6 ð0Þ
MG2 : x61 65 65 þ c6 ¼ 0
>
> kx61 a65 þ kx62 b6
>
>
>
> kx71 a76 l76 ð0Þk76 ð0ÞX6 ð0Þ=4p2 þ kx72 b7 l7L ð0ÞXL ð0Þ=2p þ x7 ð0Þ
>
>
: þ c7 ¼ 0
kx31 a76 þ kx72 b7
8
>
> kx11 a12 l12 ð0Þk12 ð0ÞX2 ð0Þ þ a13 l13 ð0Þk13 ð0ÞX3 ð0Þ =4p2 þ kx12 b1 l1L ð0ÞXL ð0Þ=2p þ x1 ð0Þ
>
> þ c1 ¼ 0
>
> kx11 ða12 þ a13 Þ þ kx12 b1
>
>
>
<
kx21 a21 l21 ð0Þk21 ð0ÞX1 ð0Þ þ a23 l23 ð0Þk23 ð0ÞX3 ð0Þ =4p2 þ kx22 b2 l2L ð0ÞXL ð0Þ=2p þ x2 ð0Þ
MG1 : T2 off : þ c2 ¼ 0
>
> kx21 ða21 þ a23 Þ þ kx22 b2
>
>
>
>
>
> kx31 a32 l32 ð0Þk32 ð0ÞX2 ð0Þ þ a31 l31 ð0Þk31 ð0ÞX1 ð0Þ =4p2 þ kx32 b3 l3L ð0ÞXL ð0Þ=2p þ x3 ð0Þ
>
: þ c3 ¼ 0
kx31 ða32 þ a31 Þ þ kx32 b3
8
>
> kx11 a12 l12 ð0Þk12 ð0ÞX2 ð0Þ þ a13 l13 ð0Þk13 ð0ÞX3 ð0Þ þ a14 l14 ð0Þk14 ð0ÞX4 ð0Þ =4p2 þ kx12 b1 l1L ð0ÞXL ð0Þ=2p þ x1 ð0Þ
>
> þ c1 ¼0
>
> kx11 ða12 þ a13 þ a14 Þ þ kx12 b1
>
>
>
>
>
> kx21 a21 l21 ð0Þk21 ð0ÞX1 ð0Þ þ a23 l23 ð0Þk23 ð0ÞX3 ð0Þ þ a24 l24 ð0Þk24 ð0ÞX4 ð0Þ =4p þ kx22 b2 l2L ð0ÞXL ð0Þ=2p þ x2 ð0Þ þ c2
> 2
>
< ¼0
kx21 ða21 þ a23 þ a24 Þ þ kx22 b2
T2 on :
>
> kx31 a32 l32 0 k32 0 X2 0 þ a31 l31 0 k13 0ÞX1 ð0Þ þ a34 l34 ð0Þk34 ð0ÞX4 ð0Þ =4p2 þ kx32 b3 l3L ð0ÞXL ð0Þ=2p þ x3 ð0Þ
ð Þ ð Þ ð Þ ð Þ ð
>
> þ c3 ¼0
>
> kx31 ða23 þ a13 þ a43 Þ þ kx32 b3
>
>
>
>
>
> kx41 a42 l42 ð0Þk42 ð0ÞX2 ð0Þ þ a43 l43 ð0Þk43 ð0ÞX3 ð0Þ þ a41 l41 ð0Þk41 ð0ÞX1 ð0Þ =4p2 þ kx42 b4 l4L ð0ÞXL ð0Þ=2p þ x4 ð0Þ
>
> þ c4 ¼0
: kx41 ½a24 þ a34 þ a14 þ kx42 b4
(40)
Ð Ð Ð
where c3 ¼ x3 dtjt¼0 ;c4 ¼ x4 dtjt¼0 ; c5 ¼ x5 dtjt¼0 ; c6 ¼ 5.3. Case 3: Verify the Effectiveness of the Event-
Ð Ð
x6 dtjt¼0 ; c7 ¼ x7 dtjt¼0 ; x represents the voltage or frequency Triggered Mechanism
of DER; X represents the Laplace equation of x. Take the To verify the effectiveness of the trigger mechanism on solv-
variations of frequency in MG1 (T2 on) as the example, and the ing the problems of time-varying delay and loss rate, the
selected parameters are as shown in the Table 2. MG1 and MG2 have all been experimented. For the parame-
The simulation results are as Figure 9. ters used in the experiment, the selecting rules are as follows.
The analysis is as below: As shown in Figure 9(a) and Delay is selected as 0.5 s and 0.01 s. The parameters are
(b), the obtained voltages and frequency by secondary con- obtained by simulation experiment. After a lot of simulation
trol will oscillate over a period of time when delay or loss experiments, it has found that: when the delay is 0.5 s, there
occurs in the cyber layer. And the overshoot in the control will be a large steady-state error and a large overshoot; when
process is very large. The control effect of AVLFCC is delay is 0.01 s, the control effect of consensus control will be
shown in Figure 9(c) and (d). As shown in the two figures, less; Tf 12 and TU12 : For a MG system, the generally permis-
the output frequency and voltage of each DER can be sible frequency and voltage deviations are 0:05fref 0:05fref
70 Electric Power Components and Systems, Vol. 470 (2019), No. 1-2
FIGURE 13. Variations of frequency and voltage in MG2 FIGURE 14. Variations of frequency and voltage in MG1
(load disturbance exists in the system). (a) Variations of when the DER4 is added at t ¼ 2 s. (a)Variation of fre-
voltage in MG2 by using droop control; (b) Variations of quency in MG1 by using the droop control; (b) Variations
frequency in MG2 by using droop control; (c) Variations of voltage in MG1 by using the droop control; (c)
of frequency in MG2 by using the novel distributed con- Variations of frequency in MG1 by using the distributed
trol; (d) Variations of voltage in MG2 by using the novel control; (d) Variations of voltage in MG1 by using the dis-
distributed control. tributed control.
74 Electric Power Components and Systems, Vol. 470 (2019), No. 1-2
6. CONCLUSIONS
In this article, a novel distributed control strategy is proposed
to improve the control effect on output voltage and frequency
of each DER in MG. Based on the concept of CPS, the novel
control structure is consisted by cyber and physical layers. In
the cyber layer, the communication structures of overall MG
and single DER are constructed. Meanwhile, to solve the prob-
lems of time-varying delay and loss rate, an event-triggered
mechanism combined with AVLFCC and predictive compensa-
tion is also proposed in this layer. In the physical layer, based
on the proposed mechanism, a novel secondary control method
is proposed to obtain a better control effect on DERs. Finally,
the case 1 has confirmed that the expected predictive data can
be obtained through the predictive compensation part; the case
2 has confirmed that the problems of delay and loss have been
solved effectively in this article; the case 3 has confirmed that
the output voltage and frequency of each DER can be adjusted
to their respective reference values by using the secondary con-
trol method and event-triggered mechanism; the stability of the
novel control strategy has been confirmed in the case 4 under
the condition of load or DER variations.
FUNDING
This work is supported by the Key projects of the National
Natural Science Foundation of China under Grant
61833008, National Natural Science Foundation of China
under Grants 61573300 and 61533010, Jiangsu Provincial
FIGURE 15. Variations of frequency and voltage in MG1 Natural Science Foundation of China under Grant
when the DER4 is cut down at t ¼ 2 s. (a) Variations of fre- BK20171445, Key research and development plan of
quency in MG1 by using the droop control; (b) Variations Jiangsu Province-Industrial foresight and common key
of voltage in MG1 by using the droop control; (c) technical projects under Grant BE2016184, and Hubei
Variations of frequency in MG1 by using the distributed
control; (d) Variations of voltage in MG1 by using the dis-
Provincial Natural Science Foundation of China under
tributed control. Grant E2016203374.
Zhang et al.: Distributed Control Strategy of Microgrid Based on the Concept of Cyber Physical System 75
Yanshan University, Qinhuangdao, China, in 2005. In Zhanqiang Zhang received the dual B.S. degree in elec-
2010, she joined the Department of Engineering, Peking trical engineering and automation/mathematics and applied
University, Beijing, China, where she was a Postdoctoral mathematics from Hebei University of Science and
Fellow for two years. Since 2005, she has been a Technology, Shijiazhuang, China, in 2015. He is currently
Professor in Institute of Electrical Engineering, Yanshan pursuing the M.S. degree in automation with Yanshan
University. Her current research interests include multi- University, Qinhuangdao, China. He is currently a Chinese
agent based control, event-triggered hybrid control, dis- Association of Automation Member. His current research
tributed coordinated control, and multi-mode switching interests include distributed generation control and micro-
control and their applications in power systems, grid networked control research.
Microgrids and smart grids.
Kai Ma received the B.Sc. degree in automation and Ph.D.
Dong Yue received the Ph.D. degree from the South China degree in control science and engineering from Yanshan
University of Technology, Guangzhou, China, in 1995. He University, Qinhuangdao, China, in 2005 and 2011,
is currently a professor and dean of Institute of Advanced respectively. In 2011, he joined Yanshan University. From
Technology, Nanjing University of Posts and 2013 to 2014, he was a Postdoctoral Research Fellow with
Telecommunications and also a Changjiang Professor with Nanyang Technological University, Singapore. He is cur-
the Department of Control Science and Engineering, rently an Associate Professor with the Department of
Huazhong University of Science and Technology. His Automation, School of Electrical Engineering, Yanshan
research interests include analysis and synthesis of net- University. His research interests include demand response
worked control systems, multi-agent systems, optimal con- in smart grids and resource allocation in communica-
trol of power systems, and internet of things. tion networks.