1. Introduction
With the continuous expansion of the renewable energy generation scale, the equivalent inertia and damping level of the power grid are continuously decreasing. Grid-forming (GFM) technologies, such as Virtual Synchronous Generator (VSG), simulate the electromechanical transient characteristics of synchronous generators, endow grid-connected converters with the functions of inertia response and primary frequency regulation, and have become an important technical approach to improve power grid stability [
1,
2,
3,
4,
5].
Voltage–current double-loop control is the core part to ensure the stable operation of a GFM converter. In the double-loop control of GFM, the outer voltage loop usually adopts PI or resonant controllers to generate reference commands for the inner current loop, while the inner current loop realizes rapid regulation of grid-connected current or filter inductor current [
6,
7,
8,
9]. On the premise of ensuring system stability, how to suppress the performance degradation caused by parameter mismatch is one of the key issues in current GFM control research.
Model predictive control (MPC) is a digital control strategy based on a discretized model. It predicts the response of the plant under specific outputs to find the optimal solution that satisfies the requirements of a cost function. Zheng et al. proposed an improved finite control set MPC-based VSG scheme suitable for islanded AC microgrids, which effectively enhances the system’s dynamic response speed and suppresses the rate of change of frequency [
10]. To significantly accelerate the dynamic response and simplify parameter tuning, Zheng et al. suggested replacing the conventional voltage–current double-loop and modulation strategy with MPC [
11]. Liu et al. applied a cascaded MPC structure to the inner and outer loops of primary control to enhance the system’s frequency regulation capability [
12]. Guo et al. adopted a weighted voltage model predictive control with online adjustment of weighting coefficients to improve robustness against variations in inductance and capacitance parameters [
13].
Deadbeat predictive control (DPC) has been widely studied due to its theoretically optimal dynamic response. This method relies on an accurate model of the plant and can achieve overshoot-free tracking of the reference within two sampling periods, offering advantages such as fast dynamic response, high control accuracy, and constant switching frequency [
14]. In recent years, DPC has been widely applied in three-phase grid-connected converters, active power filters, and motor drive systems, with particularly significant advantages in fast current response scenarios [
15,
16,
17]. However, the performance of DPC heavily depends on the accuracy of the model parameters, especially inductance and capacitance. In practical applications, filter inductance is susceptible to deviations from nominal values due to factors such as magnetic saturation, temperature drift, and manufacturing tolerances, leading to current prediction errors, which cause current tracking errors and may even endanger system stability in severe cases [
18]. For voltage–current double-loop control, inductance and capacitance mismatch will introduce errors into the system cross-coupling terms, resulting in steady-state tracking errors.
To address the above issues, various improved compensation schemes have been proposed in existing studies. Yu et al. adopted an observer for online estimation and disturbance compensation in an interleaved Boost converter, achieving zero steady-state tracking error [
19]. Huang et al. proposed a model-free predictive control for GFM with VSG, which fundamentally avoids the parameter mismatch problem [
20]. However, such methods generally suffer from drawbacks such as degraded dynamic response, complicated parameter tuning, and high computational burden.
In summary, the GFM double closed-loop control imposes high demands on the dynamic performance and parameter robustness of the inner current loop. Although DPC offers excellent dynamic response characteristics, its performance is significantly affected by inductance parameter mismatch, which limits its engineering application in grid-connected converters. To address this issue, inspired by the single-loop steady-state error compensation method for permanent magnet synchronous motor drive systems, this manuscript proposes a voltage–current double closed-loop steady-state error compensation strategy for GFM converters, in order to enhance the parameter robustness of the control algorithm. This method does not require the introduction of various disturbance observers, which will have a negative influence on the dynamic response performance. Instead, it constructs a concise compensation term calculated from the tracking error, effectively eliminating the steady-state tracking error caused by inductance mismatch while preserving the fast dynamic response characteristic of DPC.
The rest of the manuscript is organized as follows.
Section 2 presents the fundamental principles of the voltage–current double-loop control strategy for GFM using DPC (GFM-DPC).
Section 3 derives the steady-state error compensation terms for the double closed-loop of GFM-DPC.
Section 4 validates the effectiveness of the proposed method through simulations under various operating conditions.
2. Voltage–Current Double-Loop Control Strategy for GFM-DPC
The grid-connected topology of the GFM converter is shown in
Figure 1. The instantaneous active and reactive powers are calculated. VSG control is adopted, where the active power control is used to regulate the system frequency/phase angle and the reactive power control is used to regulate the amplitude of the voltage waveforms connected to the grid. Since there is voltage drop over the LC filter, a voltage–current double closed-loop control, including an outer voltage loop and an inner current loop, is utilized to compensate the voltage drop and ensure correct voltage connected to the grid.
According to Kirchhoff’s Current Law (KCL) and Kirchhoff’s Voltage Law (KVL) equations, the time-domain mathematical models of the outer voltage loop and inner current loop can be derived respectively as follows:
Equation (1) corresponds to the outer voltage loop, and Equation (2) corresponds to the inner current loop, where
L is the filter inductor,
C is the filter capacitor,
uo is the output voltage at the filter port,
io is the output current at the filter port,
u is the port voltage of the converter, and
iL is the inductor current. Considering the output voltage
uo and inductor current
iL as the system state variables, the time-domain state equations of the system voltage–current double loop in the dq-axis can be obtained respectively:
By discretizing the above expressions, the discrete-time mathematical model of the system under the framework of DPC can be derived. The forward difference method is adopted to predict the voltage and current state variables at the next sampling instant. When the system sampling frequency is set sufficiently high and far exceeds the operating frequency of the signal, it can be assumed that each state variable follows a linear variation rule within a single sampling period. Based on this premise, the differential terms of the output voltage and inductor current can be discretized via the forward difference formula.
Taking the d-axis as an example:
where
Ts is the sampling period. By implementing forward difference transformation on the differential links of the output voltage and current according to Equation (4), the discrete-time equation of the system on the d-axis can be derived:
where variables with the superscript ^ represent estimated values. Equations (5) and (6) realize the prediction of state variables at the next sampling instant (i.e., instant
k + 1) via the forward difference method. The objective of DPC is as follows: when the change in the reference value of the controlled state variable is detected at instant k, the control output for the next control period (the time interval between instant
k + 1 and
k + 2) is calculated based on the controlled plant model, so that the controlled state variable reaches its reference value at instant
k + 2. It should be particularly emphasized that in the digital control system, the voltage output command calculated in the current control period cannot take effect immediately. It can only be updated to the duty cycle of the power device in the next period, which introduces a delay of one sampling period. Therefore, the output of the current control period is calculated and determined in the previous control period, which is also the reason why Equations (5) and (6) can predict the state variables at the next sampling instant (i.e., instant
k + 1) based on the output of the current control period.
Based on the system state at instant
k + 1, the system state at instant
k + 2 can be predicted by the following equation:
where
and
are obtained through prediction via Equations (5) and (6);
and
can be derived with reference to the q-axis discrete equations similar to Equations (5) and (6);
and
are the state values at instant
k + 1.
According to the basic principle of DPC described above, its control objective is to make the actual value of the voltage state variable equal to its reference value at instant
k + 2, that is:
Substituting Equation (9) into the outer voltage loop prediction Equation (7), the reference value of the inductor current required for the grid-connected voltage to reach its reference value at instant
k + 2 is derived:
Similarly, substituting Equation (10) into the inner-current-loop-prediction Equation (8), the reference value of the converter output voltage between instant
k + 1 and instant
k + 2, which is required for the converter output current to reach its reference value at instant
k + 2, is derived:
As shown in Equation (11), the outer voltage loop is responsible for providing command reference to the inner current loop, and the voltage reference value output by the controller is derived from the inner-current-loop Equation (12) based on DPC. However, the calculation of the inner current loop in Equation (12) requires the reference value at instant k + 2, so the current reference signal needs to be predicted in advance.
There are two feasible approaches to obtain
iL(
k + 2). The first is based on the model predictive algorithm in Equation (11): after predicting
iL(
k + 1), the system state variables such as
io(
k + 2) and
uo(
k + 2) are further estimated to predict
iL(
k + 2). However, this method requires multi-step prediction, which imposes certain limitations on both computational burden and accuracy. The second approach is to directly estimate
iL(
k + 2) via an extrapolation method, which is simple and fast but may introduce stability risks. To ensure system stability, we adopt the half-cycle extrapolation method as follows [
21]:
The control block diagram of both voltage and current loops adopting DPC is shown in
Figure 2:
The reference value of the inductor current at time k + 1, calculated by Equation (11), together with the reference value at time k, is used to extrapolate the reference value at time k + 2, which is then fed into the inner current loop.
3. Steady-State Error Compensation Strategy for Double Closed-Loop Control
DPC has strong dependence on system model parameters. In practical engineering applications, filter capacitors and inductors often deviate from their nominal values due to factors including magnetic saturation, temperature variation and manufacturing error, which causes deviation in current prediction and further induces steady-state current tracking error. In VSG double closed-loop control, the steady-state error of the voltage–current double loop will affect the precise control of output power.
First, the compensation term for the current loop should be designed. Ignoring the effect of resistance, the dq-axis voltage equation of the converter in the synchronous rotating coordinate system can be expressed in complex vector form [
21]:
where the variables with superscript “-” are in complex vector form,
p is the differential operator,
ω0 is the reference angular frequency, and
f can represent voltage or current.
By discretizing Equation (14), we can obtain:
where:
Considering the unit calculation delay, the dq-axis current at instant
k + 1 needs to be predicted based on the current feedback value at the
kth sampling instant:
where
is calculated according to the nominal value of the inductor parameter,
and
are the inductor current sampled at the
kth instant and the output port voltage of the filter respectively, and
is the reference value of the converter port voltage at instant
k.
Assuming that the output current
can track the reference current
at instant
k + 2, the voltage command applied in the (
k + 1)th control period is derived as follows:
where
is the current command calculated from the output of the outer voltage loop in the
k th control period, which is required to be tracked at instant
k + 2. When there is a mismatch between the actual value and nominal value of the system parameters, the estimated value of the dq-axis current of the actual system output at instant
k + 1 can be derived based on Equation (18):
The error between the estimated feedback current
and the estimated ideal current
at instant
k + 1 is derived from the following equation:
Based on Equations (18) and (20), the error between the estimated feedback current
and the estimated ideal current
at instant
k + 2 is further derived:
It can be seen from Equation (22) that if parameter mismatch exists, steady-state error will inevitably exist between the command current and the feedback current. To eliminate this error, the compensation term is defined as follows:
and then the voltage actually output by the controller to Space Vector Pulse-Width Modulation (SVPWM) is:
When the actual system parameters are mismatched, the ideal reference voltage cannot be obtained after the calculated reference voltage is processed by Pulse-Width Modulation (PWM) and applied to the converter. An additional compensation term needs to be added to the voltage command output by the predictive control as the new reference voltage. Therefore, the actual inductor current of the system and the estimated value of the inductor current at instant
k + 2 can be rewritten respectively as follows:
Thus, the error between the estimated feedback current
and the estimated ideal current
after compensation is added at instant
k + 2 can be derived:
Assuming that the output voltages of the (k − 1)th, kth and (k + 1)th control periods are equal in steady state, and the current error tends to a constant at this time, it can be considered that the steady-state error between the compensated command current and the feedback current at instant k + 2 is zero.
The system diagram of the current loop based on steady-state error compensation can be represented by
Figure 3, where the DPC block and the plant model in the controller part use
, while the actual plant uses
.
On this basis, the compensation idea is extended to the outer voltage loop, and the corresponding current command compensation term can be designed in the same way to form a complete double closed-loop error compensation structure. For the outer voltage loop, its dq-axis current equation can also be expressed in complex vector form:
By discretizing Equation (28), we can obtain:
where:
Considering the unit calculation delay, the dq-axis voltage at instant
k + 1 needs to be predicted based on the voltage feedback value at instant
k:
where
is calculated according to the nominal value of the inductor parameter,
and
are the filter port voltage and output current at instant
k respectively, and
is the reference value of the inductor current at instant
k.
After two-step prediction, the current command output in the (
k + 1) th control period is derived as follows:
where
is the voltage command externally input to the outer voltage loop in the
kth control period, which is required to be tracked at instant
k + 2. Based on Equation (31), the error between the estimated feedback voltage
and the estimated ideal voltage
at instant
k + 1 is derived:
Through further derivation, the error between the estimated feedback voltage
and the estimated ideal voltage
at instant
k + 2 can be obtained:
We add an additional compensation term to the current command:
and then the actual reference current output to the inner current loop is:
Similarly, from this we can obtain the error between the estimated feedback voltage
and the estimated ideal voltage
at instant
k + 2:
Assuming that the output currents of the (k − 1) th, kth and (k + 1) th control periods are equal in steady state, the steady-state error between the compensated estimated command voltage and the feedback voltage at instant k + 2 is zero.
The control block diagram of the double closed-loop steady-state error compensation strategy system for GFM-DPC is shown in
Figure 4:
Meanwhile, to more clearly illustrate the execution flow of the proposed control strategy, a flowchart of the control algorithm is provided in
Figure 5: