Improved Virtual Inertia of PMSG-Based Wind Turbines Based on Multi-Objective Model-Predictive Control

In the case of a high penetration rate of wind energy conversion systems, the conventional virtual inertia control of permanent magnet synchronous generators (PMSG) has an insufficient support capability for system frequency, leading to an unstable system frequency and a slower response. Considering the finite control set model predictive control has multi-objective regulation capabilities and efficient tracking capabilities, and an improved multi-objective model-predictive control is proposed in this paper for PMSG-based wind turbines with virtual inertia based on its mathematical model. With the prediction model, the optimal control of the current and the frequency of the PMSG-based wind turbines can be obtained. Since the shaft torque changes rapidly under high virtual inertia, shaft oscillation may occur under this scenario. To address this problem, the electromagnetic torque is set as an additional optimization objective, which effectively suppresses the oscillation. Furthermore, based on accurate short-term wind speed forecasting, a dynamic weight coefficient strategy is proposed, which can reasonably distribute the weight coefficients according to the working conditions. Finally, simulations are carried out on a 2 MW PMSG-based wind turbine platform, and the effectiveness of the proposed control strategies is verified.


Introduction
In recent decades, the wind power industry has developed rapidly throughout the world, and the capacity of newly installed systems has been continuously reported. The expanding capacity of wind energy conversion systems (WECS) and the increase in wind power plants have increasingly caused problems, especially in the case of long-distance power transmission [1,2]. In power systems with high penetration of wind power, it is important to maintain frequency stability. Therefore, many countries and regions in the world have standardized the inertia and frequency regulation of wind power through the grid codes, which motivate the wind power to actively participate in the system frequency response based on either the market incentives or the mandatory regulations. The grid codes require that wind turbines should have a certain inertia response time, which represents the time from the start of the response until the inertial compensation power reaches the set value. In the development of wind power technology, direct-driven permanent magnet synchronous generator (D-PMSG) has shown great potential. It is not equipped with gearboxes, which further reduces cost and failure rate. When large-capacity and high-scale PMSGs are connected to the power grid, it is still expected to reduce the losses and improve the quality of wind power [3,4].
However, the increasing penetration of wind power plants may jeopardize the power system's stability due to their stochastic characteristics and the lack of inertia response, as the rotor speed is decoupled with the grid frequency by electronic power devices [5,6].
(a) Combining the characteristics of the exponential function, the idea of the dynamic weight coefficient is introduced into the cost function. Because of the high degree of accuracy in short-term wind speed forecasting, the dynamic weight coefficient strategy [20] based on wind speed forecasting is proposed, which dynamically adjusts the weight coefficient of the PMSG-based WTs at different wind speeds and different working conditions, changes the output quality requirements for different quantities, and better coordinates the quality requirements for different output quantities under different conditions. (b) To provide sufficient virtual inertia with a fast response speed, a current-frequency multi-objective optimization control is proposed for PMSG-based WTs based on FCS-MPC. According to the frequency response model, the frequency difference is predicted. The improved control of the system frequency is realized compared to the conventional method. The support capability to the system frequency can be adjusted by changing the weight coefficient of the objectives. (c) Since the electromagnetic torque is proportional to the shaft torque, the shaft torque can be suppressed by suppressing the electromagnetic torque in the frequency response. The main control method in this paper is to include torque control in the optimization control objective. After increasing the virtual inertia, the shaft oscillation caused by the excessive shaft torque is suppressed by the current-frequency-torque multi-objective MPC and reduces the instantaneous virtual power shock in the virtual inertia compensation link by adjusting the weight coefficient. In addition, the loss on the shaft can be reduced, which is conducive to the stability of the WECS.
The overall structure of this paper is as follows. Section 2 lists the mathematical and predictive models of PMSG. Section 3 analyzes the characteristics of the conventional additional virtual inertia structure and notes its problems. Furthermore, the optimization control strategy and dynamic weight coefficient strategy are introduced in Section 4.1. The 2 MW PMSG-based WT simulation platform is built for verification in Section 5. Conclusions are drawn in Section 6.

Model Of PMSG
There are many ways to orient the PMSG mathematical model in the controller. In this paper, the PMSG field-oriented control strategy is adopted since the control strategy based on the rotor flux linkage is simple and practical. Through the detection of the rotor position angle and rotation speed of PMSG, the control strategy can be realized using the Park transformation [21,22].
In the dq-axis synchronous rotating coordinate system, the mathematical model of PMSG can be expressed as follows: The relationship between the current at instant k + 1 and the current at instant k can be obtained through the discretization of Equation (1). The details of the adopted discretization technique can be found in References [23,24], as shown in Equation (3), where k represents the value of the variable at the present moment and k + 1 represents the variable at the next moment. It can be concluded from Equation (3) that the predicted dq-axis current at instant k + 1 is related to the stator voltage and the dq-axis current at instant k.
The active power model and the electromagnetic torque model of the system can be expressed as follows: T e = P e Ω = 3 2 p n ψ d i q − ψ q i d (5) Combined with the flux linkage model, the simplified mathematical model of the active power and electromagnetic torque can be deduced as follows: T e = 3 2 p n ψ f i q + L d − L q i d i q Energies 2021, 14, 3612 4 of 20 In Equation (8), the electromagnetic torque-predictive model can be obtained after discretization.
T e (k) = 3 2 p n ψ f i q (k) + L d − L q i d (k)i q (k) (8) In addition, since positive values of torque and power should mean generator operation, current/torque/power signs are changed properly during control system design.

Model of Drive Chain
The related equation above can be used to realize the MPC system, and the current and electromagnetic torque can be calculated to achieve the optimization in the system. The wind turbine drive system of a permanent magnet synchronous generator can usually be equivalent to a two-mass module [25,26].
Equations (9)-(11) are the mathematical models of the two-mass system. The two-mass model can be used to analyze the effect of virtual inertia on shaft oscillation.

Control Structure
The conventional additional virtual inertia structure of PMSG-based WTs is shown in Figure 1. The grid side uses vector control and a PI controller to control the inductor current and the DC-link voltage. The virtual inertia power is added to the power reference to achieve inertia compensation. According to the GSC in Figure 1, the frequency is detected through the phase-locked loop, and the frequency deviation and frequency differential calculations are performed. Finally, the virtual inertial power instruction is obtained. When the grid frequency fluctuates, the frequency response of the grid is affected by the virtual inertial power. The advantages and disadvantages of conventional vector control are obvious. The advantage of the PI controller is that it can adjust the tracking capability of control variables and adapt to various system models. The disadvantage is that it cannot regulate multiple related variables or improve the performance of the system to achieve multiple control objectives.
The related equation above can be used to realize the MPC sy and electromagnetic torque can be calculated to achieve the optim The wind turbine drive system of a permanent magnet synchronous be equivalent to a two-mass module [25,26].
Equations (9)-(11) are the mathematical models of the two-m mass model can be used to analyze the effect of virtual inertia on sh

Control Structure
The conventional additional virtual inertia structure of PMSG in Figure 1. The grid side uses vector control and a PI controller t current and the DC-link voltage. The virtual inertia power is added to achieve inertia compensation. According to the GSC in Figur detected through the phase-locked loop, and the frequency dev differential calculations are performed. Finally, the virtual inertia obtained. When the grid frequency fluctuates, the frequency re affected by the virtual inertial power. The advantages and disadvan vector control are obvious. The advantage of the PI controller is tracking capability of control variables and adapt to various disadvantage is that it cannot regulate multiple related varia performance of the system to achieve multiple control objectives.

PD Virtual Inertia Control and Problems
The proportion-differential (PD) virtual inertia control o simulates the characteristics of synchronous generators.

PD Virtual Inertia Control and Problems
The proportion-differential (PD) virtual inertia control of PMSG-based WTs simulates the characteristics of synchronous generators. As shown in Figure 2, when the system frequency fluctuates, the additional power related to the system frequency deviation and differential takes effect, which can cause the WTs to change their output power. This control strategy realizes the simulation of the primary regulation characteristic and the inertial response characteristic of a traditional synchronous generator. The mathematical model of the virtual inertial power can be expressed as follows: Energies 2021, 14, x FOR PEER REVIEW 5 of 21 deviation and differential takes effect, which can cause the WTs to change their output power. This control strategy realizes the simulation of the primary regulation characteristic and the inertial response characteristic of a traditional synchronous generator. The mathematical model of the virtual inertial power can be expressed as follows: Through the discretization and simplification, the frequency-prediction model of the PMSG-based WTs with additional inertial power adjustment can be obtained. Since the WT is decoupled from the power of the grid without additional inertia, the predicted frequency deviation is related to the virtual inertia power and frequency deviation emitted by the WT at instant k.
To study the frequency support capability of high-penetration wind power in the WECS, it is necessary to establish a frequency response model of the conventional thermal power generation system. In the analysis of the system frequency adjustment, the internal model of the thermal power unit can be ignored, and the structure is simplified. According to the relationship between the frequency variation and output power, the frequency response model can be established [27], as shown in Equation (14). With a larger M, the system frequency changes more slowly under the same power deviation disturbance. Moreover, with a larger D, the steady-state output power of the system is higher, and the frequency dynamics are improved.
For the convenience of analysis, Equation (14) can be expressed as Equation (15).
After the virtual inertia control is introduced in the PMSG-based WTs introduced in Equation (12), the frequency response equation of the system is changed from Equation (15) to Equation (16).
After the combination, Equation (17) can be obtained.
Comparing Equations (15) and (17) shows that the system frequency deviation can be further reduced when a disturbance occurs with the virtual inertia regulation capability Through the discretization and simplification, the frequency-prediction model of the PMSG-based WTs with additional inertial power adjustment can be obtained. Since the WT is decoupled from the power of the grid without additional inertia, the predicted frequency deviation is related to the virtual inertia power and frequency deviation emitted by the WT at instant k.
To study the frequency support capability of high-penetration wind power in the WECS, it is necessary to establish a frequency response model of the conventional thermal power generation system. In the analysis of the system frequency adjustment, the internal model of the thermal power unit can be ignored, and the structure is simplified. According to the relationship between the frequency variation and output power, the frequency response model can be established [27], as shown in Equation (14). With a larger M, the system frequency changes more slowly under the same power deviation disturbance. Moreover, with a larger D, the steady-state output power of the system is higher, and the frequency dynamics are improved.
For the convenience of analysis, Equation (14) can be expressed as Equation (15).
After the virtual inertia control is introduced in the PMSG-based WTs introduced in Equation (12), the frequency response equation of the system is changed from Equation (15) to Equation (16).
After the combination, Equation (17) can be obtained. Comparing Equations (15) and (17) shows that the system frequency deviation can be further reduced when a disturbance occurs with the virtual inertia regulation capability of the WT. The PD virtual inertia control improves the system frequency stability in terms of the inertia and damping. Therefore, the virtual inertia control of PMSG-based WTs can simulate the rotor dynamic equation of the synchronous generator, and the PMSG-based WTs can respond to the grid frequency change and provide the virtual inertia for the grid.
Conventional virtual inertia control has some problems in the case of high wind power penetration [28]. In general, the inertia coefficient of the synchronous generator is larger than the inertia coefficient provided by the PMSG-based WTs. On the one hand, as the proportion of wind power increases, the total inertia of the system drops significantly. This is because the proportion of synchronous units with a stronger frequency regulation capability is reduced, and the current setting of K d parameters cannot meet the original inertia level of the power system. On the other hand, as the K d coefficient increases with the same wind power proportion, the total inertia of the system rises. The analysis above not only shows that increasing the virtual inertia coefficient of the system is beneficial for adjusting the frequency under the condition of high wind power penetration, but that it is also the reason for optimizing the inertia of the power system in the conventional virtual inertia control strategy.
However, the effect of excessive virtual inertia cannot be ignored for the PMSG shaft torque. Although the shaft torque of the PMSG is very close to the maximum torque of the generator, the change rate of the shaft torque is much higher than the rate of change of the generator torque, which may cause fatigue in the WTs. If the virtual inertia is too large, the torsion angle and the rotor speed of the shaft deviating from the stable state will cause free oscillation of the shaft system. The repeated tightening and relaxation of the shaft torque will damage the shaft and affect the stability of the WECS. Since the main factor affecting shaft oscillation is the electromagnetic torque, and since the electromagnetic torque is easier to be obtained than the shaft torque, the control strategy of this paper uses MPC to limit the electromagnetic torque of the PMSG.

FCS-MPC Control and Optimization
In the application of power electronic control, FCS-MPC needs to traverse all preselected switch states within a sampling period and then compare the output of the cost function under different vectors according to the pre-designed cost function related to system performance to select the best switch vector [29,30].
To reduce the calculation process and the switching frequency, this paper adopts a strategy of switching vector optimization selection. The various switching states in the traditional MPC switching vector can be switched at will. The optimized switching vector is shown in Figure 3 [31]. When the switching vector of the previous cycle is a zero vector, it can switch to any nonzero vector. When the switching vector of the previous cycle is nonzero, it can only switch to its adjacent vector or maintain its own vector. In this way, by limiting the number of times the switching tube operates in a single cycle, the purpose of reducing the switching frequency is achieved. of the WT. The PD virtual inertia control improves the system frequency stability in terms of the inertia and damping. Therefore, the virtual inertia control of PMSG-based WTs can simulate the rotor dynamic equation of the synchronous generator, and the PMSG-based WTs can respond to the grid frequency change and provide the virtual inertia for the grid. Conventional virtual inertia control has some problems in the case of high wind power penetration [28]. In general, the inertia coefficient of the synchronous generator is larger than the inertia coefficient provided by the PMSG-based WTs. On the one hand, as the proportion of wind power increases, the total inertia of the system drops significantly. This is because the proportion of synchronous units with a stronger frequency regulation capability is reduced, and the current setting of Kd parameters cannot meet the original inertia level of the power system. On the other hand, as the Kd coefficient increases with the same wind power proportion, the total inertia of the system rises. The analysis above not only shows that increasing the virtual inertia coefficient of the system is beneficial for adjusting the frequency under the condition of high wind power penetration, but that it is also the reason for optimizing the inertia of the power system in the conventional virtual inertia control strategy.
However, the effect of excessive virtual inertia cannot be ignored for the PMSG shaft torque. Although the shaft torque of the PMSG is very close to the maximum torque of the generator, the change rate of the shaft torque is much higher than the rate of change of the generator torque, which may cause fatigue in the WTs. If the virtual inertia is too large, the torsion angle and the rotor speed of the shaft deviating from the stable state will cause free oscillation of the shaft system. The repeated tightening and relaxation of the shaft torque will damage the shaft and affect the stability of the WECS. Since the main factor affecting shaft oscillation is the electromagnetic torque, and since the electromagnetic torque is easier to be obtained than the shaft torque, the control strategy of this paper uses MPC to limit the electromagnetic torque of the PMSG.

FCS-MPC Control and Optimization
In the application of power electronic control, FCS-MPC needs to traverse all preselected switch states within a sampling period and then compare the output of the cost function under different vectors according to the pre-designed cost function related to system performance to select the best switch vector [29,30].
To reduce the calculation process and the switching frequency, this paper adopts a strategy of switching vector optimization selection. The various switching states in the traditional MPC switching vector can be switched at will. The optimized switching vector is shown in Figure 3 [31]. When the switching vector of the previous cycle is a zero vector, it can switch to any nonzero vector. When the switching vector of the previous cycle is nonzero, it can only switch to its adjacent vector or maintain its own vector. In this way, by limiting the number of times the switching tube operates in a single cycle, the purpose of reducing the switching frequency is achieved.

The Structure of Multi-Objective MPC
According to the stator current prediction equation, the frequency prediction equation, and the electromagnetic torque prediction equation of the PMSG derived in Sections 2 and 3, the improved PMSG multi-objective MPC structure is established. In Figure 4, the GSC maintains the conventional vector control [32], the grid voltage vector is oriented on the q axis, and the q axis controls the output of the active power. This includes the grid-side inductor current loop and the DC voltage loop to maintain the stability of the grid side current and the DC-link voltage. The MSC adopts the multi-objective MPC by predicting the current and calculating the optimized objectives, and the final selected voltage vector is used for MPC through a rolling optimization combined with the FCS-MPC algorithm. The cost function is composed of three parts: current, frequency, and torque.
Energies 2021, 14, x FOR PEER REVIEW

The Structure of Multi-Objective MPC
According to the stator current prediction equation, the frequency pr equation, and the electromagnetic torque prediction equation of the PMSG de Sections 2 and 3, the improved PMSG multi-objective MPC structure is establis Figure 4, the GSC maintains the conventional vector control [32], the grid voltag is oriented on the q axis, and the q axis controls the output of the active pow includes the grid-side inductor current loop and the DC voltage loop to main stability of the grid side current and the DC-link voltage. The MSC adopts the objective MPC by predicting the current and calculating the optimized objectives, final selected voltage vector is used for MPC through a rolling optimization co with the FCS-MPC algorithm. The cost function is composed of three parts: frequency, and torque. In the conventional virtual inertia control of PMSG-based WTs, the frequ obtained by the phase-locked loop detection, and the compensation value is adde current reference. With the selection strategy of the optimal vector in the FCS-M frequency support capability is higher than the conventional virtual inertia con adding the electromagnetic torque prediction model to the cost function, the effects of excessive virtual inertia are optimized. By then standardizing the coefficient and the active power of the system, the weight coefficients are a according to the wind power proportion. With accurate wind speed forecasting, th of the weight coefficient is changed dynamically. The stability of the WECS is im According to different working conditions and different control objectives, the co this paper can be divided into current MPC, current-frequency double-objectiv and current-frequency-torque multi-objective MPC [33,34].

The Modes of Multi-Objective MPC
In the actual digital experiment process, FCS-MPC is executed in the DSP Signal Processor). Due to the large time consumption of the algorithm itself, the sw action at two times is inconsistent with the sampling time. The inconsistency segment is due to the delay, and the switching vector at instant k cannot be e immediately, which will have an impact on FCS-MPC. According to the current-sa signal, the i(k + 1) of the system is calculated. Based on i(k + 1), the current value i( the system can be calculated. The optimal switching vector S(k + 1) is selected in i( be executed immediately at instant k + 1, and the control error will be reduced in th These calculation processes are all completed in one sampling period, and this pap this two-step MPC for the control modes as follows.

MSC
Equation (20),Equation (33) Padd In the conventional virtual inertia control of PMSG-based WTs, the frequency is obtained by the phase-locked loop detection, and the compensation value is added to the current reference. With the selection strategy of the optimal vector in the FCS-MPC, the frequency support capability is higher than the conventional virtual inertia control. By adding the electromagnetic torque prediction model to the cost function, the adverse effects of excessive virtual inertia are optimized. By then standardizing the weight coefficient and the active power of the system, the weight coefficients are allocated according to the wind power proportion. With accurate wind speed forecasting, the value of the weight coefficient is changed dynamically. The stability of the WECS is improved. According to different working conditions and different control objectives, the control of this paper can be divided into current MPC, current-frequency double-objective MPC, and current-frequency-torque multi-objective MPC [33,34].

The Modes of Multi-Objective MPC
In the actual digital experiment process, FCS-MPC is executed in the DSP (Digital Signal Processor). Due to the large time consumption of the algorithm itself, the switching action at two times is inconsistent with the sampling time. The inconsistency of this segment is due to the delay, and the switching vector at instant k cannot be executed immediately, which will have an impact on FCS-MPC. According to the current-sampling signal, the i(k + 1) of the system is calculated. Based on i(k + 1), the current value i(k + 2) of the system can be calculated. The optimal switching vector S(k + 1) is selected in i(k + 2) to be executed immediately at instant k + 1, and the control error will be reduced in this way. These calculation processes are all completed in one sampling period, and this paper uses this two-step MPC for the control modes as follows. Based on the prediction model of the stator current, the cost function can be expressed as in Equation (18).
In the previous sections, the current model and the frequency model are introduced in detail. The cost function can be expressed as given in Equation (19). The current-frequency double-objective control using current prediction and frequency prediction can optimize the virtual inertial power provided by the conventional PD virtual inertia control and improve the frequency response. The purpose of changing the cost function is to select the smallest value of the cost function with the frequency deviation. The smallest value determines the switching vector at instant k + 1, and the weight coefficient determines the strength of the system in tracking between frequency and current.
After establishing the cost function, it is necessary to obtain the prediction value required by the cost function. In Equation (20), the frequency deviation prediction value at instant k + 1 is related to the frequency deviation and the power deviation at instant k. The current prediction can be used to calculate different predicted current values under different voltage vectors at instant k + 1. By subtracting the steady-state component of the current from the predicted current at instant k + 1, the current deviation component at instant k + 1 can be obtained. The power deviation component can be calculated by the current deviation component.
It should be noted that during the sampling period, since the sampling frequency is much greater than the grid frequency change, the grid frequency change at time k can be considered to vary linearly. As shown in Equation (21), the frequencies at instants k and k − 1 are calculated equivalently to obtain the approximate frequency deviation at instant k + 1. After obtaining the control variables of instant k + 1, the frequency deviation at instant k + 2 can be calculated. In addition, considering that the proportional coefficient K p has a smaller impact on the dynamic response of the system compared to the differential coefficient, the proportional coefficient K p is chosen to be ignored, and this paper mainly analyzes the differential part of the PD control. The frequency prediction in Equation (20) is transformed into Equation (22).
Since only the differential coefficient is considered, the calculation of compensation current is approximated by the compensated virtual inertia power, as shown in the following equation: By adding the compensation current to the q-axis current in formula (6), we can obtain the active power in PMSG at the frequency response: The steady-state component can be expressed as follows: Since the current prediction can make the current stably track the reference value, this paper assumes that the current weight coefficient is sufficiently large, so the current at instant k + 1 is close to the steady-state current reference at instant k.
In the conventional control, the value of the active power is controlled by the q-axis current, so Equation (25) can be expressed as in Equation (27).
After subtracting the steady-state component, the final power deviation component of PMSG is expressed by Equation (28) through simplification.
To compensate for the lack of virtual inertial power in the original system, the power deviation component model in Equation (28) is deduced, and the frequency deviation component is changed to Equation (29). The compensation coefficients M and D are introduced in Equation (29) to simulate the inertia and damping of the grid in the prediction model.
The optimization cost function considers both the current and frequency objectives. However, without limiting the torque, the electromagnetic torque and torque change rate during the frequency response will change abruptly with the increase in the virtual inertia. From the analysis in Section 3, the excessive shaft torque is very harmful and affects the stability of the system.

Current-Frequency-Torque Multi-Objective MPC
To suppress the fluctuation of the shaft torque during frequency regulation, this paper proposes current-frequency-torque multi-objective control. This control strategy can limit the drive shaft torque fluctuation caused by the additional inertia and maintain the stability of the system. The cost function is converted into Equation (30). The purpose is to suppress the fluctuation of the system torque caused by the disturbance while suppressing the frequency fluctuation and to control the virtual inertia power within a reasonable range. The frequency prediction value can be obtained by referring to the strategy of the current-frequency prediction. Since the d-q axis currents have been previously extracted, the electromagnetic torque prediction value can be calculated by Equation (8). The reference value of the electromagnetic torque can be obtained through analogy with the steady state-value of the power, which can be expressed as Equation (31).
The predicted value of the electromagnetic torque can be expressed as Equation (32).
In the conventional control, the magnitude of the active current is controlled by the qaxis current, and the electromagnetic torque reference and predicted value can be simplified to Equations (33) and (34).
This control solves the problem of shaft oscillation when the weight coefficient of the frequency deviation is set to be large. The additional electromagnetic torque control can effectively suppress the negative influence caused by the sudden change in the torque of the shaft. However, according to the different conditions of the torque under different wind speed conditions, the weight coefficient needs to be adaptively changed.

Standardization Weight Coefficient Calculation
Because of the different control capabilities of multi-objective control with its weight coefficient, the stator current, frequency deviation, and electromagnetic torque are standardized according to their respective rated value and rated power. The control capability can be reasonably adjusted in this standard. The active power of the WECS is taken as the base value, and the weight coefficient is adjusted according to the control effect in the actual control. The weight coefficient can be expressed as follows: The rated value of the frequency deviation and the rated value of the torque need to be selected in combination with the maximum steady frequency, which the system allows. Generally, the weight coefficients calculated in this way may have problems in actual use and need to be adjusted in the actual system. If the optimization effect on each part needs to be improved, the weight coefficient should be increased. For example, if the current tracking effect needs to be improved, the current weight coefficient should be increased.

Weight Coefficient Adaptive Strategy Based on Wind Speed Forecasting
Wind speed forecasting plays an important role in wind power generation. Wind speed forecasting technology is very mature. The short-term forecasting of wind speed can be used to predict the short-term power of PMSG-based WTs. It has important practical value for improving the capability of the PMSG-based WTs, improving the grid connection level, and reducing the cost of wind power in virtual inertia control. When the forecast duration of the short-term forecast is 1 s, the mean absolute percentage error (MAPE) reflecting the prediction accuracy is less than 5%, which is sufficient for dynamic adjustment [35][36][37]. The power of the inertia that the PMSG-based WTs can provide under different working conditions is limited, so the WTs cannot provide excessive active power during the virtual inertia adjustment process. According to the cost function above, a strategy for transforming the weight coefficient in different wind speeds is proposed [38,39].
To adjust the weight coefficient dynamically, it is necessary to select the most suitable values of λ I , λ f , and λ T that satisfy the system active power by adjusting the weight coefficient under the standard conditions. In the case of obtaining the forecasted wind speed, the corresponding predicted active power is calculated by MPPT [40]. When the wind speed is changed, the predicted active power is also changed. To deal with problems caused by different wind speeds, the control strategy can be obtained by the dynamic weight coefficient strategy. Furthermore, this method can reduce the delay and error of direct power detection.
In order to achieve variable weight coefficients, exponential function Equation (36) can be introduced. Based on the exponential function Equation (36), the characteristics of the dynamic weight coefficient are analyzed. It is shown from Figure 5 that if P f /P s is less than 1, the forecasted power is less than the rated power of the WT in the exponential function equation. The larger the selected N is, the smaller the function value of the final output is. When P f /P s is greater than 1, the forecasted power is greater than the rated power of the WT. The larger the selected N is, the larger the function value of the final output is. Through the above analysis, it is concluded that different exponential functions should be selected for different actual situations, and the dynamic weight coefficient control strategy can be realized. When the wind speed is high, increasing the weight coefficient can make the exponential function output more sensitive.
wind speed is changed, the predicted active power is also changed caused by different wind speeds, the control strategy can be ob weight coefficient strategy. Furthermore, this method can reduce direct power detection.
In order to achieve variable weight coefficients, exponential can be introduced. Based on the exponential function Equation (3 the dynamic weight coefficient are analyzed. It is shown from Fig  than 1, the forecasted power is less than the rated power of the function equation. The larger the selected N is, the smaller the fun output is. When Pf/Ps is greater than 1, the forecasted power is grea of the WT. The larger the selected N is, the larger the function valu Through the above analysis, it is concluded that different exponen selected for different actual situations, and the dynamic weight coe can be realized. When the wind speed is high, increasing the weig the exponential function output more sensitive. To ensure the stability of the output current, it is necessary to current, as shown in Equation (37). Assuming that the PMSG-ba MPPT area and the power change does not reach the highest pow derived by selecting the exponential function. To prevent the coefficient change on the control stability, the limit is set. This Equation (38). Under different wind speeds, the weight coefficien the wind turbine can provide sufficient power for the frequency Equation (39), in the case of a low wind speed, the influence on th is reduced. At this time, the torque weight coefficient can be r frequency control capability. The effect of the exponential funct wind speeds. Selecting 5 as the value of N increases the sensitivity limits the shaft torque when the power is exceeded so that the to at a high wind speed is rapidly increased to limit the output sh emphasized that in the process of control adjustment, if any contr To ensure the stability of the output current, it is necessary to limit the weight of the current, as shown in Equation (37). Assuming that the PMSG-based WTs operate in the MPPT area and the power change does not reach the highest power, Equation (38) can be derived by selecting the exponential function. To prevent the influence of excessive coefficient change on the control stability, the limit is set. This can be obtained from Equation (38). Under different wind speeds, the weight coefficient changes to ensure that the wind turbine can provide sufficient power for the frequency response. As shown in Equation (39), in the case of a low wind speed, the influence on the shaft torque variation is reduced. At this time, the torque weight coefficient can be reduced to increase the frequency control capability. The effect of the exponential function is reversed at high wind speeds. Selecting 5 as the value of N increases the sensitivity of the wind turbine and limits the shaft torque when the power is exceeded so that the torque weight coefficient at a high wind speed is rapidly increased to limit the output shaft torque. It should be emphasized that in the process of control adjustment, if any control objective reaches the limit value, the weight coefficient of each optimization objective no longer acts. There is a coupling relationship between each weighting coefficient in the multiobjective MPC, where the weight coefficients of the torque and current in the cost function are also affected when the frequency weight coefficient is changed. The weight coefficient impact on performance is qualitatively analyzed. Assuming that the sum of the percent of the three objectives is 1, Equation (40) can be obtained. The wind speed forecasting is added to Equation (40), and then Equation (41) can be deduced. When the wind speed and the active power are reduced, the frequency coefficient and the torque coefficient are changed at the same time. The proportion of the exponential function in the frequency is more than that in the torque at a low wind speed. Torque suppression is reduced and inertial power at the present level is released to the greatest extent possible. As the wind speed increases, so does the active power. Because the requirements for torque change on the shaft torque are higher, the proportion of the exponential function in the frequency is less than that in the torque at high wind speed. The change in the exponential function can also increase the proportion of torque weight coefficient to limit the inertial power.
Since the wind prediction still has a certain error, the strategy of the dynamic weight coefficient needs to be reserved under a certain margin when selecting the standard coefficient under different working conditions. The actual application of the PMSG with different parameters under different conditions also needs to be debugged and processed.

Steps for Multi-Objective MPC
The current-frequency-torque multi-objective MPC has been introduced and analyzed. The specific step flow can be divided into seven steps and the specific algorithm control flow chart is as follows in Figure 6.
Step (1): The stator current, rotor speed, and rotor position angle at the current moment are measured, and the d-q axis current by PARK transformation is calculated for the cost function.
Step (2): According to different switching states, the stator voltages of the d-q axis corresponding to the voltage vectors at instant k + 1 are calculated for the current prediction calculation.
Step (3): According to the current prediction in Equation (3), the predicted current at instant k + 1 corresponding to different vectors is calculated, and then the predicted current at instant k + 2 is calculated.
Step (4): From the predicted current value, the deviation component is extracted, and the predicted frequency at instant k + 2 is calculated in Equation (22).
Step (5): Based on the predicted current value and the flux equation, the predicted electromagnetic torque at instant k + 2 is calculated in Equation (34).
Step (6): The cost function under different switching vectors is calculated by rolling optimization, the minimum value is calculated in Equation (30), and the corresponding switching vector is selected.
Step (7): The corresponding optimal switch state is saved and sent to converter. Measuring the stator current, rotor speed, and rotor position angle at the current moment .

PARK transformation
According to different switching states, the stator voltages of the d-q axis corresponding to the voltage vectors at instant k+1 are calculated .
According to equation (22), the deviation component is extracted and calculating the fdev(k+2).
According to equation (29), calculating the cost function by rolling optimization .

Finding optimal switching state
The corresponding optimal switch state is saved and sent to converter. the next period Figure 6. The specific algorithm control flow chart.

Simulation
The simulation system is shown in Figure 4. In the simulation system, the analo synchronous generator (SG) and equivalent load are used as equivalents to reflect th equivalent analog power grid for better reflecting the frequency response characteristic of the actual power grid. This method can more truly reflect the electromagnetic couplin characteristics of the SG set in the actual power grid. The frequency response characteristi simulation system can simulate the inertial response characteristic and frequenc modulation characteristic of SG. Meanwhile, the terminal voltage control system ca maintain the stability of the voltage at PCC point. At the same time, the correspondin line impedance is added to more truly fit the actual situation of the power grid [41].
The simulation software uses MATLAB/SIMULINK, and the simulation can b conducted according to different control strategies that affect the inertia capability o PMSG-based WT. S is the synchronous generator, and Load0 and Load1 are two loca loads, where wind power as new energy accounted for 50% of the total energy of th system. The PMSG-based WT and the synchronous generator each generates 2 MW. I this paper, a sudden increase in the load is adopted to change the system frequency.

Simulation for Double-Objective MPC under Disturbance
To verify the inertial support capability of current-frequency double-objective MPC it is assumed that the wind speed is constant, and the one-mass structure in the drive trai model is adopted. The load increases from 1.00 p.u. to 1.05 p.u. at 10 s, resulting in significant frequency drop. Figure 7 displays the frequency, active power, electromagneti torque, and speed of the three different controls. As shown in Figure 7a, when the PMSG based WTs adopts a different control strategy, the maximum frequency deviatio decreases from 0.00905 p.u. to 0.0072 p.u. by adopting the double-objective MPC. Th frequency deviation of double-objective MPC is less than conventional control wit inertia, and the double-objective MPC has a better frequency support capability and The steps listed above are operated in one switch period. After finishing step (7), the next period will run step (1) again.

Simulation
The simulation system is shown in Figure 4. In the simulation system, the analog synchronous generator (SG) and equivalent load are used as equivalents to reflect the equivalent analog power grid for better reflecting the frequency response characteristics of the actual power grid. This method can more truly reflect the electromagnetic coupling characteristics of the SG set in the actual power grid. The frequency response characteristic simulation system can simulate the inertial response characteristic and frequency modulation characteristic of SG. Meanwhile, the terminal voltage control system can maintain the stability of the voltage at PCC point. At the same time, the corresponding line impedance is added to more truly fit the actual situation of the power grid [41].
The simulation software uses MATLAB/SIMULINK, and the simulation can be conducted according to different control strategies that affect the inertia capability of PMSGbased WT. S is the synchronous generator, and Load0 and Load1 are two local loads, where wind power as new energy accounted for 50% of the total energy of the system. The PMSG-based WT and the synchronous generator each generates 2 MW. In this paper, a sudden increase in the load is adopted to change the system frequency.

Simulation for Double-Objective MPC under Disturbance
To verify the inertial support capability of current-frequency double-objective MPC, it is assumed that the wind speed is constant, and the one-mass structure in the drive train model is adopted. The load increases from 1.00 p.u. to 1.05 p.u. at 10 s, resulting in a significant frequency drop. Figure 7 displays the frequency, active power, electromagnetic torque, and speed of the three different controls. As shown in Figure 7a, when the PMSG-based WTs adopts a different control strategy, the maximum frequency deviation decreases from 0.00905 p.u. to 0.0072 p.u. by adopting the double-objective MPC. The frequency deviation of double-objective MPC is less than conventional control with inertia, and the double-objective MPC has a better frequency support capability and decreases the inertial response time. In Figure 7b-d, the maximum virtual inertial power rises from 0 p.u. to 0.022 p.u., and the maximum electromagnetic torque fluctuation rises from 0 p.u. to 0.051 p.u.   Figure 8a, with λf increasing, the maximum frequency deviations are 0.0077 p.u., 0.0072 p.u. and 0.0064 p.u., respectively. This proves that the inertia support capability is proportional to λf. In Figure 8b-d, the fluctuation of active power, electromagnetic torque, and speed becomes apparent with an increase in λf. With λf increasing, the maximum inertial powers are 0.019 p.u., 0.024 p.u., and 0.029 p.u. respectively. This proves that more inertial power is added to the system in the frequency response, and the advantages of double-objective MPC are demonstrated. 10 Figure 8a, with λ f increasing, the maximum frequency deviations are 0.0077 p.u., 0.0072 p.u. and 0.0064 p.u., respectively. This proves that the inertia support capability is proportional to λ f . In Figure 8b-d, the fluctuation of active power, electromagnetic torque, and speed becomes apparent with an increase in λ f . With λ f increasing, the maximum inertial powers are 0.019 p.u., 0.024 p.u., and 0.029 p.u. respectively. This proves that more inertial power is added to the system in the frequency response, and the advantages of double-objective MPC are demonstrated.

Simulation for Multi-Objective MPC under the Shafting Oscillation
The two-mass structure in the drive train model is adopted, and the parameter is set in the case that it excites oscillation during the load disturbance. Figure 9 displays a

Simulation for Multi-Objective MPC under the Shafting Oscillation
The two-mass structure in the drive train model is adopted, and the parameter is set in the case that it excites oscillation during the load disturbance. Figure 9 displays a comparison of the conventional inertia control, current-frequency double-objective MPC and current-frequency-torque multi-objective MPC. The load increases from 1.00 p.u. to 1.05 p.u. at 10 s, resulting in a significant frequency drop. The shaft oscillation is excited to generate obvious electromagnetic torque fluctuation under the sudden disturbance of the load in the conventional inertia control. In the conventional inertia control, the maximum frequency deviation is 0.0090 p.u., and the maximum electromagnetic torque fluctuation is 0.050 p.u. The shaft oscillation affects the control of the frequency, power, and rotor speed. This makes the frequency drop more obvious and the fluctuations of the power and speed more severe. When the current-frequency double-objective MPC is adopted, since the cost function is aimed at the frequency deviation, a larger virtual inertia power is generated. At the same time, the shaft oscillation is amplified, and the system may lose stability beyond the limit range. In the current-frequency double-objective MPC control, the maximum frequency deviation is 0.0092 p.u. and the maximum electromagnetic torque fluctuation is 0.062 p.u. When current-frequency-torque multi-objective MPC is adopted, the electromagnetic torque in the system is limited. When the torque ripple is reduced, the fluctuation of the system frequency, power, and speed is also weakened. The maximum frequency deviation is 0.0082 p.u. and the maximum electromagnetic torque fluctuation is 0.035 p.u.   Figure 10c that when the multi-objective MPC is adopted, the electromagnetic torque fluctuation of the system under shaft oscillation gradually decreases with an increase in the torque weight coefficient. The maximum electromagnetic torque fluctuation of the three strategies is 0.062 p.u., 0.041 p.u., and 0.023 p.u., respectively. It can be inferred from Figure 10a,b,d that as the fluctuation of electromagnetic torque decreases gradually, the fluctuations in the frequency, active power, and rotor speed of the PMSG-based wind turbine decrease. The results show that the suppression of the shafting vibration can be enhanced by increasing the weight of the electromagnetic torque. 10  Active power/p.u.   Figure 10c that when the multi-objective MPC is adopted, the electromagnetic torque fluctuation of the system under shaft oscillation gradually decreases with an increase in the torque weight coefficient. The maximum electromagnetic torque fluctuation of the three strategies is 0.062 p.u., 0.041 p.u., and 0.023 p.u., respectively. It can be inferred from Figure 10a,b,d that as the fluctuation of electromagnetic torque decreases gradually, the fluctuations in the frequency, active power, and rotor speed of the PMSG-based wind turbine decrease. The results show that the suppression of the shafting vibration can be enhanced by increasing the weight of the electromagnetic torque.
decreases with an increase in the torque weight coefficient. The maximum electromagnetic torque fluctuation of the three strategies is 0.062 p.u., 0.041 p.u., and 0.023 p.u., respectively. It can be inferred from Figure 10a,b,d that as the fluctuation of electromagnetic torque decreases gradually, the fluctuations in the frequency, active power, and rotor speed of the PMSG-based wind turbine decrease. The results show that the suppression of the shafting vibration can be enhanced by increasing the weight of the electromagnetic torque.

Simulation for Dynamic Weight Coefficients under Different Wind Speeds
Time/s

Simulation for Dynamic Weight Coefficients under Different Wind Speeds
In this part, the low wind speed is 0.90 p.u. and the high wind speed is 1.10 p.u. to achieve different working conditions. The load increases from 1.00 p.u. to 1.05 p.u. at 10 s, resulting in a significant frequency drop. The dynamic weight coefficient control with wind speed forecasting, the constant weighting coefficient control, and conventional inertial control are compared. Due to the high proportion of the WT, wind power has a great influence on the output active power. The simulation assumes that the wind turbine works in the MPPT area at a low wind speed. At high wind speeds, due to the limitation of the power, the output power is constant at 1.00 p.u. and the rotor speed is constant at 1.2 p.u.
It can be inferred from Figure 11a,b that when the wind speed is low, the control strategy of the constant weight coefficient and the dynamic weight coefficient can achieve a superior effect compared to the conventional inertia control. The increase in the virtual inertia power leads to a decrease in frequency deviation. As shown in Figure 11c,d, since the output power of the system is low, the limit for the shaft torque variation is not too high. The maximum electromagnetic torques variation of the three strategies are 0.048 p.u., 0.036 p.u., and 0.046 p.u., respectively. The output difference of electromagnetic torque between the constant weight coefficient and the dynamic weight coefficient control strategy is 0.002 p.u., which is not significantly different.
In Figure 12, the difference between different wind speeds is more obvious. The maximum electromagnetic torque fluctuations of the three strategies are 0.035 p.u., 0.055 p.u., and 0.042 p.u., respectively, and the inertial power are 0.020 p.u., 0.029 p.u., and 0.025 p.u., respectively. Under the high wind speed, the dynamic weight coefficient strategy rapidly increases λ T at a high wind speed, and the large electromagnetic torque variation is suppressed, but it still has more inertial power than conventional inertia control. Based on the above analysis of the exponential function characteristics, it is shown that the electromagnetic torque fluctuation can be effectively restrained by changing the dynamic weight coefficient. In this way, the electromagnetic torque variation caused by the sudden change in the wind speed is reduced, and the shaft oscillation generated under various disturbances, such as the load change, can be prevented.
The main parameters of the simulation used in this paper are in Appendix A.
a superior effect compared to the conventional inertia control. The increase in the virtual inertia power leads to a decrease in frequency deviation. As shown in Figure 11c,d, since the output power of the system is low, the limit for the shaft torque variation is not too high. The maximum electromagnetic torques variation of the three strategies are 0.048 p.u., 0.036 p.u., and 0.046 p.u., respectively. The output difference of electromagnetic torque between the constant weight coefficient and the dynamic weight coefficient control strategy is 0.002 p.u., which is not significantly different. In Figure 12, the difference between different wind speeds is more obvious. The maximum electromagnetic torque fluctuations of the three strategies are 0.035 p.u., 0.055 p.u., and 0.042 p.u., respectively, and the inertial power are 0.020 p.u., 0.029 p.u., and 0.025 p.u., respectively. Under the high wind speed, the dynamic weight coefficient strategy rapidly increases λT at a high wind speed, and the large electromagnetic torque variation is suppressed, but it still has more inertial power than conventional inertia control. Based on the above analysis of the exponential function characteristics, it is shown that the electromagnetic torque fluctuation can be effectively restrained by changing the dynamic weight coefficient. In this way, the electromagnetic torque variation caused by the sudden change in the wind speed is reduced, and the shaft oscillation generated under various disturbances, such as the load change, can be prevented.
The main parameters of the simulation used in this paper are in Appendix A.

Conclusions
This paper proposed an improved virtual inertia control strategy for PMSG-based WTs based on multi-objective MPC, which is able to compensate the virtual inertia better than the conventional inertia control. It is shown that by changing the weight coefficient according to the inertia demand of the PMSG-based WTs, the inertia response of the system can be enhanced. To suppress the shaft oscillation caused by the high inertia, the electromagnetic torque prediction model is added to the cost function, and the capacity of suppressing the shaft oscillation is flexibly adjusted by changing the weight coefficient. Furthermore, under different wind speeds, the control capability of each objective is changed by the dynamic weight coefficient. The control effect of this paper is simulated in cases with a high wind speed and a low wind speed, where the electromagnetic torque is limited at a high wind speed. To conclude, multi-objective factors were considered in this paper to improve the virtual inertia control of PMSG-based WTs, and the effect of the improvement was verified. In addition, stability analysis of the proposed algorithm including the variable-weighting coefficient can be addressed in future works.

Conclusions
This paper proposed an improved virtual inertia control strategy for PMSG-based WTs based on multi-objective MPC, which is able to compensate the virtual inertia better than the conventional inertia control. It is shown that by changing the weight coefficient according to the inertia demand of the PMSG-based WTs, the inertia response of the system can be enhanced. To suppress the shaft oscillation caused by the high inertia, the electromagnetic torque prediction model is added to the cost function, and the capacity of suppressing the shaft oscillation is flexibly adjusted by changing the weight coefficient. Furthermore, under different wind speeds, the control capability of each objective is changed by the dynamic weight coefficient. The control effect of this paper is simulated in cases with a high wind speed and a low wind speed, where the electromagnetic torque is limited at a high wind speed. To conclude, multi-objective factors were considered in this paper to improve the virtual inertia control of PMSG-based WTs, and the effect of the improvement was verified.
In addition, stability analysis of the proposed algorithm including the variable-weighting coefficient can be addressed in future works. Mechanical angular velocity, Grid angle, Torsion angle K s , B s Equivalent stiffness coefficient, Friction coefficient J r , J g Rotary inertia of the wind wheel and the motor f g , f ref Grid frequency, Grid frequency reference f meas , f dev Measured grid frequency, Frequency deviation K d , K p , K f Inertia differential coefficient, Inertia proportional coefficient, Inertia T compensation coefficient P e , P WT , P MPPT Active power, PMSG input power, MPPT power P VIC , P dev , P es Virtual inertia power, Active power deviation, Steady-state component power dq-frame rotating coordinate system g Grid side control variables * Reference value

Appendix A
The main parameters of the simulation used in this paper are as follow (see Tables A1-A3).