Chapter 3 System ID
Chapter 3 System ID
1. Scalar case, one unknown parameter, intuitive method 1 2. Scalar case, one unknown parameter, intuitive method 2 3. Scalar case, one unknown parameter, un-normalized 4. Scalar case, one unknown parameter, normalized 5. First order linear system-scalar case, un-normalized 6. First order linear system-vector case, un-normalized 7. First order linear system-vector case, normalized 8. SPR Lyapunov approach, normalized 9. Gradient method, normalized 10. Least squares, normalized
1. Scalar case, one unknown parameter, intuitive method 1 2. Scalar case, one unknown parameter, intuitive method 2 3. Scalar case, one unknown parameter, un-normalized method 4. Scalar case, one unknown parameter, normalized method 5. First order linear system-scalar case, un-normalized 6. First order linear system-vector case, un-normalized 7. First order linear system-vector case, normalized 8. SPR Lyapunov approach, normalized 9. Gradient method, normalized 10. Least squares, normalized
1. Scalar case, one unknown parameter, intuitive method 1 System : y (t) = .u (t) Where : y (t) u (t) = output = input = unknown constant Assume that y (t) and u (t) are measurable of . Solution : Get the 1/0 pair {u (t) , y (t)} over an interval [ , some t [ , + T] and choose as Remark : u (t) maybe very close to zero = very big! Unbounded Remark : It would be worse if the system is subjected to noise The system would result in a large spread in the value of at different t [ , + T] Example : y (t) = . u (t) + d Review y (t) = if u 0 the problem is = of u 0 ; may have measuring error/noise by u 2. ID Scalar case, one unknown parameter, 2nd intuitive method Lets define an estimator with t [ , + T] system : y = . u(t) . u(t) , [ , + T] + T] so that u (t) 0 for t to and it is desired to obtain an estimate
The solution maybe considered as one that minimizes the performance index (p1) : Where [ [ ] [ ] ]
for u (t) = 0 , t [ , + T]
Remark : as in the previous method, can only be calculated once if no noise present Remark : If noise shows up, it might not gine true of Remark : Increasing of I will improve To anticipate it, we meed RLS : recursive lee square! Because its impossible to increment the function to another time interval 3. ID Scalar case, one unknown parameter, unvormalized (the system) System y(t) = Where u . is an unknown constant and u,y are measurable from the measured data
output error
performance )
J( is pointuise of J
is convex over
* ( ) ) +
Stability of the estimator above can be proved as : Let V ( 0 (proef) = < as t = Check = If then 0 as t = y= u Because of : V = If When will as t = = ? as t = J= (Barbalats lemma) ( ) 0 V(x) is p.d if V (x) = 0 V (x) > 0 parameter error is bounded ( Check x=0 x
A necessary and sufficient condition is that u satisfies the PE condition and for some PE = Persistent Exatation U should be rich enough to have parameter convergence 4. ID Scalar case, one unknown parameter, normalized System y(t) = Where is an unknown constant and u,y are measurable u Since now u could be unbounded, we may not set Because it would give an unbounded Let us divide the system equation by the normalizing signal m > 0 To have Where and , and m2 = 1 +
u2
= = = Let V = = =
) =m>0
* ( = -
<
= if then as t = as t =
For parameter convergence, me need PE Persistent excitation ID of 1st order linear systems (unnormalized) Plant : Where Xp R is the output of the plant and u R is the bounded input
Ap and Kp are unknown constants, but me know that ap < 0 The problem is to determine ap and kp from u and xp
Parallel estimator output error method only for scalar system (not for vector) Series parallel estimator equation error method for scalar and vector systems
( ) ) ( ( ) ( ) )u
- error dynamics ,
Where e =
(The output error dynamics is driven by the output error) And parameter error
Y (t) = u
st
Where Xp
IR , u
R are measurable
Parallel estimator output error method (only for scalar) Series parallel estimator equation error method (also for method)
( )
( ) ) ( ( )u )
- error dynamics
Take the time derivate of V along the trajectory of the errors dynamics, we have : ( Bounded )
Pick
[ ]
Xp
BI Bounded Input
BIBO Stable
BO Bounded Output
( ( )
[ )
= [ t<0
] )
Pick
. We need PE for convergence of the parameters. ID VECTOR CASE UN-FORMALIZED Plant = Where Assume that is Hurwitz and u is bonded. We would like to find and , based on the information of Method : Output error method Define the parallel estimator : The error dynamics can be as : Pick the Lyapinov function candidate : ( ) =( ( = ( ( ) ) ) ( ) )
and u.
? Although is known to be stable, its elements are not known and hence a matrix p > 0 cant be found s.t. with Q > 0. This approach doesnt work for veetos case but its fine for scalar case. Method 2 : Equation error method Define the series-parallel estimator ( ) Where and and is known Let V = =( ) ( ( ( ) ) ) ( ) ( ) [ ]
) s, t, (
) )
) ) ( (
) )
( ( Pick ( ( ) ) ( ( ) )
( )
Update laus
( because q is a constant
) ( )
Define e = x - Where s is the laplace variable Ns is to be designed s.t. and with and ns =
(s-am)e = (S-am) . (x - ) e. - - ) am (x - ) e. = (ax bu) (am + ( -am) x + = am (x - ) + (a- x + (b- )u = (am = (am (x - ) + (a- x + (b- )u am (x - ) - e. e + (a- x + (b- )u e+ + Let V= (am [ (am xe ue ( ( ) - ] ) )
E,
e. m = < <proof) : =
<proof) :
e+ +
=
= =
Where
Linear Parametric Model (LPM) SISO Plant : Y = CT.X Where X E Rn , X(o) = Xo , y ,u ER are measurable
=[ =
Review e = x-
updated laws : Positive Linear System SPR : Strictly positive Real
Positive linear systems are linear systems with positive real T.F.s System :
(n-th order SISO linear system) Def : h(s) is positive real (PR) if Re [h(s)] 0 Re [s] 0
h(s) is strictly positive real (SPR) if h (s- ) is PR for some > 0 e.q. h(s) = h( )= = If Re [h(s)] = Then h(s) is PR For SPR : Pick h(s - ) = is P.R
( )
> 0, S=
[ ]
[ ]
is SPR Thm : h(s) is SPR iff h(s) is strictly stable, and Re [h(j )] > 0 Some useful necessary conditions to check SPR : 1. h(s) strictly stable e.g h(s) = is not SPR
because the evalue is not in the left hand plane 2. h(s) has relative degree 0 or 1 e.g h(s) = is not SPR
4. the ngguist plot of h(j ) lies entirely in RHP (Right Hand - Plane) 5. phase shift in response to sinusoidal input is always less than 900 the kalman-yakuborich lemma (positive real lemma) lemma : system : y= (A,B) controllable The T.F. h(s) = Iff is SPR
PB = C Controllable stabilizable Uncontrollable PC stabilizable Co stabilizable stabilizable stabilizable stabilizable f is smooth is continuous uncontrollable not stabilizable
p.c. stabilizable
modified k-y-lemma kaliman-Yakubovich-Meyer Lemma given x if the T.F. vector q and p = PT > 0 s.t 0 A asymptotically stable, symmetric p.d. matrix L is SPR, then
Choose L(s) s.t. L-1(s) is a proper stable T.F. and G(s) . L(s) is a proper SPR T.F y = G (s) . L(s) . = G (s) . L(s) . e.q : y =
= = G(s). [ ] * +
L-1 =
] *
][
Define
(
( ) ( )
etc Case 2 :
(
GL
)
e
( )
)]
[ ( )]
( )
Two approaches are introduced below based on different cost-function Case 1 :Instantaneous cost function ( ) (
( ) ( )
[ [
] ] ( )
( ) ( )
( )
*it means : ( )
}* to make
( )
( )
( ) [
( (
Homogeneous
Note that R(t) and Q(t) are exactly solutions to the following two Non-homogenous D.E. (differential equation) respectively { }