1 s2.0 S0142061523003368 Main
1 s2.0 S0142061523003368 Main
1 s2.0 S0142061523003368 Main
Keywords: Reducing transient effects of power quality in the distribution network of a microgrid requires a better
Covariance function understanding of the dynamics of power flow and distributed energy resources (DERs) present within the
Microgrid microgrid. Instead of labor intensive and detailed physics-based distribution network and DER modeling, this
Nonlinearity
paper shows how power flow dynamics can also be modeled in a dynamic equivalent with a data-driven
Power flow
approach that exploits the time dependent covariance of power flow at different locations within a microgrid.
System identification
The proposed approach results in multi-input multi-output (MIMO) linear time invariant (LTI) discrete-time
filter concatenated by a static nonlinearity to model both dynamics and power losses. Estimation of the MIMO
LTI dynamics is done by the Covariance Based Realization Algorithm (CoBRA) that can handle noisy perturbed
measurements and provide a low order MIMO LTI filter with a normalized steady-state gain. The additional
static nonlinearity is found by the estimation of the admittance matrix of the distribution network within
the microgrid. The main contribution of this paper is proposing a physics-informed data-driven approach to
modeling microgrid power flow dynamics, where the CoBRA method is implemented to learn parameters from
data while observing a priori physical constraints. The approach is illustrated on experimental data from a
microgrid with multiple DERs and it is shown that an excellent agreement in power flow dynamics is obtained
over a large operating range, which demonstrates its advantage over the N4SID method.
∗ Corresponding author.
E-mail address: yah071@ucsd.edu (Y. Hu).
https://doi.org/10.1016/j.ijepes.2023.109279
Received 30 January 2023; Received in revised form 29 April 2023; Accepted 23 May 2023
Available online 8 June 2023
0142-0615/© 2023 Elsevier Ltd. All rights reserved.
Y. Hu and R.A. de Callafon International Journal of Electrical Power and Energy Systems 153 (2023) 109279
2
Y. Hu and R.A. de Callafon International Journal of Electrical Power and Energy Systems 153 (2023) 109279
3
Y. Hu and R.A. de Callafon International Journal of Electrical Power and Energy Systems 153 (2023) 109279
With 𝐈 defined as an identity matrix, an orthogonal projection a linear regression optimization based on either the covariance data
[ ]−1 {𝑅̂ 𝑢𝜉 (𝜏), 𝑅̂ 𝑦𝜉 (𝜏)} or the time-domain data {𝑢(𝑡), 𝑦(𝑡)}. In addition, the
̂T 𝐑
𝛱 ⊥̂T = 𝐈 − 𝐑 ̂T
̂ 𝑢𝜉 𝐑 ̂ 𝑢𝜉
𝐑 (8)
𝐑𝑢𝜉 𝑢𝜉 𝑢𝜉 identified model is expected to be applicable for a wide range of
working power levels although the data for identification is obtained
⃗.
is introduced to remove the part containing the information 𝛹 and 𝛹 by exciting the system with small perturbations around a given equi-
Thus, (6) and (7) can be further reduced to librium. Thus, a priori information of the system should be taken into
̂ 𝑥𝜉 𝛱 ⊥
̂ 𝑦𝜉 𝛱 ⊥ = O𝑟 𝐑 account to guarantee a reliable model structure.
𝐑 ̂T ̂T
(9)
𝐑𝑢𝜉 𝐑𝑢𝜉 From the physical perspective, the DERs have unit static gains since
the output active and reactive power will always be adjusted to be
̂ → 𝛱 ⊥ = O𝑟 𝐴𝐑
𝐑 ̂ 𝑥𝜉 𝛱 ⊥ (10)
𝑦𝜉 ̂ T𝐑𝑢𝜉 ̂T 𝐑𝑢𝜉 equal to the set points. For this reason, the unit static gain will be
enforced during the estimation of 𝐵 and 𝐷. On the other hand, the
The matrix 𝐴 can be approximated by solving the optimization problem
mean values will usually be removed beforehand from the covariance
data {𝑅̂ 𝑢𝜉 (𝜏), 𝑅̂ 𝑦𝜉 (𝜏)} to focus on the dynamics. Thus, the raw data
‖ ‖
‖ ̂ →𝛱⊥ ‖
̂ 𝑥𝜉 𝛱 ⊥ − 𝐑 {𝑢(𝑡), 𝑦(𝑡)} will be a better choice for the optimization with a gain
min ‖O𝑟 𝐴𝐑 ̂T ‖
(11)
𝐴 ‖ 𝐑̂T 𝑦𝜉 𝐑 ‖
‖ 𝑢𝜉 𝑢𝜉 ‖𝐹 constraint. The constrained optimization to be solved is then given as
̂ 𝑥𝜉 𝛱 ⊥ are required. Directly solving follows
where an estimation of O𝑟 and 𝐑 ̂T ( )
𝐑𝑢𝜉 ‖ ⎡vec 𝑥0 ⎤ ‖
(11) is typically impossible. However, as mentioned in Section 3.1, ‖ ‖
‖ ‖
min ‖𝐘 − 𝐗 ⎢ vec (𝐵) ⎥ ‖
the estimated model parameters {𝐴, ̂ 𝐵,
̂ 𝐶,
̂ 𝐷}
̂ are just required to be 𝑥0 ,𝐵,𝐷 ‖ ⎢ ⎥ ‖
‖ ⎣ vec (𝐷) ⎦ ‖ (15)
equivalent to the true ones in the sense of being within a similarity ‖ ‖2
transformation. The reason is that both of them are equivalent from s.𝑡. ̂ 𝑛 − 𝐴)
[𝐶(𝐈 ̂ −1 𝐵 + 𝐷]
(𝑘𝑟 ,𝑘𝑐 ) = Gain(𝑘𝑟 ,𝑘𝑐 )
the perspective of the input–output description. Their mathematical
relation is where (𝑘𝑟 , 𝑘𝑐 ) represents the index of a matrix element in row 𝑘𝑟 and
column 𝑘𝑐 , Gain(𝑘𝑟 ,𝑘𝑐 ) is the corresponding predetermined static gain
̂ −1 , 𝐵 = 𝑀 𝐵,
𝐴 = 𝑀 𝐴𝑀 ̂ −1 , 𝐷 = 𝐷
̂ 𝐶 = 𝐶𝑀 from the 𝑘𝑐 th input to the 𝑘𝑟 th output, 𝐴̂ and 𝐶̂ are estimated from
Section 3.2, and
where 𝑀 is a certain nonsingular matrix. Thus, it is sufficient to solve
the following relaxed version of (11) instead ⎡ 𝑦 (0) ⎤ ⎡ 𝜑 (0) ⎤
⎢ ⎥ ⎢ ⎥
‖ ‖ ⎢ 𝑦 (1) ⎥ 𝜑 (1) ⎥
‖̂ ̂̂
min ‖O ⊥ ̂ →𝛱⊥ ‖ 𝐘= ,𝐗 = ⎢
̂T ‖
𝑟 𝐴𝐑𝑥𝜉̂ 𝛱𝐑 −𝐑 (12) ⎢ ⋮ ⎥ ⎢ ⋮ ⎥
𝐴̂ ‖ ‖
̂T 𝑦𝜉 𝐑
‖ 𝑢𝜉 𝑢𝜉 ‖𝐹 ⎢𝑦 (𝑁 − 1)⎥ ⎢𝜑 (𝑁 − 1)⎥
⎣ ⎦ ⎣ ⎦
where Ô = O𝑟 𝑀 and 𝐱̂ (𝑡) = 𝑀 −1 𝐱 (𝑡). One appropriate selection of the [ ∑ ]
{ 𝑟 } 𝜑 (𝑘) = 𝐶̂ 𝐴̂ 𝑘 𝑘−1 T
𝑢(𝑖) ⊗ 𝐶̂ 𝐴̂ 𝑘−𝑖−1 𝑢(𝑘)T ⊗ 𝐈𝑚
pair Ô 𝑟, 𝐑
̂ 𝑥𝜉
̂ 𝛱
⊥ is obtained through the singular value decomposi- 𝑖=0
̂T
𝐑𝑢𝜉
tion of (9) Note that there is no need to specify the static gains for all the
[ ] [ T] subsystems. In our case, only the six diagonal elements of the transfer
[ ] 0 𝑉1
̂ 𝑦𝜉 𝛱 ⊥ = 𝑈1 , 𝑈2 𝛴1
𝐑 function matrix is required to be constrained, i.e.,
𝐑̂T 0 𝛴2 𝑉 T
𝑢𝜉
2
1∕2 1∕2 (13) Gain(𝑗,𝑗) = 1, 𝑗 ∈ {1, 2, … , 6} (16)
≈ 𝑈1 𝛴1 𝛴1 𝑉1T
⏟⏟⏟ ⏟⏟⏟
̂𝑟
O ̂ 𝑥𝜉
𝐑 ⊥ 4. Modeling of the static nonlinearity
̂ 𝛱 T̂
𝐑
𝑢𝜉
where 𝛴1 ∈ R𝑛×𝑛 contains the 𝑛 dominant singular values and thus can 4.1. Admittance matrix of the microgrid network
be used to determine the system order 𝑛. The matrix 𝐴̂ can be computed
by solving (12) and the matrix 𝐶̂ is directly given as the first 𝑚 rows Following the conventional definition of the (positive sequence)
𝑣 𝑖
of O ̂ 𝑟. voltage phasor 𝐕 = 𝑉 𝑟𝑚𝑠 𝑒𝑗𝜙 and current phasor 𝐈 = 𝐼 𝑟𝑚𝑠 𝑒𝑗𝜙 , along
Even if the actual dynamic system is stable, the estimated matrix 𝐴 with the (positive sequence) apparent power
may be unstable due to poor SNR conditions of the experimental data. 𝑣 −𝜙𝑖
𝐒 = 𝐕𝐈∗ = 𝑉 𝑟𝑚𝑠 𝐼 𝑟𝑚𝑠 𝑒𝑗 (𝜙 ) = 𝑃 + 𝑗𝑄 (17)
A stable approximation of matrix 𝐴 can be guaranteed by solving a
modified version of (12) with the pole location constraints where 𝑟𝑚𝑠 denotes the root mean square of a signal and is omitted in
‖ ( )† ‖ the following discussions for notational simplicity. The static coupling
‖̂ ̂ →𝛱⊥ 𝐑 ̂ 𝑥𝜉 ‖
min𝑄,𝑃 ‖O 𝑄−𝐑 𝛱 ⊥̂T 𝑃‖ between phasors and power loss at the PCC can be characterized by
‖ 𝑟 𝑦𝜉 ̂ T
𝐑𝑢𝜉 ̂ 𝐑𝑢𝜉 ‖
‖ ‖𝐹 the admittance matrix of the microgrid network. In particular for the
s.𝑡. 𝑎 ⊗ 𝑃 + 𝑏 ⊗ 𝑄 + 𝑏𝑇 ⊗ 𝑄 T ≥ 0 (14) microgrid framework of Fig. 2, the relation between the phasors is
𝑃 = 𝑃T > 0 given by
T𝑟 (𝑃 ) = 𝑛 ⎡ 𝐕𝑏 ⎤ ⎡ 𝐈𝑏 ⎤
[ ] ⎢ ⎥ ⎢ ⎥
𝐕 𝐈
where 𝑎 = 1 − 𝛿, 𝛿 ∈ [0, 1], 𝑏 =
0 1
, and (⋅)† represents the right 𝐌⎢ 𝑑 ⎥ = ⎢ 𝑑 ⎥ (18)
0 0 ⎢ 𝐕𝑠 ⎥ ⎢ 𝐈𝑠 ⎥
⎢𝐕 ⎥ ⎢ ⎥
pseudo-inverse. Denote the optimum of (14) as {𝑄∗ , 𝑃 ∗ }. Then, matrix ⎣ 𝑃 𝐶𝐶 ⎦ ⎣𝐈𝑃 𝐶𝐶 ⎦
𝐴̂ is estimated by 𝐴 = 𝑄∗ 𝑃 ∗−1 and the eigenvalues of 𝐴̂ are enforced
where 𝐈𝑏 , 𝐈𝑑 , and 𝐈𝑠 are the currents going through the BESS, diesel, and
to be within the disk with radius (1 − 𝛿) in the complex plain. One can
solar/PV respectively, 𝐈𝑃 𝐶𝐶 = −𝐈𝑏 − 𝐈𝑑 − 𝐈𝑠 . The admittance matrix 𝐌
find other different pole location constraints in [34].
in (18) is defined by
4
Y. Hu and R.A. de Callafon International Journal of Electrical Power and Energy Systems 153 (2023) 109279
Table 1
Nominal values for five scenarios.
Input Initial 1 (0–60 s) 2 (60–70 s) 3 (70–80 s) 4 (80–90 s) 5 (90–100 s)
Pin
b
0 kW 0 kW –20 kW –20 kW –20 kW –20 kW
Qin
b
0 kVAR 0 kVAR 0 kVAR –5 kVAR –5 kVAR –5 kVAR
Pin
d
0 kW 0 kW 0 kW 0 kW 40 kW 40 kW
Qin
d
0 kVAR 0 kVAR 0 kVAR 0 kVAR 0 kVAR 10 kVAR
Pin
s 0 kW 30 kW 30 kW 30 kW 30 kW 30 kW
Qin
s
0 kVAR 0 kVAR 0 kVAR 0 kVAR 0 kVAR 0 kVAR
Output Initial
PPCC 18.3 kW
QPCC 3.45 kVAR
and it should be noted that only the power flows between the main grid the resistance. Thus, 𝑌𝑘 ≈ 𝑅1 by neglecting the imaginary part and (22)
𝑘
and DERs are considered since we are only interested in the dynamic can be further reduced to
modeling from the DERs to the PCC. ⎧( 𝑟𝑒 )2 ( )2
The admittance matrix 𝐌 of the network is dependent on the ⎪ 𝑉𝑘 − 𝑉𝑘𝑟𝑒 𝑉𝑃𝑟𝑒𝐶𝐶 + 𝑉𝑘𝑖𝑚 − 𝑉𝑘𝑖𝑚 𝑉𝑃𝑖𝑚𝐶𝐶 = 𝑅𝑘 𝑃𝑘
⎨ 𝑟𝑒 𝑖𝑚 (24)
structure of the local distribution lines and can be approximated by ⎪𝑉𝑘 𝑉𝑃 𝐶𝐶 − 𝑉𝑘𝑖𝑚 𝑉𝑃𝑟𝑒𝐶𝐶 = 𝑅𝑘 𝑄𝑘
using (18). Only the admittance between PCC and each DER is taken ⎩
into account here. A more general case also considers the admittance The corresponding currents 𝐈𝑘 = 𝐼𝑘𝑟𝑒 + 𝑗𝐼𝑘𝑖𝑚 can be computed from (18)
between the DERs, which results in a similar admittance matrix. How- once (𝑉𝑘𝑟𝑒 , 𝑉𝑘𝑖𝑚 ) is obtained. The active power loss going through each
ever, for the structure (19) used in this paper, each line admittance power channel is then 𝑃𝑘𝑙𝑜𝑠𝑠 = [(𝐼𝑘𝑟𝑒 )2 + (𝐼𝑘𝑖𝑚 )2 ]𝑅𝑘 . The reactive power
can be simply estimated separately instead of computing the whole loss is 𝑄𝑙𝑜𝑠𝑠
𝑘
= [(𝐼𝑘𝑟𝑒 )2 + (𝐼𝑘𝑖𝑚 )2 ]𝑋𝑘 . Note that 𝑄𝑙𝑜𝑠𝑠
𝑘
can be neglected for
admittance matrix as the case of small inductance in the distribution lines and then 𝑄𝑙𝑜𝑠𝑠 = 0.
∑ 𝑘
I𝑘 The total active power loss reflected at the PCC is Ploss = 𝑘 𝑃𝑘𝑙𝑜𝑠𝑠 while
𝑌𝑘 = , 𝑘 = 𝑏, 𝑑, 𝑠 (20) ∑ PCC
V𝑘 − V𝑃 𝐶𝐶 the total reactive power loss Qloss PCC
= 𝑘 𝑄𝑙𝑜𝑠𝑠
𝑘
(= 0).
Denote the initial active and reactive power levels at the PCC as
4.2. Estimation of the power loss Pinit
PCC
and Qinit
PCC
when the three channels are neither producing or
consuming power. Then, the active and reactive power at the PCC
shown in Fig. 2 considering the power loss are estimated by
The distribution line with admittance 𝑌𝑘 (𝑘 = 𝑏, 𝑑, 𝑠) is modeled as
∑
a serial connection of a resistor 𝑅𝑘 and an inductor 𝐿𝑘 , where 𝑌𝑘 = PPCC = Pinit
PCC
− 𝑃𝑘 + Ploss
PCC
(25)
1
𝑅𝑘 +𝑗2𝜋𝑓 𝐿𝑘
. The reactance 𝑋𝑘 = 2𝜋𝑓 𝐿𝑘 and 𝑓 is the fundamental AC 𝑘
power frequency (e.g. 50 or 60 Hz). The total power loss is computed ∑
QPCC = Qinit
PCC
− 𝑄𝑘 + Qloss
PCC
(26)
as 𝐈2𝑘 (𝑅𝑘 + 𝑗𝑋𝑘 ), which is proportional to the through current squared. 𝑘
Since the main grid is working as the voltage source while in grid-
connected mode, one can denote the nominal voltage at the PCC as 5. Validation of modeling algorithm
5
Y. Hu and R.A. de Callafon International Journal of Electrical Power and Energy Systems 153 (2023) 109279
Fig. 3. Validation by comparison of Simscape (true) and linear model equivalent Fig. 6. Validation by comparison of Simscape (true) and linear model equivalent via
via CoBRA without static network nonlinearity to model line losses (uncompensated). N4SID with static network nonlinearity to model line losses (compensated). The first
The first 50 s of data belongs to scenario 1 and is used for identification only. The 50 s of data belongs to scenario 1 and is used for identification only. The vertical
vertical black dashed line separates the time window into the five scenarios of Table 1 black dashed line separates the time window into the five scenarios of Table 1. Obvious
and divergence between true and simulated outputs can be observed during different divergence between true and simulated outputs can be observed only when the nominal
scenarios. power level moves far away from where the linear model equivalent was estimated.
The estimated power loss is also shown.
Fig. 4. Validation by comparison of Simscape (true) and linear model equivalent via
CoBRA with static network nonlinearity to model line losses (compensated). The first
Fig. 7. Comparison of power loss estimation using the CoBRA and N4SID estimated
50 s of data belongs to scenario 1 and is used for identification only. The vertical
linear model equivalents. Obvious discrepancies can be observed when the nominal
black dashed line separates the time window into the five scenarios of Table 1 and
power level moves far away from where the linear model equivalent was estimated.
no divergence between true and simulated outputs can be observed during different
scenarios. The estimated power loss is also shown.
6
Y. Hu and R.A. de Callafon International Journal of Electrical Power and Energy Systems 153 (2023) 109279
Fig. 9. Determine the rate limiter from the input/output data by calculating the slope between the two selected points denoted by ‘+’.
Fig. 10. The comparison between the model prediction and the true power output at the POI. Compensating the power loss in the model leads to a more accurate prediction.
scenario 1 is used for identification by using the techniques proposed similar to (2). The identified model by using the proposed method
in Sections 3 and 4. The remaining data including all five scenarios shows high accuracy under not only scenario 1 but also the other
is used for validation. The measurements are sampled at 60 Hz and scenarios. This is desirable in practice since one would like the model
contaminated by Gaussian white noise with SNR = 25 dB. identified around one working power level to be applicable for other
To illustrate the need to model distribution line loss, the CoBRA levels.
method is first used to directly identify a linear model from the DER To further illustrate the efficacy of the proposed CoBRA method, the
set points to the output power PPCC and QPCC without a static network N4SID method [16,20,22] is performed on the same simulation data to
nonlinearity. The corresponding results are shown in Fig. 3 and show identify a 14th order state space model for comparison. Similarly, the
that the linear model output is modeling the data of scenario 1 very results without and with considering a static network nonlinearity are
well, but diverges when the nominal power levels are different from shown in Figs. 5 and 6 individually. The power outputs predicted by
scenario 1, as marked by the black dashed lines in the figure at the linear model equivalent via N4SID also diverge when the nominal
specific times. Clearly, the nonlinearity caused by the power loss due power levels move away from the scenario 1 without considering the
to the distribution line impedance should be taken into account. The line losses. Taking the line losses into account may help obtain a better
improvements when also modeling line losses with a static network power prediction when the nominal power levels are not far from
non-linearity are summarized in Fig. 4. Here it can be seen that the scenario 1. However, divergence is observed for scenario 4 and 5. There
dynamic equivalent captures the dynamics and nonlinearity of the are two sources of errors. On one hand, the N4SID method does not
power flow over all scenarios. enforce physical constraints on static gains as (16) in the proposed
The modeling results of Fig. 4 are obtained by choosing the param- CoBRA method. The gain errors during identifying the linear model
eters in the covariance data Eq. (5) as 𝑟 = 30, 𝜏1 = 0, 𝜏2 = 150 and equivalent lead to large prediction errors of the output power for DERs
identifying the linear DERs system as a 14th order state space model when moving to a much different nominal power level. On the other
7
Y. Hu and R.A. de Callafon International Journal of Electrical Power and Energy Systems 153 (2023) 109279
Fig. 11. The identified model by CoBRA is able to capture the coupling between Pout
b
and Qout
b
.
hand, the prediction errors in the identified linear DERs system will the apparent power 𝐒 in (17) are used, only cos(⋅) and sin(⋅) of the angle
further propagate to (23) for solving (22) and the power loss will not difference 𝜙𝑣𝑃 𝑂𝐼 − 𝜙𝑖𝑃 𝑂𝐼 are relevant. All PMU data is sampled at 30 H𝑧
be approximated accurately. The comparison of the active power loss and data is collected over a time window of 1 h long. For estimation
estimation is illustrated in Fig. 7. and modeling purposes, only the first 11 min are used as training data
and the rest for validation.
6. Experimental results It is obvious that the network under test is similar to the one in
Fig. 1 and the proposed method can be implemented. Similar to (1),
For further validation of the applicability of the proposed data- the input/output signals for system identification is modified as
driven modeling approach, the estimation algorithms are also applied ⎡ Pin
𝑏 (𝑡) ⎤ ⎡ Pout
𝑏 (𝑡)
⎤
to experimental data from a local area distribution network (LADN). ⎢ in ⎥ ⎢ out ⎥
⎢Q𝑏 (𝑡)⎥ ⎢Q𝑏 (𝑡)⎥
The LADN operates as a grid-connected microgrid where DERs are 𝐮0 (𝑡) = ⎢ in ⎥ , 𝐲(𝑡) = ⎢ out ⎥ (27)
placed behind local distribution transformer. A schematic overview of P
⎢ 𝑠 ⎥ (𝑡) ⎢ P𝑠 (𝑡) ⎥
⎢ in ⎥ ⎢ out ⎥
the LADN with its Point of Interconnect (POI) or PCC is shown in Fig. 8, ⎣Q𝑠 (𝑡)⎦ ⎣Q𝑠 (𝑡)⎦
illustrating the presence of a BESS DER and a PV DER each behind The initial active and reactive power at the POI are computed as
their own distribution transformers. In addition, a non-controllable Pinit = −Pout and Qinit = −Qout . The admittance 𝑌𝑏 , 𝑌𝑠 , and 𝑌𝑙𝑜𝑎𝑑 can be
POI load POI load
but measurable load is present in the LADN behind a distribution determined by (18). As shown in Fig. 9, the rate limiter for BESS and
transformer. The data of this LADN is chosen to illustrate that presence PV DERs can be determined from the slope of two selected points in the
of local distribution transformer can be taken into account in the power output when there is a high rate input change. The intermediate
microgrid dynamic model by estimating the dynamics and power loss signal 𝐮(𝑡) illustrated in Fig. 2 can be then computed. An 11th order
as part of the dynamic model. linear state space model from 𝐮(𝑡) to 𝐲(𝑡) is identified by CoBRA. This
The BESS DER is rated at 250 kW and the PV DER at 500 kW. model can be used to predict 𝐲(𝑡) given any 𝐮(𝑡) without using PMUs.
The BESS DER is excited by random step perturbations on the active The active and reactive power losses, denoted as Ploss and Qloss , are
∑ 𝑙𝑜𝑠𝑠 loss ∑ 𝑙𝑜𝑠𝑠 POI POI
and reactive power, while the PV DER is excited with slowly changing calculated as Ploss
POI
= 𝑃
𝑘 𝑘 , Q POI
= 𝑄
𝑘 𝑘 , where 𝑘 = 𝑏, 𝑠, 𝑙𝑜𝑎𝑑 for
random power variations, curtailing solar power production. In terms this test and (22) will be solved in the process. Similar to (25) and (26),
of notation, these excitation signals correspond to Pin b
, Qin
b
, Pin in
s , Qs as the active and reactive power at the POI can be estimated as
discussed earlier, while there is no diesel generator in the system under
PPOI = Pinit
POI
− (Pout
b
+ Pout loss
s ) + PPOI (28)
test. The network is connected to a main load that can be up to 1.5
MW. The BESS, PV, and load power outputs are measured on bus 2,3,4
respectively and can be denoted as Pout , Qout , Pout out out out QPOI = Qinit − (Qout + Qout loss
s ) + QPOI (29)
b b s , Qs , Pload , and Qload POI b
accordingly. The admittance of the distribution line between bus 1 and The comparison between the model prediction from simulation and
bus 2,3,4 is then denoted as 𝑌𝑏 , 𝑌𝑠 , and 𝑌𝑙𝑜𝑎𝑑 . the true power output at the POI is illustrated in Fig. 10. The model
𝑣
The nominal 𝑉𝑃 𝑂𝐼 = 12 kV in the voltage phasor 𝐕𝑃 𝑂𝐼 = 𝑉𝑃 𝑂𝐼 𝑒𝑗𝜙𝑃 𝑂𝐼 prediction considering the power loss in the distribution line using
at the POI similar to (21). It is worthwhile to note that the positive the experimental data is accurate, as also demonstrated in the earlier
sequence voltage angle 𝜙𝑣𝑃 𝑂𝐼 at the POI is not constant due to the time simulation example. It is worth noting that the CoBRA method can
variations in the AC grid frequency to which the LADN is connected via accurately capture the coupling between different channels as shown
the POI. However, since the active and reactive power components of in Fig. 11.
8
Y. Hu and R.A. de Callafon International Journal of Electrical Power and Energy Systems 153 (2023) 109279
7. Conclusion [10] Popov V, Prykhno V, Prykhno D. Development of the method of determining the
power and electricity losses in distribution network of shop electrical supply. In:
IEEE 6th international conference on energy smart systems. ESS, 2019, p. 104–7.
Synchronized power flow measurements obtained via PMUs with
http://dx.doi.org/10.1109/ESS.2019.8764231.
small simultaneous power perturbations of DERs are used to create [11] Resende FO, Lopes JAP. Development of dynamic equivalents for MicroGrids
a dynamic equivalent of the active and reactive power flow at the using system identification theory. In: 2007 IEEE lausanne power tech. 2007, p.
Point of Common Coupling (PCC) of a microgrid. A model structure 1033–8. http://dx.doi.org/10.1109/PCT.2007.4538457.
combining a linear dynamic system and static nonlinearity is proposed [12] Hu Y, Konakalla SAR, de Callafon RA. Covariance based estimation for reduced
order models of microgrid power flow dynamics. In: The 18th IFAC symposium
to model the multi-input, multi-output (MIMO) active and reactive on system identification–SYSID2018, Vol. 51. IFAC; 2018, p. 903–8.
power flow dynamics of a microgrid with multiple DERs. The linear dy- [13] Shi Y, Hu S, Xua D, Su J, Liu N, Yang X, Dua Y. A simplified microgrid
namic system is identified via a covariance based realization algorithm voltage and frequency response characteristic modelling method based on system
(CoBRA), while the nonlinear part is construed by the estimation of the identification. Int J Electr Power Energy Syst 2020;121:106063.
[14] Conte F, D’Agostino F, Massucco S, Silvestro F, Bossi C, Cabiati M. Experimental
admittance matrix of the power network of the microgrid. Both simula-
validation of a dynamic equivalent model for microgrids. IEEE Trans Ind Appl
tion and experimental results demonstrate an excellent match between 2021;57:2202–11.
measured and simulated power flow, making the resulting dynamic [15] Escobar ED, Manrique T, Isaac IA. Campus microgrid data-driven model
equivalent suitable for not only the current working power levels but identification and secondary voltage control. Energies 2022;15:7846.
also the other operating conditions. With the dynamic model tested and [16] Ljung L. System identification: theory for the user. 2nd ed.. Upper Saddle River,
NJ: Prentice-Hall; 1999.
validated on data, a microgrid power control can dynamically adjust set [17] Verhaegen M, Verdult V. Filtering and system identification: a least squares
point values of DERs to obtain controlled power flow at the PCC while approach. Cambridge University Press; 2007.
taking into account the power loss within the distribution system of [18] Chakraborty R, Jain H, Seo G-S. A review of active probing-based system
the microgrid. Future studies include but are not limited to taking into identification techniques with applications in power systems. Int J Electr Power
Energy Syst 2022;140:108008.
account more physical constraints and investigating the efficacy of the
[19] Zhou N, Pierre JW, Hauer JF. Initial results in power system identification
proposed physics-informed data-driven approach in microgrid power from injected probing signals using a subspace method. IEEE Trans Power Syst
systems controller design. 2006;21(3):1296–302.
[20] Xu X, Li K, Jia H, Yu X, Deng J, Mu Y. Data-driven dynamic modeling of
Declaration of competing interest coupled thermal and electric outputs of microturbines. IEEE Trans Smart Grid
2016;9(2):1387–96.
[21] Escobar ED, Manrique T, Isaac IA. Campus microgrid data-driven model
We have no conflicts of interest to disclose. identification and secondary voltage control. Energies 2022;15(21):7846.
[22] Van Overschee P, De Moor B. N4SID: Subspace algorithms for the identification
Data availability of combined deterministic-stochastic systems. Automatica 1994;30(1):75–93.
[23] Katayama T. Subspace methods for system identification. Springer Science &
Business Media; 2005.
Data will be made available on request. [24] Schweitzer EO, Whitehead DE. Real-time power system control using synchropha-
sors. In: 2008 61st annual conference for protective relay engineers. IEEE; 2008,
References p. 78–88.
[25] Van Overschee P, De Moor B. Subspace identification for linear systems:
[1] Lasseter RH. Microgrids and distributed generation. J Energy Eng theory—-implementation—-applications. Kluwer Academic Publishers; 1996.
2007;133(3):144–9. [26] Miller DN, de Callafon RA. Efficient identification of input dynam-
[2] Weber LG, Nasiri A, Akbari H. Dynamic modeling and control of a syn- ics for correlation function-based subspace identification. IFAC Proc Vol
chronous generator in an AC microgrid environment. IEEE Trans Ind Appl 2011;44(1):6511–6.
2018;54(5):4833–41. [27] Miller DN, De Callafon RA, Brenner MJ. Covariance-based realization algo-
[3] Khodadadi A, Mohammadian M, Hosseinian SH. Robust power sharing control rithm for the identification of aeroelastic dynamics. J Guid Control Dyn
of an autonomous microgrid featuring secondary controller. In: 2016 smart grids 2012;35(4):1169–77.
conference. SGC, IEEE; 2016, p. 1–7. [28] de Callafon RA, Miller DN. CoBRA-software for a covariance based realiza-
[4] Sheikh A, Youssef T, Mohammed O. AC microgrid control using adaptive tion algorithm with convex constraints on pole locations. IFAC-PapersOnLine
synchronous reference frame PLL. In: 2017 ninth annual IEEE green technologies 2015;48(28):763–8.
conference (GreenTech). IEEE; 2017, p. 46–51. [29] Hu Y, de Callafon RA. Covariance based realization algorithm for identification
[5] Jiang T, Costa LM, Siebert N, Tordjman P. Automated microgrid control systems. of linear time periodic systems. In: 2018 annual american control conference.
CIRED-Open Access Proc J 2017;2017(1):961–4. ACC, IEEE; 2018, p. 1102–7.
[6] Bintoudi AD, Zyglakis L, Apostolos T, Ioannidis D, Al-Agtash S, Martinez- [30] Hu Y, de Callafon RA. Optimal weighting for covariance based realization
Ramos JL, Onen A, Azzopardi B, Hadjidemetriou L, Martensen N, et al. Novel algorithm. In: 2017 IEEE 56th annual conference on decision and control. CDC,
hybrid design for microgrid control. In: 2017 IEEE PES asia-pacific power and IEEE; 2017, p. 5274–9.
energy engineering conference. APPEEC, IEEE; 2017, p. 1–6. [31] Hu Y, Jiang Y, de Callafon RA. Variance reduction in covariance based realization
[7] Gwynn BT, de Callafon RA. Robust real-time inverter-based reactive power algorithm with application to closed-loop data. Automatica 2020;113:108683.
compensation. In: 2019 IEEE 58th conference on decision and control. CDC, [32] Abusara MA, Guerrero JM, Sharkh SM. Line-interactive UPS for microgrids. IEEE
IEEE; 2019, p. 6578–83. Trans Ind Electron 2013;61(3):1292–300.
[8] Giannakis GB, Kekatos V, Gatsis N, Kim S-J, Zhu H, Wollenberg BF. Monitoring [33] D’Arco S, Suul JA. A synchronization controller for grid reconnection of islanded
and optimization for power grids: A signal processing perspective. IEEE Signal virtual synchronous machines. In: 2015 IEEE 6th international symposium on
Process Mag 2013;30(5):107–28. power electronics for distributed generation systems. PEDG, IEEE; 2015, p. 1–8.
[9] Konakalla SAR, Valibeygi A, de Callafon RA. Microgrid dynamic model- [34] Miller DN, De Callafon RA. Subspace identification with eigenvalue constraints.
ing and islanding control with synchrophasor data. IEEE Trans Smart Grid Automatica 2013;49(8):2468–73.
2019;11(1):905–15.