1. Introduction
With the exhaustion of traditional fossil energy, distributed generation, especially comprising wind and solar energy sources, has gained substantial popularity owing to its minimal environmental impact and abundant renewable resources [
1]. Distributed energy sources are typically integrated into the grid through power electronic converters. However, unlike synchronous generators, power electronic converters lack inertia and damping, which can result in insufficient system inertia and damping when distributed energy sources are extensively integrated into the grid. The system becomes less resilient to disturbances and is more susceptible to frequency collapse under severe disturbances [
2,
3]. To address this issue, the concept of virtual synchronous generator (VSG) control has been introduced, where power electronic converters emulate the inertia and damping, as well as the active frequency regulation and reactive voltage regulation capabilities of synchronous generators to support the grid [
4,
5,
6,
7].
VSG control typically employs a double-loop control strategy, which is straightforward to implement and easy to understand [
8,
9,
10,
11]. In [
12,
13,
14,
15], an adaptive control strategy was proposed. The output characteristics of the converter are optimized by adjusting the rotational inertia and damping in real time when the load is disturbed. In [
16,
17], the control delay was considered, and a distributed secondary control strategy was proposed to optimize the output characteristics of the inverter. However, these methods suffer from the same drawbacks, i.e., high control complexity and slow dynamic response, as the inner loop uses closed-loop control based on a proportional-integral controller. Model predictive control (MPC) has gained significant attention due to its rapid dynamic response and multi-objective optimization capabilities. The application of MPC in VSG can effectively address the issue of slow dynamic response in the existing double-loop control.
In [
18], the mathematic model and frequency control strategy of VSGs were investigated through MPC. In [
19,
20], a single-vector MPC was proposed for a two-level converter. In this method, eight voltage vectors are used to control the output current. It is easy to implement; however, the high harmonic content of the output current necessitates additional filters to meet power quality requirements. To improve the quality of the VSG output current, references [
21,
22,
23] proposed a two-vector MPC method based on virtual vectors. This method includes 12 sets of voltage vectors, leading to an overall improvement in the quality of the output current compared to the single-vector MPC method. In addition, a three-vector MPC was proposed in [
24,
25,
26]. The three-vector MPC consists of six sets of voltage vectors, each containing three vectors, which is one vector more than the two-vector MPC. However, although the three-vector MPC expands the coverage of voltage vectors, the harmonic content of the output current using this method is not better than that of the two-vector MPC in all cases. A hybrid multi-vector MPC strategy for voltage source inverter was introduced in [
27]. This method minimizes the harmonic content of the output current, but it requires 18 iterations of computation per switching cycle, demanding a controller with higher performance.
Therefore, to minimize current harmonic content without increasing the controller cost, a hybrid multi-vector MPC method is proposed in this paper. First, the cost functions of two-vector MPC and three-vector MPC are analyzed. By comparing the values of the cost functions of both methods, it is demonstrated that neither achieves global optimization of the harmonic content of the output current. Then, a hybrid multi-vector MPC strategy is proposed. In the proposed strategy, to avoid increasing the number of iterative computations per control cycle, new vector sets are introduced by analyzing the vector sets of the two-vector MPC and three-vector MPC. Compared to the two-vector MPC, this proposed strategy ensures that the voltage vector sets with the lowest current harmonic content are selected in each control period, without increasing the number of iterations. Furthermore, considering the frequency fluctuations in microgrids, this paper incorporates frequency variation weights into the cost function of the hybrid multi-vector MPC. When the microgrid frequency is stable, the frequency deviation component in the cost function is small, and it has minimal impact on the selection of the optimal voltage vectors. However, this component becomes significant during frequency deviations, allowing the harmonic content of the current to be reduced by influencing the selection of the optimal voltage vectors. To verify the effectiveness of the proposed control strategy, a simulation model is built in MATLAB/Simulink. The strategy is tested under two operating conditions—power variation and frequency variation—and the results demonstrate its effectiveness.
2. Topology and Mathematical Model of VSG
2.1. Topology of VSG
A traditional VSG system is shown in
Figure 1. The main circuit of the system consists of a two-level voltage-type converter, where the DC port of the converter is connected to the distributed generation, and the AC output is linked to the load or grid through a filter circuit. The control loop collects the output current, output voltage, and active and reactive power of the main circuit, generates modulation signals through the active-frequency control, reactive-voltage control, and MPC, and finally generates the pulse signal to control the converter. The equivalent diagram and structure diagram of
Figure 1:
Ls is the filter inductor;
Cs is the filter capacitor;
Pe and
Qe are the active and reactive power output by the converter, respectively;
iabc_inv and
uabc_inv are the output current and voltage.
2.2. Mathematical Model of VSG Control
The stator electrical equation and the typical second-order rotor motion equation of the synchronous generator are given in (1).
In the stator electrical equation, u represents the armature terminal voltage; L denotes the inductance, and R is the stator resistance. In the rotor motion equation, Tm is the mechanical torque; Te is the electromagnetic torque; J is the moment of inertia; D is the damping coefficient; ω is the mechanical angular velocity; ωN is the rated angular velocity of the system; δ is the output power angle.
As shown in
Figure 1, based on the principles of the synchronous generator governor and excitation regulator, the equation relationships between active power and frequency, as well as reactive power and voltage, are established, as given in (2).
In (2), the reference values for active power and reactive power are denoted as Pref and Qref; KV, KP, and K denote the voltage regulation coefficient, the active power droop coefficient, and the integral loop coefficient, respectively. In addition, Un and Uinv denote the voltage reference and the RMS value of the output voltage, respectively; E is the virtual potential command, and f is the frequency of the VSG output voltage.
Therefore, combining the obtained voltages in the voltage synthesis link reference value and phase angle, the output voltage of VSG is given in (3).
Furthermore, the reference value for the output current of VSG be obtained as:
2.3. Mathematical Model of MPC
Based on the mathematical model of the topology derived from the VSG control, the inductor currents can be obtained as shown in (5).
In (5), eabc represents the output voltages of the two-level converter, and their values are determined by the switching signals.
Applying the Clarke transform to (5) and discretizing it, the predictive model for the current is obtained as illustrated in (6), where
Ts represents the control period.
Applying the Clark transform to (4) yields the current references
iLα_ref and
iLβ_ref. Therefore, the cost function can be obtained as:
3. Hybrid Multi-Vector Model Predictive Control
3.1. Two-Vector MPC and Three-Vector MPC Voltage Vectors
Based on the voltage vector schematic in
Figure 2, the voltage vectors for both the two-vector MPC and the three-vector MPC control can be derived. In two-vector MPC, the voltage vector can be divided into real vectors and virtual vectors. The real vectors consist of
us1(
u0,
u1),
us2(
u0,
u2),
us3(
u0,
u3),
us4(
u0,
u4),
us5(
u0,
u5), and
us6(
u0,
u6), while the virtual vectors include
us7(
u1,
u2),
us8(
u2,
u3),
us9(
u3,
u4),
us10(
u4,
u5),
us11(
u5, u6), and
us12(
u6,
u1). In three-vector MPC, the voltage vectors include
ut1(
u0,
u1, u2),
ut2(
u0,
u2,
u3),
ut3(
u0,
u3,
u4),
ut4(
u0,
u4,
u5),
ut5(
u0,
u5,
u6), and
ut6(
u0,
u6,
u1).
First, the two-vector MPC is analyzed. Taking
us1 as an example, it is formed by the combination of
u0 and
u1, so the relationship between the three vectors can be obtained as shown in (8), where
tu0 and
tu1 represent the durations of
u0 and
u1, respectively.
The duration of each voltage vector should be inversely proportional to its corresponding cost function. Therefore, based on the cost function values
Gu0 and
Gu1 corresponding to
u0 and
u1, the durations of
tu0 and
tu1 are given in (9).
Similarly, the relationship between the virtual vectors and the fundamental vectors in the three-vector MPC can also be derived. Taking ut1 as an example, the durations of u0, u1, and u2 are given in (10), where Gu0, Gu1, and Gu2 represent the values of the corresponding cost functions for these vectors, respectively.
To compare the two-vector MPC and three-vector MPC, the vector corresponding to sector 1 is selected as an example for the cost function calculation. According to [
27], in the two-vector MPC, the cost function expressions corresponding to the three vectors
us1,
us2, and
us7 are given in (11), while the cost function expressions corresponding to the three-vector MPC are provided in (12). In (11) and (12), the vectors
uαref and
uβref represent the components of the voltage vector
uαβref in the
αβ co-ordinate system.
The two control strategies are compared by analyzing the differences in their cost functions. The expression for the difference is provided in (13), and its waveform is shown in
Figure 3. As can be seen, the value of
δ3-2 is greater than 0 under certain conditions, indicating that the performance of the three-vector MPC is not universally superior to that of the two-vector MPC. The two-vector MPC is more effective when the reference voltage vector is near the edge of each sector, while the three-vector MPC performs better when the reference voltage is farther from the edge of each sector. Therefore, optimal control cannot be achieved by using either the two-vector MPC or the three-vector MPC alone.
3.2. Hybrid Multi-Vector MPC
The analysis of the two-vector MPC and three-vector MPC indicates that, for optimal control, the optimal voltage vector should be selected from us1 to us12 when the reference voltage is near the edge of each sector, and from ut1 to ut6 when the reference voltage is farther from the edge of the sector. Therefore, the hybrid multi-vector MPC is proposed by combining the two-vector MPC and three-vector MPC to achieve optimal voltage vector selection for each control period.
As shown in
Figure 2, the two-vector MPC consists of twelve voltage vector sets, while the three-vector MPC consists of 6 voltage vector sets. If these two types of control are directly combined as in [
27], 18 voltage vector sets would need to be calculated in each control cycle, which places higher demands on the controller. Therefore, it is necessary to analyze these 18 voltage vector sets.
By comparing the virtual vectors in the two-vector MPC with the vectors in the three-vector MPC, it can be observed that
ut1 contains one additional zero vector compared to
us7. The voltage vectors
ut1 and
us7 are equivalent when the action time of the zero vector is zero, meaning
ut1 can be considered to contain
us7. Similarly, it can be argued that
ut2,
ut3,
ut4,
ut5 and
ut6 contain
us8,
us9,
us10,
us11, and
us12, respectively. Therefore, 12 sets of voltage vectors (
us1,
us2,
us3,
us4,
us5,
us6,
ut1, ut2,
ut3,
ut4,
ut5, and
ut6) are selected to compute the cost function in the proposed hybrid multi-vector MPC. Therefore, the cost function needs to be computed only 12 times in each control period, reducing the number of calculations by 1/3 compared to the method proposed by [
27]. The voltage vector combinations in the proposed hybrid multi-vector MPC are shown in
Figure 4.
To further demonstrate that the proposed hybrid multi-vector MPC effectively reduces the harmonic content of the current, its cost functions are compared with those of the two-vector MPC and the three-vector MPC. The comparison is presented using sector 1 as an example. The difference in the cost function between the hybrid multi-vector MPC and the two-vector MPC, as well as the three-vector MPC, is defined as
δh-2 and
δh-3, respectively, as shown in (14). It should be noted that when the value of
Gu0 equals to 1, the value of
f equals to
Gu1 +
Gu2, and the remaining moments of
f are shown in (12).
The waveforms of
δh-2 and
δh-3 are shown in
Figure 5. As observed, both
δh-2 and
δh-3 are consistently less than 0, indicating that the proposed hybrid multi-vector MPC effectively reduces the current harmonics compared to the two-vector MPC and three-vector MPC.
A comparison is conducted among the traditional dual-loop control, single-vector MPC, two-vector MPC, three-vector MPC, and the proposed hybrid multi-vector MPC under the same operating conditions, and the details are provided in
Table 1. In terms of dynamic response time, the dual-loop control has a longer dynamic response time, while the four MPC methods exhibit shorter dynamic response times. Then, the current harmonic content among these methods is compared. Since the output current of the traditional dual-loop control is determined by the proportional and integral parameters of the inner loop, it will not be compared with the other MPC methods. As previously analyzed, the harmonic content of the output current is highest in the single-vector MPC method. Both the two-vector MPC and three-vector MPC methods improve the harmonic content of the output current compared to the single-vector MPC. However, these two methods cannot achieve optimal current output in all cases. In contrast, the proposed hybrid multi-vector MPC achieves the lowest output current harmonic content in all cases.
3.3. Considering Frequency Variation in Cost Function
In microgrids, frequency is sensitive to load changes: an increase in load causes a temporary drop in frequency, while a decrease in load results in a temporary rise in frequency. Traditional MPC approaches typically focus only on the output current, ignoring frequency variations. To address this, this paper proposes an MPC strategy that incorporates frequency variation into the control process.
The rotor motion equation in VSG control is given in (15), where
Kp is the sag coefficient.
Discretizing (15) results in a discrete model of the angular frequency, as shown in (16).
Based on (16), the angular frequency at time step
k + 1 can be computed. Therefore, the deviation of this angular frequency can be incorporated into the cost function. The expression for the modified cost function is given in (17), where
kf is the weighting factor for frequency variation. The value of
kf can be adjusted based on the magnitude of the frequency deviation. When the frequency deviation is small,
kf can be to 0.
4. Simulation Analysis
To verify the effectiveness of the proposed hybrid multi-vector MPC, a two-level VSG model is developed in the MATLAB/Simulink platform, and the relevant control parameters used are shown in
Table 2.
The system operates in a grid-connected state with a simulation duration of 2 s. The microgrid has a rated frequency of 50 Hz and grid-connected active power of 50 kW, while the reactive power remains constant at 0 kVar during this period. The two-vector MPC, three-vector MPC, and the proposed hybrid multi-vector MPC are compared under two operating conditions: power variation and frequency variation. In the power variation condition, the grid-connected power increases by 10 kW at 1 s, while in the frequency variation condition, the microgrid frequency increases by 0.2 Hz at 1 s.
4.1. Power Variation Condition
The simulation results of the two-vector MPC, three-vector MPC, and the proposed hybrid multi-vector MPC under varying power conditions are shown in
Figure 6,
Figure 7 and
Figure 8. As can be seen from
Figure 6, with the two-vector MPC, the ripple current of the converter is large, and the total harmonic content reaches 2.49%. Compared to the two-vector MPC, the ripple current of the converter is significantly improved with the three-vector MPC, as shown in
Figure 7, and the total harmonic content is reduced to 1.95%. In addition, as shown in
Figure 8, the ripple current of the converter can be further reduced by using the proposed hybrid multi-vector MPC, and the total harmonic content is decreased to 1.54%. This is consistent with the previous theoretical analyses.
4.2. Frequency Variation Condition
The simulation results for the two-vector MPC, three-vector MPC, and hybrid multi-vector MPC under varying frequency conditions are shown in
Figure 9,
Figure 10 and
Figure 11. The simulation results show that after the frequency change, the total harmonic content of the current measured by the three methods is 2.05%, 2.26%, and 1.91%, respectively. When using the proposed hybrid multi-vector MPC, the total harmonic content of the converter output current remains the lowest. Additionally, the total harmonic content of the output current with the two-vector MPC is lower than that with the three-vector MPC. Therefore, based on the simulation results presented in
Figure 6,
Figure 7,
Figure 9, and
Figure 10, it can be observed that neither the two-vector MPC nor the three-vector MPC alone can achieve the lowest harmonic content of the output current under different operating conditions, which is consistent with the previous theoretical analysis.
The simulation results of the hybrid multi-vector MPC, which incorporates frequency variation into the cost function, are presented in
Figure 12. In the simulation, the value of
kf is set to 0 when the frequency variation in the system is within 0.05 Hz, and the value of
kf is set to 1 when the frequency variation exceeds 0.05 Hz. From the simulation results, it can be observed that when the microgrid frequency is 50 Hz, the harmonic content of the output current is slightly improved compared to the results shown in
Figure 9, using the hybrid multi-vector MPC that accounts for frequency variation. When the microgrid frequency is increased by 0.2 Hz, the harmonic content of the output current is only 1.55%, nearly 20% lower than the results shown in
Figure 12.