Grid-connected inverter optimal control method under noise measurement
Through the combination of voltage modulation theory and optimal control theory, the control problem of the inverter under noise and electromagnetic interference is solved, the optimal control of the inverter and the equipment is miniaturized, and the construction cost is reduced .
Patent Information
- Application Number
- CN202411071285.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional control solutions cannot effectively measure the inverter output current and grid voltage under strong electromagnetic interference, resulting in noise problems and difficulty in miniaturization.
The nonlinear system model of the inverter is simplified by voltage modulation theory, combined with the optimal control theory and the traceless Kalman filter, filtering through current sampling and the voltage observation value output by the nonlinear observer to achieve the optimal inverter Control and avoid using sensors to measure grid voltage.
The inverter with good transient response effect and electromagnetic interference suppression under measurement noise are achieved, and the equipment is miniaturized and construction costs are reduced.
Smart Images

Figure CN118971198A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electrical engineering, and in particular to an optimal control method for a grid-connected inverter under measurement noise. Background Art
[0002] With the widespread access of new energy sources to the power grid, power electronic devices have become key equipment in the process of power conversion and transmission. In order to control the power transmitted from the DC side of the inverter to the grid, it is necessary to measure the grid voltage, and in order to calculate the power, it is also necessary to measure the output current of the inverter.
[0003] Traditional control schemes cannot cope with the problem that the measured values of the measuring equipment contain a lot of noise under strong electromagnetic interference. At the same time, two sets of current and voltage sensors are required, which is not easy to miniaturize the equipment. The above problems need to be solved urgently. To this end, the present invention proposes an optimal control method for a grid-connected inverter under measurement noise. Summary of the invention
[0004] The technical problem to be solved by the present invention is: how to achieve optimal control of a grid-connected inverter under measurement noise, and provides an optimal control method for a grid-connected inverter under measurement noise. A good transient response effect can be obtained through optimal control theory without using a sensor to measure the grid voltage, and at the same time, it has a strong inhibitory effect on possible electromagnetic interference.
[0005] like Fig.14 As shown, the present invention solves the above technical problems through the following technical solutions, and the present invention comprises the following steps:
[0006] S1: Based on the grid voltage, the voltage modulation theory is used to process the nonlinear system model of the inverter, and the optimal control theory is applied to obtain the state feedback gain on the simplified linear system model for control;
[0007] S2: When the system model is known, a nonlinear observer is established, and the grid voltage is used to calculate the inverter output power; then, the current sampling and the voltage observation value output by the nonlinear observer are filtered through the unscented Kalman filter, and the filtered value is substituted into the controller to control the inverter.
[0008] Furthermore, in step S1, the relationship between the inverter output current and output voltage and the grid voltage is:
[0009]
[0010] Among them, L and R are the filter inductance and parasitic resistance respectively, i αβ 、u αβ 、e gαβThey are the inverter output current, output voltage and grid voltage in the αβ coordinate system respectively.
[0011] Furthermore, in step S1, the specific processing process is as follows:
[0012] S11: Define virtual input through voltage modulation theory and transform the nonlinear system model of the inverter into a linear system:
[0013] u P =e gα u α +e gβ u β
[0014] u Q =e gβ u α -e gα u β
[0015] Among them, u α u β 、e gα e gβ They are the inverter output voltage and grid voltage in the αβ coordinate system;
[0016] S12: The original input of the system is obtained by inversely solving the expression in step S11:
[0017]
[0018] S13: Substitute the expression in step S11 into the grid voltage relationship in the αβ coordinate system under three-phase balance and harmonic-free conditions, and organize it into a state space expression as follows:
[0019]
[0020] Among them, P and Q are the active power and reactive power output by the inverter, respectively, and ω is the angular frequency of the voltage;
[0021] S14: Decompose the system input into two parts: feedforward and feedback:
[0022] u P =u P1 +u P2
[0023] u Q =u Q1 +u Q2
[0024] Among them, u P1 with u Q1 is a feedforward term, specifically:
[0025]
[0026] S15: Substitute the expression in step S14 into the state space expression in step S13 to obtain the decoupled linear system expression:
[0027]
[0028] in:
[0029]
[0030] S16: Define the following error variables:
[0031] e P =P * -P
[0032] e Q =Q * -Q
[0033] Among them, P * , Q * are the reference signals of active power and reactive power respectively;
[0034] The derivative of the above error variable is expressed as follows:
[0035]
[0036] S17: The design performance indicators are as follows:
[0037]
[0038] Where Δ=[Δ P ,Δ Q ] T , and there are:
[0039]
[0040] Among them, a and b are parameters selected according to needs;
[0041] S18: Augment the decoupled linear system and define Then the augmented system is expressed as:
[0042]
[0043] in:
[0044]
[0045] S19: The performance index reconstructed by the corresponding augmented system is:
[0046]
[0047] in:
[0048]
[0049] S120: According to optimal control theory, is the controller input that minimizes the reconstructed performance index, K is the state feedback gain, and M is obtained by solving the Riccati equation:
[0050]
[0051] S121: The optimal input corresponding to the decoupled linear system is:
[0052]
[0053] Furthermore, in step S13, the grid voltage relationship in the αβ coordinate system under the three-phase balanced and harmonic-free conditions is:
[0054]
[0055] Furthermore, in step S2, the specific process of establishing the nonlinear observer is as follows:
[0056] S21: Define the following auxiliary systems:
[0057]
[0058] S22: Define auxiliary variable as S α =[∫i α dτ i α ] T , and its dynamic relationship is:
[0059]
[0060] S23: Then the nonlinear observer is obtained as follows:
[0061]
[0062] Among them, P(S α ) is selected as P(S α )=[λ1i α λ2i α ] T , λ1λ2 are the observer gain coefficients.
[0063] Furthermore, in step S2, the current sampling and the voltage observation value output by the nonlinear observer are filtered by an unscented Kalman filter, and the filtered value is substituted into the controller to control the inverter. The specific process is as follows:
[0064] S24: Define X α =[i α Z α ], and discretize it to get:
[0065]
[0066] S25: Define the following weight factors:
[0067]
[0068] S26: At time k, the predicted value calculated at the previous time k-1 Will replace As the output of the unscented Kalman filter, it is substituted into the expression of step S121, that is, brought into the controller.
[0069] Furthermore, in step S26, the working process of the unscented Kalman filter is as follows:
[0070] S261: Initialization
[0071] Initialize the following parameters:
[0072]
[0073] S262: Calibration
[0074] Calculate multiple Sigma points
[0075]
[0076] in, is a matrix The i-th column of the RMS;
[0077] Update the measured values:
[0078]
[0079] calculate With Y k The covariance between:
[0080]
[0081] Compute the variance of the estimate and error:
[0082]
[0083] Among them, K k is the Kalman gain, Y k is the measured value at time k;
[0084] S263: Prediction
[0085] Calculate multiple Sigma points
[0086]
[0087] Predict the state and variance of the next moment:
[0088]
[0089] Compared with the prior art, the present invention has the following advantages: the optimal control method for the grid-connected inverter under measurement noise takes the most widely used three-phase full-bridge inverter topology as the research object and adopts the optimal control theory for control; at the same time, in order to achieve the purpose of miniaturization of equipment and reduce construction costs, the nonlinear observer technology is adopted, and the given power signal can be quickly tracked without using a sensor to measure the grid voltage, and an unscented Kalman filter is adopted to deal with electromagnetic interference and current sampling errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] Figure 1 Schematic diagram of the topological structure of a three-phase grid-connected inverter in an embodiment of the present invention;
[0091] Figure 2 is an active power waveform diagram when the active power reference value changes in an embodiment of the present invention;
[0092] Figure 3 is a reactive power waveform diagram when the active power reference value changes in an embodiment of the present invention;
[0093] Figure 4 is a current waveform diagram when the active power reference value changes in an embodiment of the present invention;
[0094] Figure 5 is a voltage waveform diagram when the active power reference value changes in an embodiment of the present invention;
[0095] Figure 6 is a reactive power waveform diagram when the reactive power reference value changes in an embodiment of the present invention;
[0096] Figure 7 is an active power waveform diagram when the reactive power reference value changes in an embodiment of the present invention;
[0097] Figure 8is a current waveform diagram when the reactive power reference value changes in an embodiment of the present invention;
[0098] Fig. 9 is a voltage waveform diagram when the reactive power reference value changes in an embodiment of the present invention;
[0099] Fig.10 is an active power waveform diagram when the frequency changes in an embodiment of the present invention;
[0100] Fig.11 is a reactive power waveform diagram when the frequency changes in an embodiment of the present invention;
[0101] Fig.12 is a current waveform diagram when the frequency changes in an embodiment of the present invention;
[0102] Fig.13 is a voltage waveform diagram when the frequency changes in an embodiment of the present invention;
[0103] Fig.14 It is a flow chart of the optimal control method of the grid-connected inverter under measurement noise of the present invention. DETAILED DESCRIPTION
[0104] The following is a detailed description of an embodiment of the present invention. This embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation method and a specific operation process are given, but the protection scope of the present invention is not limited to the following embodiment.
[0105] Embodiment 1
[0106] This embodiment provides a technical solution: an optimal control method for a grid-connected inverter under measurement noise, comprising the following steps:
[0107] Step 1: Based on the grid voltage, the grid voltage modulation (GVM) theory is used to simplify the nonlinear system model of the inverter, and the optimal control theory is applied to obtain the state feedback gain on the simplified linear system model for control, while avoiding the problem that the phase-locked loop (PLL) may not respond in time;
[0108] Step 2: Using nonlinear observer technology, when the system model is known, the instantaneous value of the grid voltage can be obtained only through current sampling data, and the grid voltage is used to calculate the inverter output power; considering the possible electromagnetic interference during the current measurement process, the current sampling and the voltage observation value output by the nonlinear observer are filtered through the unscented Kalman filter, and the filtered value is substituted into the controller to obtain good noise suppression capability.
[0109] In step one, the specific processing process is as follows:
[0110] The topology of the three-phase two-level grid-connected inverter is as follows Figure 1 As shown, the relationship between the inverter output current, output voltage and grid voltage is:
[0111]
[0112] Among them, L and R are the filter inductance and parasitic resistance respectively, i αβ 、u αβ 、e gαβ They are the inverter output current, output voltage and grid voltage in the αβ coordinate system respectively.
[0113] Under the conditions of three-phase balance and no harmonics, the grid voltage in the αβ coordinate system has the following relationship:
[0114]
[0115] Among them, P and Q are the active power and reactive power output by the inverter, respectively, and ω is the angular frequency of the voltage.
[0116] It is not difficult to see that due to the grid voltage e gα 、e gβ is a time variable, and for the control input, that is, the inverter output voltage u α 、u β This is a nonlinear system and difficult to control, so we define virtual inputs through GVM to transform it into a linear system:
[0117]
[0118] The original input of the system can be obtained by inversely solving (3):
[0119]
[0120] Substituting equation (3) into equation (2), we can get the state space expression:
[0121]
[0122] It can be seen that although (5) represents a linear system, there is a coupling relationship between reactive power and active power. If the active power is adjusted, it will inevitably affect the reactive power, which is not conducive to the independent control of active power and reactive power. Therefore, the feedforward decoupling technology is introduced to eliminate the coupling relationship between active and reactive power, so that the feedback term can be conveniently designed using the optimal control theory. The system input is decomposed into two parts: feedforward and feedback:
[0123]
[0124] Among them, u P1 with u Q1 is a feedforward term, and its specific form is:
[0125]
[0126] Substituting equations (6) and (7) into (5), we can obtain the decoupled linear system expression:
[0127]
[0128] in:
[0129]
[0130] It can be seen that system (8) is a linear system, and the coupling relationship between active power and reactive power is eliminated, which is convenient for the subsequent feedback item design.
[0131] Define the error variable e P =P * -P, e Q =Q * -Q,P * , Q * They are the reference signals of active power and reactive power respectively. Since the grid generally gives the inverter instructions once every 15 minutes, they remain unchanged during the inverter adjustment process, so P * , Q * can be regarded as a constant. Therefore, the derivative of the error variable can be expressed as:
[0132]
[0133] During the inverter regulation process, we hope that the instantaneous power can quickly track the upper signal, but we do not want overshoot, so the performance index is designed as:
[0134]
[0135] Where Δ=[Δ P ,Δ Q ] T , and there are:
[0136]
[0137] Where a and b are parameters selected according to needs. The problem that the optimal control theory needs to solve is to find a set of static gains K so that the input u = -Kx can minimize the performance index (9).
[0138] It is not difficult to see that the performance index (9) has no direct connection with the decoupled simplified system (8). It is difficult to directly obtain the gain K, so it is necessary to augment the system (8). Definition Then the augmented system is expressed as:
[0139]
[0140] in:
[0141]
[0142] Then the performance index reconstructed by the augmented system (10) is:
[0143]
[0144] in:
[0145]
[0146] Although the performance indicators (9) and (11) have different forms, their values are equal. The form of (11) is adopted only for the convenience of calculation.
[0147] According to optimal control theory, is the controller input that minimizes the performance index (11). M can be obtained by solving the Riccati equation:
[0148]
[0149] Then the optimal input corresponding to system (8) is:
[0150]
[0151] In step 2, the specific processing process is as follows:
[0152] Define auxiliary systems:
[0153]
[0154] Further define an auxiliary variable as S α =[∫i α dτ i α ] T , and its dynamic relationship is:
[0155]
[0156] According to (13) and (14), the observer model is established:
[0157]
[0158] Among them, P(S α ) is selected as P(S α )=[λ1i α λ2iα ] T ,at the same time λ1λ2 are the observer gain coefficients.
[0159] Since the inverter is often subject to electromagnetic interference when running at high power, the current sampling will be wrong, which will further cause the power calculation and observer to deviate from the actual value. When the interference is serious, the inverter may not work properly. Therefore, the unscented Kalman filter is used for noise reduction. In order to obtain low-noise current value and more accurate observer estimated voltage value at the same time, define X α =[i α Z α ], a unified model including current and observer is established, and after discretization, it is obtained:
[0160]
[0161] Y α,k =X α,k +υ k
[0162] Define the weight factor:
[0163]
[0164] The unscented Kalman filter algorithm is:
[0165] initialization
[0166]
[0167] Part 1: Calibration
[0168] Calculate several Sigma points
[0169]
[0170] in, is a matrix The i-th column of the RMS;
[0171] Measurement Update:
[0172]
[0173] calculate With Y k The covariance between:
[0174]
[0175] Compute the variance of the estimate and error:
[0176]
[0177] Among them, K k is the Kalman gain, Y k is the measured value at time k.
[0178] Part II: Prediction
[0179] Calculating Sigma Points
[0180]
[0181] Predict the state and variance for the next time step:
[0182]
[0183] It is worth noting that since the unscented Kalman filter contains nonlinear components, in order to improve the robustness of the algorithm, at time k, the predicted value calculated at the previous time k-1 is Will replace As the output of the filter and substituted into the controller (12), according to Calculate Δ.
[0184] Embodiment 2
[0185] Build a simulation system model, and select system parameters as shown in Table 1:
[0186] Table 1 Simulation system parameters
[0187]
[0188]
[0189] In order to demonstrate the superiority of the present invention, a step signal is selected as the excitation to test whether the inverter can quickly track the signal. When the active power reference value signal has a step, the power reference value is selected as P * :7000→9000→5000W, Q * =0. The output power waveforms in this scenario are as follows: Figure 3 , Figure 4 As shown in the figure, it can be seen that the active power can quickly and accurately track the reference value signal, with very little overshoot, while the reactive power is basically maintained at 0Var, and the adjustment of active power has little effect on reactive power. The filtered current and voltage signals are as follows Figure 4 , Figure 5 As shown, it can be seen that the unscented Kalman filter can estimate relatively accurate voltage and current values, and when the current changes suddenly, the observer can also quickly track the actual signal.
[0190] The fast and accurate tracking of active power can improve the frequency stability of the power grid. In order to further illustrate that the present invention can also improve the voltage stability of the power grid, the reference value of the reference reactive power signal step is set as: P * =3000W, Q * :3000→-3000→4000Var, power, voltage and current waveforms are as follows Figure 6-Figure 9 As shown in the figure, it can be seen that, similar to the previous scenario, when the reactive power reference signal has a step, the output reactive power can quickly track the signal, and the output active power hardly changes.
[0191] At the same time, since both the controller and the observer directly use the grid voltage frequency, the voltage frequency may offset. Therefore, at 0.1s, the grid frequency suddenly changes from 50Hz to 55Hz. In this case, the observer error increases slightly, while the output power is almost unaffected, and the inverter can still operate stably under the frequency parameters with errors.
[0192] In summary, the optimal control method for the grid-connected inverter under measurement noise in the above-mentioned embodiment takes the most widely used three-phase full-bridge inverter topology as the research object, and adopts the optimal control theory for control; at the same time, in order to achieve the purpose of miniaturization of equipment and reduce construction costs, nonlinear observer technology is adopted, and a given power signal can be quickly tracked without using a sensor to measure the grid voltage, and an unscented Kalman filter is used to deal with electromagnetic interference and current sampling errors.
[0193] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. An optimal control method for a grid-connected inverter under measurement noise, characterized in that: The following steps are involved: S1: Based on the grid voltage, the voltage modulation theory is used to process the nonlinear system model of the inverter, and the optimal control theory is applied to obtain the state feedback gain on the simplified linear system model for control; S2: When the system model is known, a nonlinear observer is established, and the grid voltage is used to calculate the inverter output power; then, the current sampling and the voltage observation value output by the nonlinear observer are filtered through the unscented Kalman filter, and the filtered value is substituted into the controller to control the inverter.
2. The optimal control method for a grid-connected inverter under measurement noise according to claim 1, characterized in that: In step S1, the relationship between the inverter output current, output voltage and grid voltage is: Among them, L and R are the filter inductance and parasitic resistance respectively, i αβ 、u αβ 、e gαβ They are the inverter output current, output voltage and grid voltage in the αβ coordinate system respectively.
3. The optimal control method for a grid-connected inverter under measurement noise according to claim 2, characterized in that: In step S1, the specific processing process is as follows: S11: Define virtual input through voltage modulation theory and transform the nonlinear system model of the inverter into a linear system: in P =e gα in α +e gβ in β in Q =e gβ in α -e gα in β Among them, u α u β 、e gα e gβ They are the inverter output voltage and grid voltage in the αβ coordinate system; S12: The original input of the system is obtained by inversely solving the expression in step S11: S13: Substitute the expression in step S11 into the grid voltage relationship in the αβ coordinate system under three-phase balance and harmonic-free conditions, and organize it into a state space expression as follows: Among them, P and Q are the active power and reactive power output by the inverter, respectively, and ω is the angular frequency of the voltage; S14: Decompose the system input into two parts: feedforward and feedback: in P =in P1 +in P2 in Q =in Q1 +in Q2 Among them, u P1 with u Q1 is a feedforward term, specifically: S15: Substitute the expression in step S14 into the state space expression in step S13 to obtain the decoupled linear system expression: in: S16: Define the following error variables: e P =P * -P e Q =Q * -Q Among them, P * , Q * are the reference signals of active power and reactive power respectively; The derivative of the above error variable is expressed as follows: S17: The design performance indicators are as follows: Where Δ=[Δ P ,Δ Q ] T , and there are: Among them, a and b are parameters selected according to needs; S18: Augment the decoupled linear system and define Then the augmented system is expressed as: in: S19: The performance index reconstructed by the corresponding augmented system is: in: S120: According to optimal control theory, is the controller input that minimizes the reconstructed performance index, K is the state feedback gain, and M is obtained by solving the Riccati equation: S121: The optimal input corresponding to the decoupled linear system is:
4. The optimal control method for a grid-connected inverter under measurement noise according to claim 3, characterized in that: In step S13, the grid voltage relationship in the αβ coordinate system under the three-phase balanced and harmonic-free conditions is:
5. The optimal control method for a grid-connected inverter under measurement noise according to claim 3, characterized in that: In step S2, the specific process of establishing the nonlinear observer is as follows: S21: Define the following auxiliary systems: e gα =[10]th α ≡C d or α S22: Define auxiliary variable as S α =[∫i α dτ i α ] T , and its dynamic relationship is: S23: Then the nonlinear observer is obtained as follows: Among them, P(S α ) is selected as P(S α )=[λ1i α λ2i α ] T , λ1λ2 are the observer gain coefficients.
6. The optimal control method for a grid-connected inverter under measurement noise according to claim 5, characterized in that: In step S2, the current sampling and the voltage observation value output by the nonlinear observer are filtered by an unscented Kalman filter, and the filtered value is substituted into the controller to control the inverter. The specific process is as follows: S24: Define X α =[i α Z α ], and discretize it to get: S25: Define the following weight factors: S26: At time k, the predicted value calculated at the previous time k-1 Will replace As the output of the unscented Kalman filter, it is substituted into the expression of step S121, that is, brought into the controller.
7. The optimal control method for a grid-connected inverter under measurement noise according to claim 6, characterized in that: In step S26, the working process of the unscented Kalman filter is as follows: S261: Initialization Initialize the following parameters: S262: Calibration Calculate multiple Sigma points in, is a matrix The i-th column of the RMS; Update the measured values: calculate With Y k The covariance between: Compute the variance of the estimate and error: Among them, K k is the Kalman gain, Y k is the measured value at time k; S263: Prediction Calculate multiple Sigma points Predict the state and variance at the next moment:
Citation Information
Patent Citations
Improved self-adaptive unscented Kalman filtering rotational inertia identification method
CN110739893A
Grid-connected inverter control method based on power grid modulation theory and optimal control
CN117578895A
Cited By
Drunk driving and poisoning prevention method and system
CN119898361A
