What Is System Identification: Different Approaches To System Identification Depending On Model Class
What Is System Identification: Different Approaches To System Identification Depending On Model Class
What Is System Identification: Different Approaches To System Identification Depending On Model Class
Using experimental data obtained from input/output relations to model dynamic systems. disturbances input output
System
Different approaches to system identification depending on model class Linear/Non-linear Parametric/Non-parametric Non-parametric methods try to estimate a generic model. (step responses, impulse responses, frequency responses) Parametric methods estimate parameters in a user-specified model. (transfer functions, state-space matrices)
System identification
System identification includes the following steps:
Experiment design: its purpose is to obtain good experimental data, and it includes the choice of the measured variables and of the character of the input Signals. Selection of model structure: A suitable model structure is chosen using prior knowledge and trial and error. Choice of the criterion to fit: A suitable cost function is chosen, which reflects how well the. model fits the experimental data.
Parameter estimation: An optimisation problem is solved to obtain the numerical values of the model parameters. Model validation: The model is tested in order to reveal any inadequacies.
2
Experimental design
Data collection
Data pre-filtering
Parameter estimation
Model validation
Notation for continuous time models Complex Laplace variable s and differential operator p
& x(t ) =
Notation for discrete time models
x(t ) = p x(t ) t
x(k + 1) = q x(k )
4
Often good to use a two-stage approach Preliminary experiments Step/impulse response tests to get basic understanding of system dynamics Linearity, static gains, time delays constants, sampling interval
Data collection for model estimation Carefully designed experiment to enable good model fit Operating point, input signal type, number of data points to collect
Sample time can be determined from time constants Rule-of-thumb: 4-10 sample points over the rise time
Trade-off in selection of signal amplitude Large amplitude gives high signal-to-noise ratio (SNR), low parameter variance Most systems are non-linear for large input amplitudes
Big difference between estimation of system under closed loop control or not!
Collecting data
w(t ) u (t )
System
y (t )
+
Lu
e(t )
LY
u (k )
y (k )
Data pre-filtering
Remove: Transients needed to reach desired operating point Mean values of input and output values, i.e. work with
u[t ]
t =1 N
y[t ]
t =1
y (n ) = q G q , u (n ) + H q , e(n )
k 1 1
Y
10
Model structures
Model structures based on input-output:
~ (q ) pe
1 A(q ) C (q) A(q ) C (q) D(q)
1 1
A(q) y[k ] =
Provides flexibility for system and stochastic dynamics. Simpler models that are a subset of the General Linear model structure.
11
Parametric Models
Each of these methods has their own advantages and disadvantages and is commonly used in real-world applications.
choice of the model structure to use depends on the dynamics and the noise characteristics of the system.
Using a model with more freedom or parameters is not always better as it can result in the modeling of nonexistent dynamics and noise characteristics.
12
AR Model
process model where outputs are only dependent on previous outputs. No system inputs or disturbances are used in the modelling. class of solvable problems is limited, for signals not for systems Time series analyses, such as linear prediction coding commonly use the AR model.
e(n ) Y (n )
1 A(q )
AR Model Structure
13
ARX Model
Advantages: is the most efficient of the polynomial estimation methods -> solving linear regression equations in analytic form. unique solution, that satisfies the global minimum of the loss function. preferable, especially when the model order is high. Disadvantage: disturbances are part of the system dynamics. The transfer function of the deterministic part G q 1 , of the system and the transfer function of the stochastic part H q 1 , of the system have the same set of poles.
This coupling can be unrealistic. The system dynamics and stochastic dynamics of the system do not share the same set of poles all the time. can bias the estimation of the ARX model However, you can reduce this disadvantage if you have a good signal-to-noise ratio.
14
y[k ] =
u (k )
B(q )
1 A(q )
y (n )
ARMAX Model
ARMAX (autoregressive moving average with exogenous input) includes disturbance dynamics! ARMAX models are useful when you have dominating disturbances that enter early in the process, such as at the input. i.e. a wind gust affecting an aircraft is a dominating disturbance early in the process more flexibility in the handling of disturbance modelling
y[k ] =
e(n ) C (q ) y (n )
u (n )
B(q )
1 A(q )
y[k ] =
e(n )
C (q ) D(q )
u (n )
B(q ) F (q )
y (n )
y[k ] =
e(n ) u (n )
B(q ) F (q )
y (n )
OE Model Structure
18
19
In general, they provide a more complete representation of the system, especially for complex MIMO systems The identification procedure does not involve nonlinear optimization so the estimation reaches a solution regardless of the initial guess. parameter settings for the state-space model are simpler. You need to select only the order / states, of the model prior knowledge of the system or by analyzing the singular values of A.
20
Determine Parameters
Determining the delay and model order for the prediction error methods, ARMAX, BJ, and OE, is typically a trial-and-error process. The following is a useful set of steps that can lead to a suitable model. this is not the only methodology you can use, nor is this a comprehensive procedure. (1) Obtain useful information about the model order by observing the number of resonance peaks in the nonparametric frequency response function. Normally, the number of peaks in the magnitude response equals half the order of A(q ),F (q ) (2) Obtain a reasonable estimate of delay using correlation analysis and/or by testing reasonable values in a medium size ARX model. Choose the delay that provides the best model fit based on prediction error or other fit criterion. (3) Test various ARX model orders with this delay choosing those that provide the best fit. (4) Since the ARX model describes both the system dynamics and noise properties using the same set of poles, the resulting model may be unnecessarily high in order. (5)By plotting the zeros and poles and looking for cancellations you can reduce the model order.
21
22
Conclusion
variety of model structures available choice is based upon an understanding of the system identification method and algorithm. system and disturbance are important handling a wide range of system dynamics without knowing system physics reduction of engineering effort Identification Tools (Matlab, Matrix or LabVIEW ) are available for developing, prototyping and deploying control algorithms.
23
24
25
26
27
F (y)
Slope 2
Slope
s3
y
Slope
s1
28
x2
x1
-0.5
29
Lyapunov Stability
Lyapunov stability occurs in the study of dynamical systems. In simple terms, if all solutions of the dynamical system that start out near an equilibrium point xe stay near xe forever, then xe is Lyapunov stable. More strongly, if all solutions that start out near xe converge to xe, then xe is asymptotically s table. The notion of exponential stability guarantees a minimal rate of decay, i.e., an estimate of how quickly the solutions converge. The idea of Lyapunov stability can be extended to infinite-dimensional manifolds, where it is known as Structural stability, which concerns the behaviour of different but "nearby" solutions to differential equations.
x2
x1
30
+ 0 _
Non-Linear Part The linear part can be characterized by four matrices (A,B,C,D), while the non-linear part is (y) with (a sector non-linearity). by A.I. Lur'e
31
Popov criterion The sub-class of Lure's systems studied by Popov is described by:
(1) u = ( y ) (2 )
y = cx + d
where x R n, , u, y are scalars and A, b, c, d have commensurate dimensions. The non-linear element : R R is a time-invariant nonlinearity belonging to open sector (0, ). This means that
& x = Ax + bu & =u
(0 ) = 0 ,y ( y ) > 0 y 0 ;
The transfer function from u to y is given by
32
L( j)
Popov frequency response locus Z=Lp(j)
Im
1 Kp
-0.3 -0.2 -0.1 0.1
g krit
0.1 -0.1 -0.2 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Re
Z = Lp ( j)
The line g krit is tangential to the Popov frequency response locus curve and intersects the real axis at 0.1
33
F (e ) k e
The standard control loop is absolute stable in sector [0,k], if the closed loop only has one global asymptotic stable equilibrium for any characteristics F(e) lying in this sector
34
Sector
F ( e) 0 e K K F ( e) 0 e F ( e) 0 e
Inequality
((1 + qj )G( j )) > 0
1 K 1 K
1,...., n m
1,...., n m
F ( e) >0 e
((1 + qj )G( j )) 0
The control loop is absolute stable in the given sector , when a real number q is found for all the right side of inequality. The Popov criteria is a sufficient condition for absolute stability of the control loop.
apply on
35
G p ( j ) = (G( j )) + j (G( j ))
This frequency plot is called Popov curve, so equation 1 can be represented as
(G p ( j )) <
1 1 (G p ( j )) + q K
36
K p e = 10e
K Lb e a
K Lb
1 a
To verify Popov criteria the gradient of three-point characteristic must be smaller the calculated gradient K b tan = L a
K Lb < 10 a
if this is true for the given inequality, then is idle state global asymptotic stable
37
Gain Scheduling
It is an approach to control of non-linear systems that uses a family of linear controllers, each of which provides satisfactory control for a different operating point of the system.
One or more observable variables, called the scheduling variables, are used to determine what operating region the system is currently in and to enable the appropriate linear controller. For example in an aircraft flight control system, the altitude and Mach number might be the scheduling variables, with different linear controller parameters available (and automatically plugged into the controller) for various combinations of these two variables.
Pg
t
38
Adaptive Control
modifying the controller parameters to compensate slow timevarying behaviour or uncertainties.
For example, as an aircraft flies, its mass will slowly decrease as a result of fuel consumption; we need a control law that adapts itself to such changing conditions.
Adaptive control does not need a priori information about the bounds on these uncertain or time-varying parameters;
Robust control guarantees that if the changes are within given bounds the control law need not be changed
39
40
Feedback Linearization
common approach used in controlling nonlinear systems. transformation of the nonlinear system into an equivalent linear system through a change of variables and a suitable control input. Feedback linearization may be applied to nonlinear systems of the following form:
& x = f (x ) + g (x ) u y = h( x )
(1) (2 )
The goal, then, is to develop a control input u that renders either the input-output map linear, or results in a linearization of the full state of the system.
u = (x ) + (x ) y
z = T (x )
41
Pendulum example
Task: Stabilization of origin of pendulum eq.
Linear system
u=
& x1 = x2 & x2 = b x2 + v
2. Stabilizing fb controller
v = k1 x1 k 2 x2
3. Re-substituting to or fb control law
Closed loop
& x1 = x2 & x2 = k1 x1 (k 2 + b ) x2
43
44
&& = u y
u = ky with k > 0
It is clear that controller is not able to stabilise the semi stable system that has two open loop eigen values of zero. The root locus plot with two branches along the imaginary axis Switching function:
& & s ( y, y ) = my + y
With a scalar m>0 ,then a varibale structure controll law
45
& ( y = 0 ,y = 1 and m = 1)
46
s = a1 x1 + x2 = 0
On the manifold s=0 motion Independent of h and g
& x1 = x 2 & x 2 = h (x ) + g (x ) u
G and h are unknown nonl. F Goal: state FB stabil the or.
& x = ax
s =0
x2
x1
47
s >0 s <0
Low control accuracy. Power losses Excitation of unmodeled of dynamics Can result in instabilities
48