Microgrid inverter control method and system based on segmented model predictive control strategy
By adopting segmented model prediction control strategy, segmented prediction technology and segmented prediction current model in microgrid inverter control, the problem of low prediction accuracy of traditional single-step model prediction controllers is solved, and the dynamic and stable microgrid is improved state performance ensures high power quality.
Patent Information
- Application Number
- CN202210412241.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-19
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-04-19
AI Technical Summary
Traditional single-step model prediction controllers have low prediction accuracy and poor control performance in microgrid inverter control, making it difficult to meet high performance needs.
A prediction control strategy based on segmented model is adopted, and the segmented prediction current model is constructed using segmented prediction technology to select the optimal control voltage vector to improve prediction accuracy and control performance.
The dynamic and steady-state performance of microgrid inverter control is improved, high power quality is ensured, and the prediction accuracy reduction caused by excessive control period in traditional model prediction control methods is broken.
Smart Images

Figure CN114825433B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of microgrid inverter control, and in particular to a microgrid inverter control method and system based on a segmented model predictive control strategy. Background Art
[0002] In order to solve the problems of environmental pollution and energy shortage caused by the large-scale use of fossil energy, the development and application of new energy sources such as solar energy, wind energy, tidal energy and geothermal energy are the current research hotspots. The use of new energy requires the use of power generation equipment to convert it into electrical energy, and form a microgrid system with energy storage equipment and local loads, and can provide energy support to the large power grid through grid-connected technology. On the power generation side of the microgrid, in order to ensure the quality of power, it is first necessary to convert the output voltage of the power generation equipment into a constant bus voltage through AC-DC or DC-DC conversion technology, and then use power electronic inverters to convert DC into AC form to match the needs of the load and the large power grid. In this process, the inverter control algorithm is a key factor in ensuring the quality of power.
[0003] Traditional microgrid inverter control methods include droop control, virtual synchronous motor control and constant voltage and frequency control. Droop control takes active power and reactive power as the adjustment targets. It is an open-loop control algorithm with fast response speed. The control performance is easily affected by load fluctuations and cannot provide frequency support for microgrids. Virtual synchronous motor is a dual-loop control structure. The outer loop uses a frequency-power droop controller to adjust the frequency. The inner loop simulates the synchronous generator rotor motion equation and introduces two virtual control parameters, damping and inertia, to adjust the active power. It can effectively reduce the system response speed and improve the frequency stability, but it cannot eliminate the steady-state error. Traditional constant voltage and frequency control takes rated voltage, rated frequency and current as the control targets, and uses four proportional integral (PI) controllers to achieve closed-loop control, which can eliminate the voltage and frequency steady-state errors. At the same time, due to the delay effect of the PI controller, it can reduce the frequency response speed of the inverter, but the PI controller parameter design is complex and it is difficult to meet the optimal control requirements.
[0004] In order to overcome the defects of PI controllers, model predictive controllers that do not require complex parameter correction have been widely used in microgrid inverter control. Liu Zhijian et al. proposed a solution in the literature "Finite Set Model Predictive Control of Photovoltaic Storage Microgrid Inverter" to use a single-step model predictive controller to replace the two current PI controllers in the traditional constant voltage and frequency control method, reducing the number of PI controllers and reducing the complexity of parameter correction. This model predictive controller uses an integer multiple of the control cycle as the prediction step length, which is a typical application method of the model predictive control strategy in the field of microgrids and even the entire power system. However, in practical applications, affected by the power level of the microgrid and the characteristics of the inverter power electronic devices, the model predictive control frequency is usually designed to be relatively low, and the control cycle becomes longer. Considering that the model predictive control algorithm needs to be locally linearized during execution, a long control cycle will reduce the prediction accuracy of the single-step model predictive control method, thereby affecting the steady-state and dynamic control performance of the microgrid system. At present, how to improve the model predictive control algorithm to meet the high-performance control requirements of the microgrid is an important research topic in this field.
[0005] Therefore, the low prediction accuracy and poor control performance of the traditional single-step model predictive controller in microgrid inverter control applications have become technical problems that need to be urgently solved by technical personnel in this field. Summary of the invention
[0006] The present invention provides a microgrid inverter control method and system based on a segmented model predictive control strategy, which is used to solve the technical problems of low prediction accuracy and poor control performance of traditional single-step model predictive controllers in microgrid inverter control applications.
[0007] In order to solve the above technical problems, the technical solution proposed by the present invention is:
[0008] A microgrid inverter control method based on a segmented model predictive control strategy comprises the following steps:
[0009] The control period T s Divide into n segments equally, with T s / n is the prediction step length, and a segmented prediction current model is constructed: the dq axis voltage and dq axis current on the AC side of the microgrid are used as the initial state values, the output voltage vector of the microgrid inverter is used as the input, and the predicted state of the next prediction step of the microgrid is used as the output;
[0010] Acquire the dq axis voltage and dq axis current of the AC side of the microgrid, and use the dq axis voltage and dq axis current as the initial state values, and sequentially input multiple candidate voltage vectors that can be output by the inverter into the segmented prediction current model as the output voltage of the inverter, and predict the prediction states corresponding to the multiple candidate voltage vectors;
[0011] Determine the reference dq-axis current on the AC side of the microgrid, and construct a cost function based on the reference dq-axis current, input the predicted states corresponding to multiple candidate voltage vectors into the cost function in sequence, obtain the cost function values corresponding to the multiple candidate voltage vectors, compare and select the candidate voltage vector that minimizes the cost function value as the optimal control voltage, and use the switch state corresponding to the voltage vector as a control signal to drive the power electronic devices in the inverter.
[0012] Preferably, the segmented prediction current model is:
[0013]
[0014] Among them, i d ,i q are the d-axis current and q-axis current of the AC side of the microgrid respectively; u d ,u q are the d-axis voltage and q-axis voltage of the AC side of the microgrid respectively; L f , L l , R f , R l They are the filter inductance of the microgrid, the transmission cable inductance, the filter resistance and the transmission cable resistance, e d and e q is the output voltage of the inverter; k is the sampling step.
[0015] Preferably, the segmented prediction current model is obtained by discretizing a microgrid dynamic characteristic model, wherein the microgrid dynamic characteristic model is:
[0016]
[0017] Preferably, the selected voltage vector that can be output by the inverter is obtained according to the following formula:
[0018]
[0019] Among them, U dc is the DC bus voltage of the microgrid, [s a ,s b ,s c ] T is the switch state corresponding to the selected voltage vector, s a ,s b ,s c are the switching states of the three phases, is the real-time voltage phase of the microgrid, U dc is the DC bus voltage.
[0020] Preferably, the reference dq axis current includes a d axis current reference value i d_ref And the q-axis current reference value iq_ref ; Determine the reference dq axis current on the AC side of the microgrid, specifically including the following steps:
[0021] Get the real-time operating frequency f and voltage phase of the AC side of the microgrid and calculating a voltage amplitude U according to the dq axis voltage;
[0022] The calibrated voltage reference value U ref The difference between the voltage amplitude U and the voltage amplitude U is input into the voltage PI controller, and the output of the PI controller is used as the d-axis current reference value i d_ref ; Set the calibrated frequency reference value f ref The difference between the real-time frequency f of the microgrid is input into the frequency PI controller, and the output of the PI controller is used as the q-axis current reference value i q_ref .
[0023] Preferably, the cost function is:
[0024] J=|i d_ref -i d (k+1)|+|i q_ref -i q (k+1)|
[0025] Among them, J is the cost function value, i d (k+1),i q (k+1) are the d-axis current value and the q-axis current in the prediction state of the next prediction step, respectively.
[0026] Preferably, the voltage amplitude U is calculated according to the dq axis voltage by the following formula:
[0027]
[0028] Preferably, obtaining the dq axis voltage and dq axis current on the AC side of the microgrid includes the following steps:
[0029] Collect the three-phase voltage U on the AC side of the microgrid a ,U b ,U c and three-phase current I a ,I b ,I c The dq axis voltage and dq axis current on the AC side of the microgrid are calculated using the following formula:
[0030]
[0031] A computer system comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the above method are implemented when the processor executes the computer program.
[0032] The present invention has the following beneficial effects:
[0033] 1. The microgrid inverter control method and system based on the segmented model predictive control strategy in the present invention, through the control period segmentation technology and segmented prediction technology, breaks through the limitation of the traditional model predictive control method that uses an integer multiple of the control period as the prediction step, solves the problem of reduced prediction accuracy of the model predictive control algorithm in the microgrid inverter control application due to the long control period, improves the overall dynamic performance and steady-state performance of the microgrid inverter control method, and can ensure that the microgrid has a higher power quality.
[0034] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0036] Figure 1 It is a structural diagram of a microgrid inverter control system based on a segmented model predictive control strategy of the present invention;
[0037] Figure 2 It is a structural diagram of a three-phase phase-locked loop of the present invention. DETAILED DESCRIPTION
[0038] The embodiments of the present invention are described in detail below with reference to the accompanying drawings, but the present invention can be implemented in many different ways as defined and covered by the claims.
[0039] Embodiment 1:
[0040] This embodiment discloses a microgrid inverter control method based on a segmented model predictive control strategy, comprising the following steps:
[0041] The control period T s Divide into n segments equally, with T s / n is the prediction step length, and a segmented prediction current model is constructed: the dq axis voltage and dq axis current on the AC side of the microgrid are used as the initial state values, the output voltage vector of the microgrid inverter is used as the input, and the predicted state of the next prediction step of the microgrid is used as the output;
[0042] Acquire the dq axis voltage and dq axis current of the AC side of the microgrid, and use the dq axis voltage and dq axis current as the initial state values, and sequentially input multiple candidate voltage vectors that can be output by the inverter into the segmented prediction current model as the output voltage of the inverter, and predict the prediction states corresponding to the multiple candidate voltage vectors;
[0043] Determine the reference dq-axis current on the AC side of the microgrid, and construct a cost function based on the reference dq-axis current, input the predicted states corresponding to multiple candidate voltage vectors into the cost function in sequence, obtain the cost function values corresponding to the multiple candidate voltage vectors, compare and select the candidate voltage vector that minimizes the cost function value as the optimal control voltage, and use the switch state corresponding to the voltage vector as a control signal to drive the power electronic devices in the inverter.
[0044] In addition, in this embodiment, a computer system is also disclosed, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
[0045] The microgrid inverter control method and system based on the segmented model predictive control strategy in the present invention, through the control period segmentation technology and segmented prediction technology, breaks through the limitation of the traditional model predictive control method that uses an integer multiple of the control period as the prediction step length, solves the problem of reduced prediction accuracy of the model predictive control algorithm in the microgrid inverter control application due to the long control period, improves the overall dynamic performance and steady-state performance of the microgrid inverter control method, and can ensure that the microgrid has a higher power quality.
[0046] Embodiment 2:
[0047] Embodiment 2 is a preferred embodiment of Embodiment 1. The difference between Embodiment 2 and Embodiment 1 is that the specific steps of the microgrid inverter control method based on the segmented model predictive control strategy are introduced, which specifically includes the following steps:
[0048] In the application of microgrid inverter control, the constant voltage and frequency control method can eliminate the steady-state errors of voltage and frequency and ensure that the microgrid has high power quality. However, the traditional constant voltage and frequency control scheme based on PI controller has the disadvantage of complex parameter correction, while the use of model predictive controller can reduce the complexity of parameter correction. The traditional model predictive control method calculates the future state with an integer multiple of the control cycle as the prediction step, but for microgrids, the system power and working current are large. In this case, according to the working characteristics of power electronic devices, the control cycle of the system should be designed to be relatively long, resulting in low prediction accuracy of the traditional model predictive control method, affecting the dynamic and steady-state performance of the microgrid.
[0049] Theoretically, when executing the model predictive control algorithm, each control cycle is segmented and local linearization and predictive calculation operations are performed in each segment. This can reduce the problem of reduced prediction accuracy caused by too long a control cycle. However, this method has not yet attracted attention. At present, the proposal and application of this segmented model predictive control method has important theoretical and practical value for improving prediction accuracy and microgrid control performance.
[0050] In order to improve the prediction accuracy of the model predictive control method and improve the control performance of the microgrid, the present invention proposes an inverter control method based on a segmented model predictive control strategy, such as Figure 1 The rated parameters of the microgrid to be analyzed in this embodiment are: rated frequency f N =50Hz, rated voltage amplitude U N =311V, rated DC bus voltage U dc =800V; control parameters are: control period T s =0.001s, control cycle segment n = 2. The inverter control method based on the segmented model predictive control strategy is specifically implemented as follows:
[0051] Step 1: Calculation of frequency, voltage and current phase on the AC side of the microgrid
[0052] Use voltage and current sensors to collect the three-phase voltage U on the AC side of the microgrid a ,U b ,U c and three-phase current I a ,I b ,I c ,use Figure 2 The three-phase phase-locked loop shown in U a ,U b ,U c Extract the real-time operating frequency f and voltage phase φ of the microgrid;
[0053] Step 2: Voltage and Current Calculation
[0054] First, according to the following formula, using the three-phase voltage information U a ,U b ,U c Calculate the dq axis voltage u by using the voltage phase d ,u q :
[0055]
[0056] Next, according to the following formula, using the three-phase current information I a ,I b ,I c Calculate the dq axis current i by using the voltage phase d ,iq :
[0057]
[0058] Finally, according to the following formula, using the dq axis voltage u d ,u q Calculate the voltage amplitude U:
[0059]
[0060] Step 3: Frequency and Voltage Adjustment
[0061] Set the frequency reference value f ref =f N =50, and calculate the frequency reference value f ref The error between the real-time frequency f and the real-time frequency f is input into the frequency PI controller, and the output result calculated by the frequency PI controller is used as the q-axis current reference value i q_ref At the same time, set the voltage reference value U ref =U N =311, and calculate the frequency reference value U ref The error between the real-time voltage U and the real-time voltage U is input into the voltage PI controller, and the output result calculated by the voltage PI controller is used as the d-axis current reference value i d_ref ;
[0062] Step 4: Design a segmented prediction current model
[0063] The control period T s = 0.001 is divided into n = 2 segments, each segment is T s / 2=0.0005,with T s / 2 is the prediction step length, and the segmented prediction current model of the microgrid is established:
[0064]
[0065] Among them, L f , L l , R f , R l They are the filter inductance of the microgrid, the transmission cable inductance, the filter resistance and the transmission cable resistance, e d and e q is the output voltage of the inverter;
[0066] Step 5: Predict the future state of current
[0067] The dq axis current i calculated in the second step d ,i q and voltage u d ,u qAs the initial state value i in the segmented prediction current model d (k), i q (k),u d (k) and u q (k), the seven voltage vectors that the inverter can output 000 ,e 100 ,e 110 ,e 010 ,e 011 ,e 001 and e 101 As e d (k), e q (k), calculate seven sets of future states i d (k+1 / 2),i q (k+1 / 2),i d (k+1),i q (k+1);
[0068] Step 6: Select the optimal voltage vector and generate control signals
[0069] The seven future states i corresponding to the seven voltage vectors d (k+1), i q (k+1) and i d_ref ,i q_ref Substitute into the cost function respectively:
[0070] J=|i d_ref -i d (k+1)|+|i q_ref -i q (k+1)|
[0071] The voltage vector that minimizes the cost function J is compared and selected as the optimal control voltage, and the switch state corresponding to the voltage vector is used as a control signal to drive the power electronic devices in the inverter.
[0072] In this embodiment, the segmented prediction current model in the fourth step is the result of discretizing the microgrid dynamic characteristic model, wherein the microgrid dynamic characteristic model is:
[0073]
[0074] In this embodiment, the seven voltage vectors that the inverter can output in the fifth step are obtained according to the following formulas:
[0075]
[0076] Among them, [s a ,s b ,s c ] Tare the switching states corresponding to the seven voltage vectors, which are [0,0,0] T , [1,0,0] T , [1,1,0] T , [0,1,0] T , [0,1,1] T , [0,0,1] T , [1,0,1] T .
[0077] In summary, the microgrid inverter control method based on the segmented model predictive control strategy proposed in the present invention improves the prediction accuracy through the new model predictive control strategy, thereby improving the dynamic and steady-state performance of the microgrid.
[0078] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A microgrid inverter control method based on a segmented model predictive control strategy, characterized in that: The following steps are involved: The control period T s Divide into n segments, with T s / n is the prediction step length, and a segmented prediction current model is constructed: the dq axis voltage and dq axis current on the AC side of the microgrid are used as the initial state values, the output voltage vector of the microgrid inverter is used as the input, and the predicted state of the next prediction step of the microgrid is used as the output; Acquire the dq axis voltage and dq axis current of the AC side of the microgrid, and use the dq axis voltage and dq axis current as the initial state values, and sequentially input multiple candidate voltage vectors that can be output by the inverter into the segmented prediction current model as the output voltage of the inverter, and predict the prediction states corresponding to the multiple candidate voltage vectors; Determine a reference dq axis current on the AC side of the microgrid, and construct a cost function based on the reference dq axis current, input the predicted states corresponding to multiple candidate voltage vectors into the cost function in sequence, obtain the cost function values corresponding to the multiple candidate voltage vectors, compare and select the candidate voltage vector that minimizes the cost function value as the optimal control voltage, and use the switch state corresponding to the voltage vector as a control signal to drive the power electronic device in the inverter; The segmented prediction current model is: Among them, i d ,i q are the d-axis current and q-axis current of the AC side of the microgrid respectively; u d ,u q are the d-axis voltage and q-axis voltage of the AC side of the microgrid respectively; L f , L l , R f , R l They are the filter inductance of the microgrid, the transmission cable inductance, the filter resistance and the transmission cable resistance, e d and e q is the output voltage of the inverter; k is the sampling step length; The selected voltage vector that the inverter can output is obtained according to the following formula: Among them, U dc is the DC bus voltage of the microgrid, [s a ,s b ,s c ] T is the switch state corresponding to the selected voltage vector, s a ,s b ,s c are the switching states of the three phases, is the real-time voltage phase of the microgrid, U dc is the DC bus voltage.
2. The microgrid inverter control method based on the segmented model predictive control strategy according to claim 1 is characterized in that: The segmented prediction current model is obtained by discretizing the microgrid dynamic characteristic model, wherein the microgrid dynamic characteristic model is:
3. The microgrid inverter control method based on the segmented model predictive control strategy according to claim 2 is characterized in that: The reference dq axis current includes a d axis current reference value i d_ref And the q-axis current reference value i q_ref ; Determine the reference dq axis current on the AC side of the microgrid, specifically including the following steps: Get the real-time operating frequency f and voltage phase of the AC side of the microgrid and calculating a voltage amplitude U according to the dq axis voltage; The calibrated voltage reference value U ref The difference between the voltage amplitude U and the voltage amplitude U is input into the voltage PI controller, and the output of the PI controller is used as the d-axis current reference value i d_ref ; Set the calibrated frequency reference value f ref The difference between the real-time frequency f of the microgrid is input into the frequency PI controller, and the output of the PI controller is used as the q-axis current reference value i q_ref .
4. The microgrid inverter control method based on the segmented model predictive control strategy according to claim 3 is characterized in that: The cost function is: J=|i d_ref -i d (k+1)|+|i q_ref -i q (k+1)| Among them, J is the cost function value, i d (k+1),i q (k+1) are the d-axis current value and the q-axis current in the prediction state of the next prediction step, respectively.
5. The microgrid inverter control method based on the segmented model predictive control strategy according to claim 4 is characterized in that: The voltage amplitude U is calculated according to the dq axis voltage by the following formula:
6. The microgrid inverter control method based on the segmented model predictive control strategy according to claim 4 is characterized in that: Obtaining the dq axis voltage and dq axis current on the AC side of the microgrid includes the following steps: Collect the three-phase voltage U on the AC side of the microgrid a ,U b ,U c and three-phase current I a ,I b ,I c The dq axis voltage and dq axis current on the AC side of the microgrid are calculated using the following formula:
7. A computer system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Inverter variable switching frequency modulation method considering inductor saturation characteristic
CN109510445A
