The present invention claims the priority of a Chinese patent application No. 202210973296.X submitted to the Chinese Patent Office on Aug. 15, 2022 and titled “Predictive control method and system of grid-connected converter based on structurally adaptive ESO”, the whole contents of which are incorporated in the present invention by reference.
The present invention relates to the technical field of grid-connected converter control, in particular to a predictive control method and system of a grid-connected converter based on a structurally adaptive extended state observer (ESO).
The statements in this part only provide background information related to the present invention and do not necessarily constitute the prior art.
Model predictive control (MPC) is a control technique based on optimization. It utilizes a dynamic model to predict future evolution of a system state and an output. A control target of a grid-connected converter is determined by using optimization variables of a grid current. At each time step, an optimization problem is solved within a predicted range. A final converter which is found be capable of solving the problem controls an input sequence. Finally, only a first input of the sequence is applied to the system. A major challenge with the MPC is that its dynamic performance degrades when uncertainty of the model occurs. Therefore, model-free predictive control without explicit use of model parameters is necessary to overcome this challenge.
In the model-free predictive control of the grid-connected converter, a traditional extended state observer (ESO) operates under a specific bandwidth. A high gain calculated at bandwidth frequencies is used to estimate the grid current and total disturbance.
For the model-free predictive control of the grid-connected converter, the ESO requires two important characteristics: 1) high disturbance rejection, and 2) good suppression of high-frequency measurement noise.
However, the traditional ESO only has one of these qualities at a time, and existing solutions that improve the disturbance rejection of the ESO generally lead to poor noise suppression, while solutions that improve the noise suppression of the ESO generally lead to worse disturbance rejection. In addition, the traditional ESO with good noise suppression of a sensor-based measurement output has a high start-up transient peak when sudden external disturbance occurs, and it also experiences an unsatisfactory transient oscillation when a system bandwidth is low.
In order to solve the above problems, the present invention proposes a predictive control method and system of a grid-connected converter based on a structurally adaptive ESO, which adapts to real-time conditions by adaptively changing a structure of an ESO and ensures smooth transition of the structure of the observer during real-time operations of a device.
In some embodiments, the following technical solutions are used:
A predictive control method of a grid-connected converter based on a structurally adaptive ESO, comprising: obtaining data of a grid current and a grid voltage and converting the data to data in a dq coordinate system; calculating a selected voltage vector based on a voltage in the dq coordinate system; adaptively inputting a current in the dq coordinate system to a parallel ESO, a cascade ESO, or a hybrid cascade-parallel ESO, so as to obtain a current predicted current value and estimated total disturbance; carrying out a two-step grid current prediction based on the current predicted current value, the estimated total disturbance and the selected voltage vector; taking minimizing a cost function as a control target, so as to obtain an optimal voltage vector based on a two-step grid current prediction result, and carrying out switching control of the grid-connected converter.
As a further embodiment, a specific method of adaptively inputting a current in the dq coordinate system to a parallel ESO, a cascade ESO, or a hybrid cascade-parallel ESO, so as to obtain a current predicted current value and estimated total disturbance is as follows: determining whether a d-axis current component in the dq coordinate system is a starting current or a disturbance current; if yes, firstly predicting the current predicted current value and the estimated total disturbance by using the parallel ESO according to the current in the dq coordinate system; after ½cycle, predicting the current predicted current value and the estimated total disturbance by using a hybrid cascade-parallel ESO with a first set bandwidth; after ½cycle, predicting the current predicted current value and the estimated total disturbance by using a hybrid cascade-parallel ESO with a second set bandwidth; after ½cycle, predicting the current predicted current value and the estimated total disturbance by using the cascade ESO; after preset cycles, returning to obtaining the d-axis current component in the dq coordinate system again; if not, firstly predicting the current predicted current value and the estimated total disturbance by directly using the cascade ESO according to the current in the dq coordinate system.
As a further embodiment, a specific method of determining whether a d-axis current component in the dq coordinate system is a starting current or a disturbance current is as follows:
When the following formula is satisfied, the starting current or disturbance current appears:
Wherein Δid_4 is an absolute change value of the d-axis current id after 4 times of sampling of the d-axis current, t_4=4/Ts and, Ts is the sampling time, and id_max is a maximum d-axis grid current.
As a further embodiment, the hybrid cascade-parallel ESO is specifically:
Wherein {circumflex over (ż)}J(t) is a first order derivative of time {circumflex over (z)}j(t), {circumflex over (z)}j(t) is an ESO state variable of an estimated current predicted current {circumflex over (l)}dq,j(t), y(t) is a measured noisy output signal, {γ1j, γ2j}∀j∈[1,2,3] is a gain of an ESO of ESOj, wherein ω0= is a total bandwidth of an ESO system, α is a gain of a constant control input; u(t) is a controller input.
As a further embodiment, the steps of carrying out a two-step grid current prediction based on the current predicted current value, the estimated total disturbance and the selected voltage vector is specifically as follows:
The current predicted current value is a result obtained after adaptively inputting to the parallel ESO, the cascade ESO or the hybrid cascade-parallel ESO, that is, a result obtained in a first prediction step;
A result of a second current prediction step is as follows:
Wherein k is sampling instant, Ts is sampling time, {circumflex over (l)}dq(k+1) is the result obtained in the first prediction step and is a predicted estimated value of the grid current at the next sampling instant (k+1), α is a constant control input gain, u(k) is a voltage of the converter caused by a switching state Sabc(k); {circumflex over (F)}j(k+1) is a predicted disturbance value of the first step at a jth sub-frequency level ω0j.
As a further embodiment, in the step of taking minimizing the cost function as the control target, so as to obtain the optimal voltage vector, the cost function is as follows:
Wherein îdq(k+2) is a predicted estimated value of the grid current at sampling instant (k+2), and idq*(k+2) is a reference value of the grid current at the sampling instant (k+2).
As a further embodiment, each switching state voltage of a three-phase two-level grid-connected converter is evaluated in the cost function; and a switching state corresponding to a voltage udq with the minimum value of the cost function is applied as the switching state Sabc of the grid-connected converter.
In some other embodiments, the following technical solutions are used:
A predictive control system of a grid-connected converter based on a structurally adaptive ESO, comprising: a data obtaining module, configured for obtaining data of a grid current and a grid voltage and converting the data to data in a dq coordinate system; a voltage vector selecting module, configured for calculating a selected voltage vector based on a voltage in the dq coordinate system; an adaptive state observing module, configured for adaptively inputting a current in the dq coordinate system to a parallel ESO, a cascade ESO, or a hybrid cascade-parallel ESO, so as to obtain a current predicted current value and estimated total disturbance; a two-step predicting module, configured for carrying out a two-step grid current prediction based on the current predicted current value, the estimated total disturbance and the selected voltage vector; a grid-connected converter controlling module, configured for taking minimizing a cost function as a control target, so as to obtain an optimal voltage vector based on a two-step grid current prediction result, and carrying out switching control of the grid-connected converter.
In some other embodiments, the following technical solutions are used:
A terminal device, comprising a processor and a memory, wherein the processor is used to implement each instruction; and the memory is used to store a plurality of instructions, and the instructions are suitable for being loaded by the processor and executing the above-mentioned predictive control method of a grid-connected converter based on a structurally adaptive ESO.
In some other embodiments, the following technical solutions are used:
A computer-readable storage medium in which a plurality of instructions are stored, wherein the instructions are suitable for being loaded by a processor of a terminal device and executing the above-mentioned predictive control method of a grid-connected converter based on a structurally adaptive ESO.
Compared with the prior art, the beneficial effects of the invention are as follows:
The present invention guarantees excellent disturbance rejection and noise suppression under all operating conditions by means of a structurally adaptive state observer, minimizing overshoot and ripple during transient periods, protecting the device from an excessive starting current and suppressing oscillations caused by bandwidth limitations or external disturbance; and the structurally adaptive state observer of the present invention can be adaptively modified to adapt to the time-varying control target.
Other features and advantages of additional aspects of the present invention will be partly given in the description below, and will partly become apparent from the description below, or will be learned through practice in this area.
It should be noted that the following detailed explanations are illustrative and are intended to provide further explanations of this application. Unless otherwise indicated, all technical and scientific terms used in the present invention have the same meaning as that would normally be understood by a person of ordinary skill in the technique field to which this application belongs.
It should be noted that the terms used herein are intended only to describe specific embodiments and are not intended to limit exemplary embodiments under this application. As used herein, a singular form is also intended to include a plural form unless the context expressly indicates otherwise, and it should also be understood that when terms “contain” and/or “include” are used in this specification, they indicate the presence of features, steps, operations, devices, components and/or combinations thereof.
In one or more embodiments, disclosed in combination with
Step (1): obtaining data of a grid current and a grid voltage and converting the data to data in a dq coordinate system;
Wherein iabc is the grid current, egabc is the grid voltage; uabc=ƒ(Sabc) represents an output voltage of the power converter and is a function of a switching state Sabc; L represents filter inductance, R represents filter resistance.
Formula (1) can be converted into:
Wherein uabc is a control input of the converter,
is a constant control input gain,
In this example, obtaining the data of the grid current iabc and the grid voltage egabc and converting the data to data in the dq coordinate system, so as to obtain a current idqmeas and a voltage edq in the dq coordinate system.
Step (2): calculating, by using a phase locked loop (PLL) module, a voltage angle of the grid based on a voltage in the dq coordinate system. A voltage vector udq is selected by applying the voltage phase angle of the grid.
Step (3): adaptively inputting the current in the dq coordinate system to a parallel ESO, a cascade ESO, or a hybrid cascade-parallel ESO, so as to obtain a current predicted current value îdq(k+1) and estimated total disturbance {circumflex over (F)}dq;
In this example, the total disturbance F is adaptively estimated using the following three ESOs: the parallel ESO (PESO), the cascade ESO (CESO), and the hybrid cascade-parallel ESO (CP-ESO).
The three ESOs are described below:
(3-1) the parallel ESO (PESO)
As shown in
Wherein {circumflex over (z)}j(t)→îdq,j(t) is an estimated state, y(t)→idqmeas(t) is a measured output signal of noise, and γ1j, γ2j}∀j∈[1,2,3] is a gain of the observer of ESOj▪. The gain of the observer is further defined as follows:
is a total bandwidth of the ESO system.
It should be noted that zj▪▪j∈{1,2,3} is an ESO state variable for estimating the current îdq,j.
In addition, three sub-frequencies satisfy: ω01<ω02<ω03=ω0.
The PESO is implemented on a digital signal processor (or a microcontroller) as follows:
Wherein k is a discrete moment, Ts is sampling time, {circumflex over (z)}j(tk)→îdq,j(k) is an estimated state, y(k)→idqmeas(k) is the measured output signal of the noise, and all other variables are described as above.
A corresponding current prediction in a first step:
(3-2) the cascade ESO (CESO)
As shown in
Wherein {circumflex over (z)}j(t) is an ESO state variable of an estimated current predicted current îdq,j(t), {circumflex over (ż)}j(t) is a first order derivative with respect to {circumflex over (z)}j(t) time, and u(t) is a controller input. y(t)→idqmeas(t) is the measured output signal of noise, and γ1j, γ2j}∀j∈[1,2,3] is the gain of the observer of ESOj▪.
The gain of the observer is further defined as
is a total bandwidth of an ESO system.
It should be noted that zj▪▪j∈{1,2,3} is an ESO state variable for estimating the current îdq,j.
In addition, three sub-frequencies satisfy: ω01<ω02<ω03=ω0.
The CESO is implemented on the digital signal processor (or the microcontroller) as follows:
Wherein k is the discrete moment, Ts is the sampling time, {circumflex over (z)}j(t) is the ESO state variable of an estimated current predicted current îdq,j(t), y(k)→idqmeas(k) is the measured output signal of the noise, and all other variables are described as above. {circumflex over (F)}j(k+1) is a predicted disturbance value of a jth sub-frequency level ω0j in a first step.
A corresponding current prediction in the first step is as follows:
(3-3) ESO in cascade parallel (CP-ESO)
As shown in
Wherein {circumflex over (z)}j(t) is an ESO state variable of an estimated current predicted current îdq,j(t), y(t) is the measured output signal of noise, and γ1j, γ2j}∀j∈[1,2,3] is the gain of the observer of ESOj. The gain of the observer is further defined as follows:
ω0 is a total bandwidth of the ESO system.
It should be noted that zj▪▪j∈{1,2,3} is an ESO state variable for estimating the current îdq,j.
In addition, three sub-frequencies satisfy: ω01<ω02<ω03=ω0.
The CP-ESO is implemented on the digital signal processor (or the microcontroller) as follows:
Wherein k is the discrete moment, Ts is the sampling time, {circumflex over (z)}j(tk)→îdq,j(k) is the estimated state, y(k)→idqmeas(k) is the measured output signal of the noise, and all other variables are described as above.
A corresponding current prediction in the first step:
PESO has the best disturbance rejection capability. Therefore, it is most useful during device startup and when external disturbance is detected. It may minimize a peak current during transients. The CESO has the best noise suppression characteristics and would be applied during steady-state operations of the system. The CP-ESO would only be applied during transition from the PESO to the CESO.
Combined with
Determining whether a d-axis current component in the dq coordinate system is a starting current or a disturbance current; if yes, firstly predicting the current predicted current value and the estimated total disturbance by using the parallel ESO according to the current in the dq coordinate system; after ½ cycle, predicting the current predicted current value and the estimated total disturbance by using a hybrid cascade-parallel ESO (a bandwidth is 5ω0); after ½ cycle, predicting the current predicted current value and the estimated total disturbance by using a hybrid cascade-parallel ESO (a bandwidth is 3ω0); after ½ cycle, predicting the current predicted current value and the estimated total disturbance by using the cascade ESO; after preset cycles (such as 3 cycles), returning to obtaining the d-axis current component in the dq coordinate system again; if not, firstly predicting the current predicted current value and the estimated total disturbance by directly using the cascade ESO according to the current in the dq coordinate system.
In this example, when the following formula is true, the starting current or disturbance current appears:
Wherein Δid_4 is an absolute change value of the d-axis gate current id after 4 times of sampling of the d-axis gate current, t_4=4/Ts; Ts is the sampling time and id_max is a maximum d-axis grid current.
For a microcontroller implementation, it is discretized to:
Wherein Δid_4 is the absolute change of the current after four times of sampling, k is the discrete sampling instant, id_max is the maximum d-axis grid current.
Step (4): carrying out a two-step grid current prediction based on the current predicted current value, the estimated total disturbance and the selected voltage vector;
In this example, a predicted current {circumflex over (l)}dq(k+2) in a second step is calculated using {circumflex over (l)}dq(k+1), {circumflex over (F)}dqand udq for equation (6). The predicted current {circumflex over (l)}dq(k+2) and a reference current calculated using a PI controller are passed to a cost function stage.
In combination with
The currently active ESO (for PESO (5) or CESO (8) or CP-ESO (11)), {circumflex over (l)}dq(k+1) and Σj=13{circumflex over (F)}j(k+1) are provided to calculate the prediction {circumflex over (l)}dq(k+2) in the second step in equation (12).
The predicted current in the second step is as follows:
Wherein k is the sampling instant, Ts is the sampling time,
ω0 is the bandwidth system of the entire ESO, {circumflex over (l)}dq(k+1) is the predicted estimated value of the grid current at the next sampling instant (k+1), {circumflex over (l)}dq(k) is the estimated current of the current discrete sample (k), Ts is the sampling time, α=1/L, u(k) is selected from Table 1.
A voltage Sabc(k) of the converter caused by the switching state of idq(k) is a measured current of the current sampling time and {circumflex over (F)}(k) is the estimated disturbance in the ESO bandwidth.
Step (5): taking minimizing a cost function as a control target, so as to obtain an optimal voltage vector based on a two-step grid current prediction result, and carrying out switching control of the grid-connected converter.
In this example, minimizing the cost function is specifically:
Wherein iq*=0, and
kp, ki are the adjusted Vdc PI controller gain, a DC bus voltage, Vdc* is a DC bus voltage reference.
For n={0,1, . . . ,7} in table 1, a voltage of each switching state corresponds to n={0,1, . . . ,7}, and the voltage udq of each switching state is evaluated in the cost function. Among these 8 options, a voltage which obtains a minimum J is applied as the switching state Sabc of the power converter. Evaluation is carried out in the cost function. Among these 8 options, the voltage which obtains the minimum J is applied as the switching state of the power converter.
In one or more embodiments, disclosed is a predictive control system of a grid-connected converter based on a structurally adaptive ESO, comprising: a data obtaining module, configured for obtaining data of a grid current and a grid voltage and converting the data to data in a dq coordinate system; a voltage vector selecting module, configured for calculating a selected voltage vector based on a voltage in the dq coordinate system; an adaptive state observing module, configured for adaptively inputting a current in the dq coordinate system to a parallel ESO, a cascade ESO, or a hybrid cascade-parallel ESO, so as to obtain a current predicted current value and estimated total disturbance; a two-step predicting module, configured for carrying out a two-step grid current prediction based on the current predicted current value, the estimated total disturbance and the selected voltage vector; a grid-connected converter controlling module, configured for taking minimizing a cost function as a control target, so as to obtain an optimal voltage vector based on a two-step grid current prediction result, and carrying out switching control of the grid-connected converter.
It should be noted that the specific implementation of the above modules has been explained in detail in example 1, and would not be detailed.
In one or more embodiments, disclosed is a terminal device comprising a server, the server comprises a memory, a processor, and a computer program stored on the memory and capable of being executed by the processor, and the predictive control method of a grid-connected converter based on a structurally adaptive ESO in example 1 is implemented when the processor executes the program. For the sake of concise, it would not be repeated herein.
It should be understood that in this example, the processor may be a central processing unit (CPU), the processor may also be another general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or another programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
The memory may include a read-only memory and a random access memory and provide instructions and data to the processor, and part of the memory may also include a non-volatile random access memory. For example, the memory may also store information of a device type.
In an embodiment process, the steps of the above method can be completed by an integrated logic circuit of a hardware in the processor or instructions in the form of a software.
In one or more embodiments, disclosed is a computer-readable storage medium in which a plurality of instructions are stored, wherein the instructions are suitable for being loaded by a processor of a terminal device and executing the predictive control method of a grid-connected converter based on a structurally adaptive ESO in example 1.
Although the above describes the specific embodiments of the present invention in combination with the attached drawings, it is not a limitation of the protection scope of the present invention, and a person skilled in the art should understand that on the basis of the technical solutions of the present invention, various modifications or variants that can be made by a person skilled in the art without creative labor are still within the protection scope of the present invention.
| Number | Date | Country | Kind |
|---|---|---|---|
| 202210973296.X | Aug 2022 | CN | national |
| Filing Document | Filing Date | Country | Kind |
|---|---|---|---|
| PCT/CN2023/096637 | 5/26/2023 | WO |