Summary of the invention
Technical problem to be solved by this invention is the deficiency for above-mentioned background technology, provides a kind of inverter control method based on fractional order PI anticipation function.
The present invention adopts following technical scheme for achieving the above object:
Based on an inverter control method for fractional order PI anticipation function, comprising: set up inverter control system model, determine inverter output current reference locus, comprise the steps:
Step 1, the parameter of the following inverter control system model of initialization: the equivalent series resistance R of filter inductance L, filter capacitor C, filter inductance L
l; And the second-order system that inverter dual input list exports is converted into state space equation, draw coefficient matrices A, B, C,
C=[1 0], r are the comprehensive equivalent damping resistance of the various damping factor of inverter;
Step 2, calculates controlled quentity controlled variable u (n) according to following formula:
u(n)=(R
p+R
i)
Tf
n(0),
Wherein:
q
0=1,
f=[f
n1(0),f
nj(0),…,f
nJ(0)]
T,
Wherein,
g
nj(i)=CA
i-1Bf
nj(0)+CA
i-2Bf
nj(1)+…+CBf
nj(i-1),
The controlled quentity controlled variable that u (n) is inverter control system n-th moment exports, R
pfor proportional resistance, R
ifor integration item resistance, f
n(0) for basic function is at the initial value in the n-th moment, 1,2 ..., l ..., k is sampled signal sequence, and k is positive integer, q
l-1for binomial coefficient, Q and R represents error weighting matrix respectively and controls weighting matrix, q
-1and q
-lfor time delay operator, J represents the exponent number of basic function, and j is the positive number between 0 to J, K
p, K
ibe respectively broad sense proportional coefficient, integral item coefficient, T
sfor time step, λ is integral parameter, f
nl(0) be the initial value of l rank basic function in the n-th moment, f is the matrix be made up of at the initial value in the n-th moment 1 to J rank basic function, n
sfor optimizing the number of time domain match point, i is 1 to n
sbetween integer, h
ibe the numerical value in i-th match point, g
nji (), for i-th match point on jth time basic function is at the process response function in the n-th moment, g is the matrix be made up of in the value of the n-th etching process response function J basic function, the standard value that X (n) is inverter output current, y
pn () is the output current value of the n-th moment inverter, T
ofor the sampling time, T
rfor the Expected Response time of inverter output current reference locus, α is the speed degree that reference locus is tending towards inverter output current standard value, x
mn () is the state value of the n-th moment inverter control system model;
Step 3, the output current of controlled quentity controlled variable u (n) control inverter obtained according to step 2 thus affect its output voltage.
Described a kind of inverter control method based on fractional order PI anticipation function, basic function described in step 2 is unit step function, and the value of exponent number J is 1.
The present invention adopts technique scheme, has following beneficial effect: steady-state characteristic is good, the response time is shorter, and workload-adaptability is strong, and antijamming capability is strong.
Embodiment
Be described in detail below in conjunction with the technical scheme of accompanying drawing to invention.
The object of the invention is to the method that fractional order PI and Predictive function control combine to be incorporated in single-phase inverter control system and carry out alternative traditional PI and control, a kind of new control strategy is provided.
1, basic function and reference locus is chosen
Predictive function control regards the key of influential system performance as control inputs structure.And in the situation that input signal spectrum is limited in Predictive function control, control inputs only belongs to one group of specific Ball curve relevant with reference locus and object property, the importance chosen of basic function is well imagined.Especially, for linearly, the output of system will be the weighted array that above-mentioned basic function acts on object model response.Control inputs is represented as a series of known basic function { f
nlinear combination, namely
In formula (1): u (n+i) is the controlled quentity controlled variable in the n+i moment;
μ
jn () is basic function weight coefficient;
F
nji () is the value of basic function when iT;
J is the exponent number of basic function.
Basic function choose the character depending on object and desired trajectory, such as can get step, slope, exponential function etc.For optionally fixed basic function f
nji (), can export response g by the off-line object calculated under its effect
nji (), namely weighted array obtain system and export.
The same with Model Algorithmic contral, in PFC (anticipation function), gently set point is reached gradually in order to enable the output of system, avoid occurring overshoot, according to prediction output valve and the output of process value, we can specify a progressive curve trending towards following set point, are called reference locus.It is selected and depends on the requirement of designer to system completely.Common reference locus is as follows:
y
r(n+i)=X(n+i)-α
i[X(n)-y
P(n)] (2)
In formula (2): y
r(n+i) be the reference locus in (n+i) moment;
X (n+i) is the set point in (n+i) moment;
Y
pn process real output value that () is the n moment;
α is the speed degree that reference locus is tending towards set point, generally gets
wherein, T
othe sampling time, T
rit is the Expected Response time of reference locus.
From rolling optimization principle, every one-step optimization is all be based upon on latest data basis that real process obtains, therefore y
r(n)=y
p(n), y
rn () is the process desired output in n moment.
For plan tracking fixed valure, usually can think:
X(n+i)=X(n) (3)
In formula (3): X (n) is the set point in n moment.
Can obtain reference locus detailed expressions by formula (2) (3) formula is:
2, Strategy for Single-Phase Grid-connected Inverter closed-loop control system Mathematical Modeling is set up
The present invention adopts single-phase full-bridge inverter to be control object, and its main circuit structure figure as shown in Figure 1.In Fig. 1, E is DC bus input voltage, u
1for inverter bridge brachium pontis output voltage, u
0for inverter output voltage, i
lfor filter inductance electric current, i
cfor filter capacitor electric current, i
0for load current, r is the comprehensive equivalent damping resistance of various damping factor in the inverter such as equivalent series resistance, dead time effect, switching tube conduction voltage drop, line resistance of filter inductance L.
For the such dual input of single-phase inverter, single second-order system exported, select capacitance voltage u
0with inductive current i
las state variable, can state-space expression be obtained as follows:
3, by the form that the state-space expression discretization of single-phase inverter control system can be obtained state space equation:
In formula (7), y
mn ()---n moment model prediction exports;
X
m(n)---n moment model state value;
U (n-1)---(n-1) moment control inputs;
A, B, C---matrix equation coefficient.
4, the model of computational prediction model exports
For the model state value x in (n+i) moment
m(n+i), obtained by above formula (7) recursion
x
m(n)=Ax
m(n-1)+Bu
n(n-1)
x
m(n+1)=Ax
m(n)+Bu
n(n)
… (9)
x
m(n+i-1)=Ax
m(n+i-2)+Bu
n(n+i-2)
x
m(n+i)=Ax
m(n+i-1)+Bu
n(n+i-1)
Can calculate further
x
m(n+i)=A
ix
m(n)+A
i-1Bu(n)+A
i-2Bu(n+1)+…+ABu(n+i-2)+Bu(n+i-1) (10)
It can thus be appreciated that the model prediction in (n+i) moment exports and is
y
m(n+i)=Cx
m(n+i)=CA
ix
m(n)+CA
i-1Bu(n)+CA
i-2Bu(n+1)+…+CABu(n+i-2)+CBu(n+i-1)
(11)
Formula (1) is substituted in formula (11) and can obtain:
In formula (12): μ (n)=[μ
1(n), μ
2(n) ..., μ
j(n)]
t;
g
n(i)=[g
n1(i),g
n2(i),…,g
nJ(i)]
T;
, can be obtained by formula (12), the process response function g of basic function meanwhile
njn () can embody calculated off-line and go out before basic function is known:
g
nj(i)=CA
i-1Bf
nj(0)+CA
i-2Bf
nj(1)+…+CBf
nj(i-1) (13)
The controlled quentity controlled variable added in model is not amount separate in time, but the linear combination of basic function used, therefore, its exporting change caused just shows as each basic function response g
njthe linear superposition of (n), but not the superposition of different time points control effect, g
njn () can calculate by off-line, unknown only has linear combination coefficient μ
j(n).
5, the model prediction after calculation compensation exports
In actual industrial process, due to the reason such as model mismatch, noise, model exports exists certain error between the output of process, that is:
e(n)=y
P(n)-y
m(n) (14)
For the prediction of following (n+i) moment error, can think in the controls:
e(n+i)=e(n)=y
P(n)-y
m(n) (15)
In formula (15): e (n) is the error in n moment;
Y
pthe actual output of n process that () is the n moment;
Y
mn model prediction that () is the n moment exports.
Real process prediction exports expression formula:
y
P(n+i)=y
m(n+i)+e(n+i) (16)
(12), (15) are substituted into (16) and can obtain:
y
P(n+i)=CA
ix
m(n)+μ(n)
Tg
n(i)+y
P(n)-y
m(n) (17)。
6, controlled quentity controlled variable is solved based on quadratic form fractional order PI target function
In order to make control system have better Control platform, fractional order PI control and PFC being controlled to combine, adopts the new target function of additional proportion, integration, make the controller of derivation have the architectural characteristic of sensu lato ratio, integration.Utilize the target function of fractional order PI algorithm to PFC algorithm to improve, the novel fractional order PI anticipation function algorithm derived not only has the advantage of fractional order PI and PFC algorithm, can also overcome their shortcoming.
In formula (18), p is prediction step, and q, r are controlled quentity controlled variable weighted factor.
Wherein:
In formula: μ (n)=[μ
1(n), μ
2(n) ..., μ
j(n)]
t
g
n(h
i)=[g
n1(h
i),g
n2(h
i),…,g
nJ(h
i)]
T
That is: e (k+1)=μ (k+1)
tg (i)-d (k+1+i)
In like manner can obtain:
Δe(k+1)=e(k+1)-e(k)=Δμ(k+1)
Τg(i)-Δd(k+1+i)
Δ
2e(k+1)=Δe(k+1)-Δe(k)=Δ
2μ(k+1)
Τg(i)-Δ
2d(k+1+i)
Order
Can obtain:
f=[f
n1(0),f
n2(0),…,f
nJ(0)]
T
g
nj(i)=CA
i-1Bf
nj(0)+CA
i-2Bf
nj(1)+…+CBf
nj(i-1)
Wherein, the controlled quentity controlled variable that u (n) is inverter control system n-th moment exports, R
pfor proportional resistance, R
ifor integration item resistance, f
n(0) for basic function is at the initial value in the n-th moment, 1,2 ..., l ..., k is sampled signal sequence, and k is positive integer, q
j-1for binomial coefficient, Q and R represents error weighting matrix respectively and controls weighting matrix, q
-1and q
-2for time delay operator, J represents the exponent number of basic function, and j is the positive number between 0 to J, K
p, K
ibe respectively broad sense proportional coefficient, integral item coefficient, T
sfor time step, λ is integral parameter, f
nl(0) be the initial value of l rank basic function in the n-th moment, f is the matrix be made up of at the initial value in the n-th moment 1 to J rank basic function, n
sfor optimizing the number of time domain match point, i is 1 to n
sbetween integer, h
ibe the numerical value in i-th match point, g
nji (), for i-th match point on jth time basic function is at the process response function in the n-th moment, g is the matrix be made up of in the value of the n-th etching process response function J basic function, the standard value that X (n) is inverter output current, y
pn () is the current value that the n-th moment inverter exports, T
ofor the sampling time, T
rfor the Expected Response time of inverter output current reference locus, α is the speed degree that reference locus is tending towards inverter output current standard value, x
mn () is the state value of the n-th moment inverter control system model;
Because controlled quentity controlled variable equation
Final controlled quentity controlled variable can be obtained: u (n)=(R
p+ R
i)
tf
n(0)
According to the inventive method structure digital control hardware experiment platform of single-phase inverter as shown in Figure 2, experiment porch is according to compatible and modular design principle, and experiment porch is made up of host computer (PC), simulator, digital signal processor (DSP) control circuit module, main circuit power and drive circuit module thereof, load, auxiliary power module and a logical news modular circuit.
Host computer (PC) major function one operates the normal experiment designed and developed: the connection of system, the startup of system and stopping, the parameters such as SPWM modulation system, modulating frequency, modulation ratio, carrier wave ratio are set, the control strategy of electric current and voltage double-loop control is selected, adjusting of closed loop control parameters, receives slave computer return data and Dynamic Announce SPWM modulating wave, output voltage and current waveform.Another major function is exactly all algorithms of inverter control, by DSP composing software editor relative program, carries out in-circuit emulation and debugging operations by simulator to slave computer DSP.
Digital signal processor (DSP) control circuit module mainly comprises: digital signal processor (DSP), feedback of voltage and current signal conditioning circuit, voltage zero-crossing detection circuit, current foldback circuit, level shifting circuit, condition indication circuit, communication interface circuit and jtag interface circuit.
Main circuit power and driver module thereof mainly comprise: EMI input filter circuit, AC/DC rectification circuit, DC/AC full bridge inverter, power switch tube drives and buffer circuit, LC output filter circuit, inductive current and output voltage sampling circuit.
Auxiliary power module provides low-tension supply for control circuit normally works, and mainly comprises: four tunnels are power switch driving power, inductive current and output voltage sampling circuit and signal conditioning circuit power supply, digital signal processor (DSP) working power independently.Need way many by analyzing known accessory power supply above, require voltage stabilization, ripple is little.By reference to the accompanying drawings 1, reference current i
l *with actual grid-connected current instantaneous feedback value i
lthe process of difference via controller after, compare as modulating wave and triangular carrier, export SPWM control signal, through amplifying rear drive power switch pipe, then obtain grid-connected current after inductor filter, thus form whole reversals.Specifically in accordance with the following methods:
The parameter of step 1, the following inverter control system of initialization: the equivalent series resistance R of filter inductance L, filter capacitor C, filter inductance L
l; And single-phase inverter dual input, single second-order system exported are converted into state space equation, draw coefficient matrices A, B, C;
Step 2, according to following formula calculate controlled quentity controlled variable u (n):
u(n)=(R
p+R
i)
Tf
n(0)
Wherein:
q
0=1,
f=[f
n1(0),f
nj(0),…,f
nJ(0)]
T,
Wherein, the controlled quentity controlled variable that u (n) is inverter control system n-th moment exports, R
pfor proportional resistance, R
ifor integration item resistance, f
n(0) for basic function is at the initial value in the n-th moment, 1,2 ..., l ..., k is sampled signal sequence, and k is positive integer, q
j-1for binomial coefficient, Q and R represents error weighting matrix respectively and controls weighting matrix, q
-1and q
-2for time delay operator, J represents the exponent number of basic function, and j is the positive number between 0 to J, K
p, K
ibe respectively broad sense proportional coefficient, integral item coefficient, T
sfor time step, λ is integral parameter, f
nl(0) be the initial value of l rank basic function in the n-th moment, f is the matrix be made up of at the initial value in the n-th moment 1 to J rank basic function, n
sfor optimizing the number of time domain match point, i is 1 to n
sbetween integer, h
ibe the numerical value in i-th match point, g
nji (), for i-th match point on jth time basic function is at the process response function in the n-th moment, g is the matrix be made up of in the value of the n-th etching process response function J basic function, the standard value that X (n) is inverter output current, y
pn () is the current value that the n-th moment inverter exports, T
ofor the sampling time, T
rfor the Expected Response time of inverter output current reference locus, α is the speed degree that reference locus is tending towards inverter output current standard value, x
mn () is the state value of the n-th moment inverter control system model.
Step 3, the controlled quentity controlled variable u (n) obtained according to step 2 control output current thus affect its output voltage, realize reversals.
The controlled quentity controlled variable that prediction function controller exports is converted into sinusoidal signal and inputs inverse changing driving circuit after amplifying by DSP microprocessor, change inverter output voltage, after the output voltage of inverter changes, output current changes accordingly, thus control output voltage, just can carry out tracing control to inverter output voltage by such cyclic process, realize the same frequency homophase of output current output voltage.
In order to verify the effect of the inventive method, carry out following experiment: relevant parameter chosen by the topological structure according to single-phase full-bridge inverter, filter inductance L=0.003H, filter capacitor C=0.0005F, the equivalent series resistance R of filter inductance L
l=0.01 Ω, load R=5 Ω, K
p=5, K
i=1500, λ=0.005, Q=0.3, R=0..3, T
r=0.05, T=0.0045.Utilize MATLAB simulated environment to build single-phase full-bridge inverter simulation model, adopt fractional order PI Predictive function control to carry out emulation experiment, the basic parameter chosen is consistent.Experiment is from aspect analyses such as stability, steady-state error, anti-interferences.Fig. 3 shows that fractional order PI prediction function controller achieves the same frequency homophase of output voltage and output current, and output current reference waveform can be good at following the tracks of line voltage, and output waveform is level and smooth, and steady-state characteristic is good.Fig. 4 and Fig. 5 is engraved in shock load in output circuit when being respectively 0.04S, the wave form varies figure of output current.Known by the little block diagram in the comparative analysis upper right corner (0.04s moment current break partial enlargement oscillogram), fractional order PI Predictive function control lower system response time is shorter, and workload-adaptability is strong, and antijamming capability is strong.
In sum, the inverter control method steady-state characteristic based on fractional order PI anticipation function of the present invention is good, the response time is shorter, and workload-adaptability is strong, and antijamming capability is strong, is applicable to combining inverter in wind generator system.