A grid-forming inverter control method based on economic model predictive control
By combining the economic model predictive control method of virtual synchronous generator control and virtual impedance control, and optimizing the selection of switching states, the problem of slow transient response and high switching losses of grid-connected inverters during grid faults or power surges is solved, achieving fast response and low-loss grid support.
Patent Information
- Application Number
- CN202611330893.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-27
AI Technical Summary
Existing grid-connected inverters exhibit slow transient response and high switching frequency when facing grid faults or power surges, resulting in significant switching losses and impacting the inverter's economy and reliability.
A grid-type inverter control method based on economic model predictive control is adopted, which combines virtual synchronous generator control and virtual impedance control. By introducing a penalty term for switching state changes in the cost function, the switching state selection is optimized and the switching frequency is reduced.
It enables the inverter to have a fast transient response during grid faults or power surges, reduces switching losses, improves the dynamic response speed and robustness of the system, and enhances the active support capability for grid voltage and frequency.
Smart Images

Figure CN123184431A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of new energy power generation and power electronic control technology, specifically to a grid-type inverter control method based on economic model predictive control. Background Technology
[0002] The high proportion of new energy sources integrated into new power systems leads to a significant decrease in the overall electromechanical inertia level of the system. Traditional grid-following inverters, which rely on phase-locked loops to track the grid phase, are prone to phase loss and wide-frequency oscillations under weak grid conditions or large disturbances. Grid-based control technology, through its internal algorithm mechanism, simulates the rotor motion equations of a synchronous generator, enabling the active construction of AC side voltage and frequency, providing the necessary inertia and damping support for the system.
[0003] Existing grid-connected inverters primarily rely on a voltage-current cascaded PI architecture for their underlying control. This structure suffers from severe parameter coupling, cumbersome tuning, and significant lag in transient response to grid faults or power surges. Model predictive control (MDI), by establishing a discrete mathematical model of the system and performing rolling optimization, eliminates the need for traditional linear regulators and modulation stages, offering a very wide dynamic control bandwidth. However, traditional MDI focuses solely on minimizing the tracking error of electrical quantities in its optimization function, without imposing constraints on switching behavior. This control logic leads to a wide-bandwidth random distribution of inverter switching frequencies and an overall high operating frequency. This not only exacerbates the thermal stress on power semiconductor devices and significantly increases switching losses during system operation but also severely restricts the long-term economic efficiency and reliability of the inverter. Therefore, there is an urgent need to explore a grid-connected inverter control strategy that can ensure the inverter's active grid support capability while also maintaining dynamic tracking performance and effectively suppressing switching losses. Summary of the Invention
[0004] To address the issues of slow transient response in existing grid-connected inverters using dual-closed-loop PI control and high switching frequency and losses in traditional finite set model predictive control, this invention proposes a grid-connected inverter control method based on economic model predictive control. This method aims to achieve rapid tracking of transient current while ensuring that the inverter actively provides grid voltage and frequency support, thereby effectively reducing the switching frequency and operating losses of power devices.
[0005] To achieve the above-mentioned objectives, the present invention adopts the following technical solution: The present invention provides a grid-type inverter control method based on economic model predictive control, characterized by including: Step 1: Set up a two-level grid-connected inverter system, including: DC power supply, three-phase full-bridge inverter, three-phase LC filter, parasitic resistance, and AC grid; construct the model expression of the two-level grid-connected inverter system. Step 2: Based on the model expression, establish a discrete prediction model for the inverter in a two-phase stationary coordinate system; Step 3: Based on the inverter discrete prediction model, calculate the output power, and obtain the grid angular frequency, grid phase angle and grid voltage amplitude commands through virtual synchronous generator control; Step 4: Calculate the current reference value in the two-phase stationary coordinate system based on the network angular frequency, network phase angle, and network voltage amplitude commands through virtual impedance control. Step 5: Based on the current reference value, generate eight candidate switch states and calculate the predicted current corresponding to each candidate switch state. Step 6: Calculate the economic cost based on the deviation between the current reference value and the predicted current, as well as the change in the state of each candidate switch. Step 7: Select the candidate switch state with the lowest economic cost as the optimal switch vector and output the drive signal.
[0006] The characteristic of the grid-type inverter control method based on economic model predictive control in this invention is that, in step 1, the model expression of the two-level grid-type inverter system is constructed using equation (1): (1) In equation (1), In a two-phase stationary coordinate system t The current on the inverter side at any given time, and , express t The current on the inverter side at any given moment is obtained in the two-phase stationary coordinate system using Clarke transformation. Axial components, express t The current on the inverter side at any given moment is obtained in the two-phase stationary coordinate system using Clarke transformation. Axial component, T denotes transpose; for The first derivative, In a two-phase stationary coordinate system t The output voltage on the inverter side at any given time, and , express t The inverter-side output voltage in two-phase stationary coordinates obtained by Clarke transformation Axial components, express t The inverter-side output voltage in two-phase stationary coordinates obtained by Clarke transformation Axial components, Represents a two-phase stationary coordinate system t The grid-side voltage at time , and , expresst The two-phase stationary coordinate system obtained by Clarke transformation of the grid-side voltage at time Axial components, express t The two-phase stationary coordinate system obtained by Clarke transformation of the grid-side voltage at time The axial components are R (resistance) and L (inductance), and we have: (2) In equation (2), for t DC voltage at time t, for t The status of the three-phase bridge arm switches of the inverter at all times, and has, (3) In equation (3), , For phase a, the upper and lower bridge arms, For phase b, the upper and lower bridge arms, For the upper and lower arms of phase C; , , They are respectively t The status of the A-phase, B-phase, and C-phase bridge arm switches of the inverter at any given time.
[0007] Furthermore, step 2 includes: Step 2.1, for Discretization is performed so that And from equation (4) we obtain the first... k A vector for each sampling period, where, The sampling period is k This is the sequence number of the sampling period; (4) In equation (4), For the first k The current value on the inverter side during each sampling period. Indicates the first k The inverter-side current under Clarke transformation in two-phase stationary coordinates during each sampling period Axial components, Indicates the first k The inverter-side current under Clarke transformation in two-phase stationary coordinates during each sampling period Axial components, For the first k The state of the three-phase bridge arm switches under each sampling period , , The first kThe switching states of the inverter's phase a, phase b, and phase c bridge arms under each sampling cycle. For the first k Grid-side voltage under each sampling period Indicates the first k The grid-side voltage in the two-phase stationary coordinate system obtained by Clarke transformation under each sampling period. Axial components, Indicates the first k The grid-side voltage in the two-phase stationary coordinate system obtained by Clarke transformation under each sampling period. Axial components, For the first k DC voltage under each sampling period In a two-phase stationary coordinate system t The current on the grid side at any given time, and express t The two-phase stationary coordinate system obtained by Clarke transformation of the grid-side current at time step Axial components, express t The two-phase stationary coordinate system obtained by Clarke transformation of the grid-side current at time step Axial components, For the first k The grid-side current is measured in one sampling cycle. Indicates the first k The grid-side current in the two-phase stationary coordinate system obtained by Clarke transformation under each sampling period. Axial components, Indicates the first k The grid-side current in the two-phase stationary coordinate system obtained by Clarke transformation under each sampling period. Axial components; Step 2.2: From equation (5), we obtain the first... k Inverter discrete prediction model with +1 sampling period: (5) In equation (5), For the first k The current prediction value on the inverter side under +1 sampling period, These are the discrete state matrix, discrete switch input matrix, and discrete network-side voltage input matrix, respectively, and we have: (6).
[0008] Furthermore, step 3 includes: Step 3.1: Obtain the inverter-side output power in the kth sampling period using equation (7): (7) In equation (7), and These are the output active power and output reactive power of the inverter side in the kth sampling period, respectively. Step 3.2: Obtain the meshing angular frequency in the kth sampling period using equation (8). Phase angle of the network and the grid voltage amplitude command in the kth sampling period : (8) In equation (8), Let be the meshing angular frequency in the (k-1)th sampling period. When k=1, let... ; The rated angular frequency, and These are the set active power command value and reactive power command value, respectively. Let be the phase angle of the network in the k-th sampling period. When k=1, let ; Let J be the initial phase angle of the inverter's internal voltage, J be the virtual inertia coefficient, and D be the damping coefficient. This is the rated voltage amplitude. m and n These are the active power droop coefficient and the reactive power droop coefficient, respectively.
[0009] Furthermore, in step 4, the current command value for the kth sampling period is obtained from equation (9): (9) In equation (9), and They are respectively under the kth sampling period Shaft current reference value and Shaft current reference value, For virtual resistance, This is a virtual inductance.
[0010] Furthermore, in step 5, the candidate switch state combinations of the three-phase bridge arms in the k-th sampling period are defined as follows: ,in, This indicates the j-th candidate switch state of the three-phase bridge arm during the k-th sampling period; Using equation (5), we can obtain the (k+1)th sampling period. j Predicted current values for candidate switching states ,in, For the (k+1)th sampling period, the first... j Candidate switch states Predicted shaft current value; For the (k+1)th sampling period, the first... j Candidate switch states Predicted shaft current value.
[0011] Furthermore, in step 6, the economic value corresponding to the j-th candidate switching state in the k-th sampling period is obtained from equation (10). : (10) In equation (10), This is the weighting coefficient for the current tracking error. The weighting coefficient for the number of switch state changes. For the kth sampling period, the th j In the candidate switch states x Phase bridge arm switch status, The actual applied force during the (k-1)th sampling period x The switching state of the phase bridge arm, when k=1, is set as follows: .
[0012] Furthermore, in step 7, the economic costs of the eight candidate switch states in the k-th sampling period are compared to determine the sequence number of the candidate switch state with the minimum economic cost in the k-th sampling period. The optimal switching state in the kth sampling period is obtained by equation (11). : (11) In equation (11), For the kth sampling period, the th Candidate switch states.
[0013] The present invention provides an electronic device, including a memory and a processor, characterized in that the memory is used to store a program that supports the processor in executing the method, and the processor is configured to execute the program stored in the memory.
[0014] The present invention provides a computer-readable storage medium on which a computer program is stored, characterized in that the computer program is executed by a processor to perform the steps of the method.
[0015] Compared with the prior art, the beneficial effects achieved by the present invention are: 1. This invention proposes a grid-based strategy that combines virtual synchronous generator control with model predictive control, providing virtual inertia and damping for the inverter, and achieving active support for grid frequency and voltage. 2. This invention adds a penalty term for the change in switching state to the economic cost function, which limits the operating frequency of the power switching transistors and directly reduces the switching losses of the inverter. 3. This invention uses a discrete prediction model to directly control transient current, replacing the PI control structure in the traditional voltage and current dual closed loop, thereby improving the dynamic response speed of the system during power surges or grid disturbances. 4. This invention improves the output impedance characteristics of the inverter by introducing a virtual impedance mechanism to modify the current reference value, thereby enhancing the system's overcurrent suppression capability and robustness under grid voltage sag conditions. Attached Figure Description
[0016] Figure 1 This is the main circuit topology and overall control block diagram of the present invention; Figure 2 This is a control structure diagram for a grid-type virtual synchronous generator. Figure 3 This is a diagram of the virtual impedance control structure. Figure 4 Power waveforms for each algorithm for grid-side voltage sag; Figure 5 Power waveforms for each algorithm for frequency drop on the network side; Figure 6 Weighting coefficients Comparison of average switching frequencies at different times; Figure 7 This is a diagram of gate-level signals. Detailed Implementation
[0017] The specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0018] In this embodiment, a grid-connected inverter control method based on economic model predictive control combines virtual synchronous generator control, virtual impedance control, and model predictive control, and introduces a switching action penalty term into the cost function for economic optimization control. This method can achieve fast and high-precision tracking of transient currents without complex PI parameter tuning, reducing inverter switching losses and providing good active support for voltage and frequency in weak grid conditions. The method is carried out according to the following steps: Step 1, as follows Figure 1 A two-level grid-connected inverter system includes: a DC power supply, a three-phase full-bridge inverter, a filter inductor L, the equivalent parasitic resistance R of the filter inductor, a parallel filter capacitor C, and an AC power grid. The three-phase full-bridge inverter consists of three arms, with the upper and lower power switching devices of each arm operating complementaryly to sample the DC side voltage. Sample the current on the inverter side. Sample the output voltage on the inverter side Voltage on the sampling network side Current on the sampling network side The three-phase AC sampling quantities are transformed from the three-phase coordinate system to the two-phase stationary coordinate system. After the transformation, the corresponding two-phase stationary coordinate system components are obtained: the inverter side current. Output voltage on the inverter side Voltage on the grid side Current on the grid side The model expression for a two-level grid-type inverter system is given by equation (1): (1) In equation (1), In a two-phase stationary coordinate system t The current on the inverter side at any given time, and , express t The current on the inverter side at any given moment is obtained in the two-phase stationary coordinate system using Clarke transformation. Axial components, express t The current on the inverter side at any given moment is obtained in the two-phase stationary coordinate system using Clarke transformation. Axial component, T denotes transpose; for The first derivative, In a two-phase stationary coordinate system t The output voltage on the inverter side at any given time, and , express t The inverter-side output voltage in two-phase stationary coordinates obtained by Clarke transformation Axial components, express t The inverter-side output voltage in two-phase stationary coordinates obtained by Clarke transformation Axial components, Represents a two-phase stationary coordinate system t The grid-side voltage at time , and , express t The two-phase stationary coordinate system obtained by Clarke transformation of the grid-side voltage at time Axial components, express t The two-phase stationary coordinate system obtained by Clarke transformation of the grid-side voltage at time The axial component, R is resistance, and L is inductance. In this embodiment, we take... , And: (2) In equation (2), for t DC voltage at time t, for t The state of the three-phase bridge arm switches of the inverter is measured at any given time. In this embodiment, the state of the three-phase bridge arm switches is taken as... And: (3) In equation (3), , For phase a, the upper and lower bridge arms, For phase b, the upper and lower bridge arms, For the upper and lower arms of phase C; , , They are respectively t The status of the A-phase, B-phase, and C-phase bridge arm switches of the inverter at any given time.
[0019] Step 2: Based on the model expression, establish a discrete prediction model for the inverter in a two-phase stationary coordinate system; Step 2.1, for Discretization is performed so that And from equation (4) we obtain the first... k A vector for each sampling period, where, The sampling period is taken in this embodiment. , k This is the sequence number of the sampling period; (4) In equation (4), For the first k The current value on the inverter side during each sampling period. Indicates the first k The inverter-side current under Clarke transformation in two-phase stationary coordinates during each sampling period Axial components, Indicates the first k The inverter-side current under Clarke transformation in two-phase stationary coordinates during each sampling period Axial components, For the first k The state of the three-phase bridge arm switches under each sampling period , , The first k The switching states of the inverter's phase a, phase b, and phase c bridge arms under each sampling cycle. For the first k Grid-side voltage under each sampling period Indicates the first k The grid-side voltage in the two-phase stationary coordinate system obtained by Clarke transformation under each sampling period. Axial components, Indicates the firstk The grid-side voltage in the two-phase stationary coordinate system obtained by Clarke transformation under each sampling period. Axial components, For the first k DC voltage under each sampling period In a two-phase stationary coordinate system t The current on the grid side at any given time, and express t The two-phase stationary coordinate system obtained by Clarke transformation of the grid-side current at time step Axial components, express t The two-phase stationary coordinate system obtained by Clarke transformation of the grid-side current at time step Axial components, For the first k The grid-side current is measured in one sampling cycle. Indicates the first k The grid-side current in the two-phase stationary coordinate system obtained by Clarke transformation under each sampling period. Axial components, Indicates the first k The grid-side current in the two-phase stationary coordinate system obtained by Clarke transformation under each sampling period. Axial components.
[0020] Step 2.2: From equation (5), we obtain the first... k Inverter discrete prediction model with +1 sampling period: (5) In equation (5), For the first k The current prediction value on the inverter side under +1 sampling period, These are the discrete state matrix, discrete switch input matrix, and discrete network-side voltage input matrix, respectively, and we have: (6) Step 3: Based on the inverter discrete prediction model, calculate the output power, and obtain the grid angular frequency, grid phase angle, and grid voltage amplitude commands through virtual synchronous generator control; such as Figure 2 The diagram shown is a control structure diagram of a grid-type virtual synchronous generator.
[0021] Step 3.1: Obtain the inverter-side output power in the kth sampling period using equation (7): (7) In equation (7), and These represent the active power and reactive power output of the inverter side during the kth sampling period, respectively.
[0022] Step 3.2: Obtain the meshing angular frequency in the kth sampling period using equation (8). Phase angle of the network and the grid voltage amplitude command in the kth sampling period : (8) In equation (8), Let be the meshing angular frequency in the (k-1)th sampling period. When k=1, let... ; The rated angular frequency, and These are the set active power command value and reactive power command value, respectively. Let be the phase angle of the network in the k-th sampling period. When k=1, let ; Let J be the initial phase angle of the inverter's internal voltage, J be the virtual inertia coefficient, and D be the damping coefficient. This is the rated voltage amplitude. m and n These are the active power droop coefficient and the reactive power droop coefficient, respectively. In this embodiment, we take... ,Pick ,Pick Let J = 0.012, let D = 6, and let... ,Pick ,Pick n =0.02, take .
[0023] Step 4: Based on the network angular frequency, network phase angle, and network voltage amplitude commands, calculate the current reference values in the two-phase stationary coordinate system using virtual impedance control; for example... Figure 3 The diagram shows the virtual impedance control structure. The current command value for the kth sampling period can be obtained from equation (9): (9) In equation (9), and They are respectively under the kth sampling period Shaft current reference value and Shaft current reference value, For virtual resistance, It is a virtual inductor; in this embodiment, it is taken as... ,Pick .
[0024] Step 5: Based on the current reference value, generate eight candidate switching states and calculate the predicted current corresponding to each candidate switching state; define the candidate switching state combination of the three-phase bridge arm in the k-th sampling period as follows: ,in, This represents the j-th candidate switch state of the three-phase bridge arm during the k-th sampling period.
[0025] In this embodiment, the eight candidate switch states are [0,0,0], [0,0,1], [0,1,0], [0,1,1], [1,0,0], [1,0,1], [1,1,0], and [1,1,1]. Equation (5) is used to obtain the k+1th sampling period. j Predicted current values for candidate switching states ,in, For the (k+1)th sampling period, the first... j Candidate switch states Predicted shaft current value; For the (k+1)th sampling period, the first... j Candidate switch states Predicted shaft current value.
[0026] Step 6: Calculate the economic cost based on the deviation between the current reference value and the predicted current, as well as the change in each candidate switch state; obtain the economic cost corresponding to the j-th candidate switch state in the k-th sampling period using equation (10). : (10) In equation (10), This is the weighting coefficient for the current tracking error. The weighting coefficient for the number of switch state changes. For the kth sampling period, the th j In the candidate switch states x Phase bridge arm switch status, The actual applied force during the (k-1)th sampling period x The switching state of the phase bridge arm, when k=1, is set as follows: In this embodiment, take ,Pick .
[0027] Step 7: Select the candidate switch state with the lowest economic cost as the optimal switch vector and output the drive signal; compare the economic costs of the eight candidate switch states in the k-th sampling period to determine the sequence number of the candidate switch state with the lowest economic cost in the k-th sampling period. The optimal switching state in the kth sampling period is obtained by equation (11). : (11) In equation (11), For the kth sampling period, the th Candidate switch states.
[0028] In this embodiment, an electronic device includes a memory and a processor. The memory stores a program that supports the processor in executing the above-described method, and the processor is configured to execute the program stored in the memory.
[0029] In this embodiment, a computer-readable storage medium stores a computer program, which is executed by a processor to perform the steps of the above method.
[0030] In summary, this invention generates commands for grid angular frequency, grid phase angle, and grid voltage amplitude through virtual synchronous generator control, obtains current reference values through virtual impedance control, and predicts current under eight candidate switching states using an inverter discrete prediction model. Based on this, an economic cost function is constructed by comprehensively considering the predicted current tracking error and the amount of switching state changes, selecting the candidate switching state with the lowest economic cost and outputting the corresponding drive signal. Therefore, this invention can improve transient current tracking capability while enabling the inverter to actively construct voltage and frequency, and reduce the number of switching state changes between adjacent sampling periods, thereby helping to reduce the average switching frequency and related switching losses of power devices.
[0031] To demonstrate the beneficial effects of this invention, various simulation tests were conducted in Matlab / Simulink.
[0032] Figure 4 The graph shows the power waveforms of various control algorithms when the grid-side voltage drops by 20% within 1-2 seconds. The horizontal axis represents the total time (3 seconds), and the vertical axis represents the power value. Active power is measured in W, and reactive power is measured in Var. During the 0-1 second startup phase, compared to the active power overshoot of PI control and the response lag of traditional predictive control, the method of this invention (red dashed line) can quickly track the power command with minimal overshoot. Its reactive power remains at the corresponding support level during the voltage drop and returns to near the original steady state after the voltage recovers. During the 1-2 second voltage drop and the 2-3 second voltage recovery, the other three algorithms all exhibit severe power transient changes and oscillations. The method of this invention, by introducing virtual impedance, effectively suppresses the transient impact caused by grid disturbances, resulting in minimal power fluctuations and the fastest recovery to steady state. This verifies the system's anti-disturbance capability and robustness under fault conditions.
[0033] Figure 5The graph shows the power waveforms of various control algorithms when the grid-side frequency drops by 0.2Hz in 1-2 seconds. The horizontal axis represents the total time (3 seconds), and the vertical axis represents the power value. Active power is in W, and reactive power is in Var. During the 1-2s grid-side frequency drop and the 2-3s frequency recovery period, due to the power-frequency droop characteristic of the virtual synchronous generator, the inverter actively increases active power output to support the grid frequency. Traditional PI control produces significant active power overshoot and a long recovery period during frequency abrupt changes, and reactive power exhibits obvious decoupling failure and offset. In contrast, the method of this invention (red dashed line) can smoothly and quickly provide active power support during frequency drops, and reactive power recovers to the given steady-state level after the transient, demonstrating excellent power decoupling control effect and primary frequency regulation support capability.
[0034] Figure 6 Weighting coefficients The graph compares the average switching frequencies at different times. The horizontal axis represents the total time and different operating time periods (A: 0.50-0.95 s, B: 1.10-1.80 s, C: 2.10-2.90 s, Full: 0.50-2.90 s). The vertical axis represents the 20-millisecond moving average switching frequency (Hz), the average switching frequency (Hz), and the frequency relative to the average switching frequency. The percentage (%) decrease in switching frequency. The system's average switching frequency is highest at the beginning, but after introducing a switching action penalty term, the system's average switching frequency decreases significantly; with the weighting coefficient... As the value increases, the switching frequency decreases, compared to the previous value over the entire time period (Full: 0.50-2.90 s). It can achieve a reduction of approximately 6.8% to 8%, which directly verifies the effectiveness of the present invention in introducing a penalty term for switching state changes. It proves that the method can significantly reduce the average switching frequency and operating losses of the inverter without sacrificing the dynamic performance of the system.
[0035] Figure 7 This is a comparison graph of the upper arm gate-level signals between traditional model predictive control and the economic model predictive control of this invention within a local time period of 1.2s to 1.24s. The horizontal axis represents time (s), and the vertical axis represents the upper arm gate-level signals (including the three-phase switch states). As can be seen from the figure, compared with traditional model prediction methods, the economic model prediction method proposed in this invention effectively suppresses the frequent switching of three-phase power switches after introducing a penalty term for switching state changes, and the switching action is smoother. This directly verifies the superiority of this method in reducing the number of switching operations and reducing switching losses.
Claims
1. A control method for a grid-type inverter based on economic model predictive control, characterized in that, include: Step 1: Set up a two-level grid-connected inverter system, including: DC power supply, three-phase full-bridge inverter, three-phase LC filter, parasitic resistance, and AC grid; construct the model expression of the two-level grid-connected inverter system. Step 2: Based on the model expression, establish a discrete prediction model for the inverter in a two-phase stationary coordinate system; Step 3: Based on the inverter discrete prediction model, calculate the output power, and obtain the grid angular frequency, grid phase angle and grid voltage amplitude commands through virtual synchronous generator control; Step 4: Calculate the current reference value in the two-phase stationary coordinate system based on the network angular frequency, network phase angle, and network voltage amplitude commands through virtual impedance control. Step 5: Based on the current reference value, generate eight candidate switch states and calculate the predicted current corresponding to each candidate switch state. Step 6: Calculate the economic cost based on the deviation between the current reference value and the predicted current, as well as the change in the state of each candidate switch. Step 7: Select the candidate switch state with the lowest economic cost as the optimal switch vector and output the drive signal.
2. The grid-type inverter control method based on economic model predictive control according to claim 1, characterized in that, Step 1 involves using equation (1) to construct the model expression for a two-level grid-type inverter system: (1) In equation (1), In a two-phase stationary coordinate system t The current on the inverter side at any given time, and , express t The current on the inverter side at any given moment is obtained in the two-phase stationary coordinate system using Clarke transformation. Axial components, express t The current on the inverter side at any given moment is obtained in the two-phase stationary coordinate system using Clarke transformation. Axial component, T denotes transpose; for The first derivative, In a two-phase stationary coordinate system t The output voltage on the inverter side at any given time, and , express t The inverter-side output voltage in two-phase stationary coordinates obtained by Clarke transformation Axial components, express t The inverter-side output voltage in two-phase stationary coordinates obtained by Clarke transformation Axial components, Represents a two-phase stationary coordinate system t The grid-side voltage at time , and , express t The two-phase stationary coordinate system obtained by Clarke transformation of the grid-side voltage at time Axial components, express t The two-phase stationary coordinate system obtained by Clarke transformation of the grid-side voltage at time The axial components are R (resistance) and L (inductance), and we have: (2) In equation (2), for t DC voltage at time t, for t The status of the three-phase bridge arm switches of the inverter at all times, and has, (3) In equation (3), , For phase a, the upper and lower bridge arms, For phase b, the upper and lower bridge arms, For the upper and lower arms of phase C; , , They are respectively t The status of the A-phase, B-phase, and C-phase bridge arm switches of the inverter at any given time.
3. The grid-type inverter control method based on economic model predictive control according to claim 2, characterized in that, Step 2 includes: Step 2.1, for Discretization is performed so that And from equation (4) we obtain the first... k A vector for each sampling period, where, The sampling period is k This is the sequence number of the sampling period; (4) In equation (4), For the first k The current value on the inverter side during each sampling period. Indicates the first k The inverter-side current under Clarke transformation in two-phase stationary coordinates during each sampling period Axial components, Indicates the first k The inverter-side current under Clarke transformation in two-phase stationary coordinates during each sampling period Axial components, For the first k The state of the three-phase bridge arm switches under each sampling period , , The first k The switching states of the inverter's phase a, phase b, and phase c bridge arms under each sampling cycle. For the first k Grid-side voltage under each sampling period Indicates the first k The grid-side voltage in the two-phase stationary coordinate system obtained by Clarke transformation under each sampling period. Axial components, Indicates the first k The grid-side voltage in the two-phase stationary coordinate system obtained by Clarke transformation under each sampling period. Axial components, For the first k DC voltage under each sampling period In a two-phase stationary coordinate system t The current on the grid side at any given time, and express t The two-phase stationary coordinate system obtained by Clarke transformation of the grid-side current at time step Axial components, express t The two-phase stationary coordinate system obtained by Clarke transformation of the grid-side current at time step Axial components, For the first k The grid-side current is measured in one sampling cycle. Indicates the first k The grid-side current in the two-phase stationary coordinate system obtained by Clarke transformation under each sampling period. Axial components, Indicates the first k The grid-side current in the two-phase stationary coordinate system obtained by Clarke transformation under each sampling period. Axial components; Step 2.2: From equation (5), we obtain the first... k Inverter discrete prediction model with +1 sampling period: (5) In equation (5), For the first k The current prediction value on the inverter side under +1 sampling period, These are the discrete state matrix, discrete switch input matrix, and discrete network-side voltage input matrix, respectively, and we have: (6)。 4. The grid-type inverter control method based on economic model predictive control according to claim 3, characterized in that, Step 3 includes: Step 3.1: Obtain the inverter-side output power in the kth sampling period using equation (7): (7) In equation (7), and These are the output active power and output reactive power of the inverter side in the kth sampling period, respectively. Step 3.2: Obtain the meshing angular frequency in the kth sampling period using equation (8). Phase angle of the network and the grid voltage amplitude command in the kth sampling period : (8) In equation (8), Let be the meshing angular frequency in the (k-1)th sampling period. When k=1, let... ; The rated angular frequency, and These are the set active power command value and reactive power command value, respectively. Let be the phase angle of the network in the k-th sampling period. When k=1, let ; Let J be the initial phase angle of the inverter's internal voltage, J be the virtual inertia coefficient, and D be the damping coefficient. This is the rated voltage amplitude. m and n These are the active power droop coefficient and the reactive power droop coefficient, respectively.
5. The grid-type inverter control method based on economic model predictive control according to claim 4, characterized in that, In step 4, the current command value for the kth sampling period is obtained from equation (9): (9) In equation (9), and They are respectively under the kth sampling period Shaft current reference value and Shaft current reference value, For virtual resistance, This is a virtual inductance.
6. The grid-type inverter control method based on economic model predictive control according to claim 5, characterized in that, In step 5, the candidate switch state combinations of the three-phase bridge arms in the k-th sampling period are defined as follows: ,in, This indicates the j-th candidate switch state of the three-phase bridge arm during the k-th sampling period; Using equation (5), we can obtain the (k+1)th sampling period. j Predicted current values for candidate switching states ,in, For the (k+1)th sampling period, the first... j Candidate switch states Predicted shaft current value; For the (k+1)th sampling period, the first... j Candidate switch states Predicted shaft current value.
7. The grid-type inverter control method based on economic model predictive control according to claim 6, characterized in that, In step 6, the economic cost corresponding to the j-th candidate switching state in the k-th sampling period is obtained by equation (10). : (10) In equation (10), This is the weighting coefficient for the current tracking error. The weighting coefficient for the number of switch state changes. For the kth sampling period, the th j In the candidate switch states x Phase bridge arm switch status, The actual application during the (k-1)th sampling period x The switching state of the phase bridge arm, when k=1, is set as follows: .
8. The grid-type inverter control method based on economic model predictive control according to claim 7, characterized in that, In step 7, the economic costs of the eight candidate switch states in the k-th sampling period are compared to determine the sequence number of the candidate switch state with the minimum economic cost in the k-th sampling period. The optimal switching state in the kth sampling period is obtained by equation (11). : (11) In equation (11), For the kth sampling period, the th Candidate switch states.
9. An electronic device, comprising a memory and a processor, characterized in that, The memory is used to store a program that enables the processor to perform the method of any one of claims 1-8, and the processor is configured to execute the program stored in the memory.
10. A computer-readable storage medium storing a computer program thereon, characterized in that, The steps of the method of any one of claims 1-8 are executed by a computer program when it is run by a processor.
