Vous êtes sur la page 1sur 19

Complement to:

"Adaptive Control: Stability, Convergence, and Robustness."



S. Sastry & M. Bodson, Prentice-Hall, 1989.

Homework Exercises

Dec. 1991

© Marc Bodson, 1991.

- 2-

Problem 0.1

Consider the plant Pes); 2/(8+ 1) and the reference model ~"(s)= 1/ (s+ 1).

a) Plot the responses over 20 seconds of (J(t), eo(t) and vet) = efi(t) + k p ;"(t) for the M.I.T. rule, the Lyapunov redesign and the indirect scheme of chapter O. Let r(t)= sin(t), 6(0); 1 and all other initial conditions be zero. Comment on the responses in view of the analytical results,

b) Repeat part a) with r(t) = «'.

Problem 0.2

Give an example of a control system where parametric adaptation is required or desirable. Identify the source of variation and indicate whether it is due to a nonlinearity, a slow state variable, an external factor, an initial uncertainty or an inherent change in the system under control.

Problem 0.3

Consider the MRAC algorithm of chapter 0, using the Lyapunov redesign. Let r = ro be constant. Show that the system with state variables (eo, t/J) is linear time-invariant Calculate the poles of the system as functions of a, kp and roo Plot the locus of the poles as ro varies from 0 to 00. Discuss what happens when ro=O, and when kp<O.

Problem 0.4

The stability properties of the MIT rule were investigated by DJ.G. James in "Stability of a Model Reference Control System," AIAA Journal, vol. 9, no. 5, pp. 950-952, 1971. The algorithm is the same as the one given by eqn. (0.3.6). The author calculated the stable and unstable regions of the algorithm, which are shown on Figure POA.

eI 1/
IBO /
100 j/
140 ,1/
120
100 /;
5 Figure PO.4: Stability Regions for the MIT Rille

Assuming that the plant is p(s) = 1/(8+ I), the reference model is ~(s)= 1/(s+ I), and the reference input r = sin( tV t), the x-axis of the figure becomes l'rl = tV and the y-axis becomes H" = g. Note that, for small enough (JJ, the MIT rule is stable for all g, while for small enough g, it is stable for all tU. Otherwise, the dynamic behavior of the algorithm is quite complex, with interleaving of the stable and unstable regions.

a) Write the differential equations of the overall adaptive system and show that it is a nonlinear time-varying system. Given that the equation for y", can be solved independently of the others, show that the remaining equations constitute a linear time-varying system .t = A(t) x.

b) Simulate the responses of the adaptive system for a few values of the parameters to check the validity of the figure. In particular, check the responses for {JJ=I and g=10,35,50 and 80, then for g=IO and {JJ = I, 1. 5 and 2.5. Let all initial conditions be zero and plot the error eo for 50 seconds. Could such

·3·

behavior be observed with a second-order linear time-invariant system?

Problem 1.1

a) Determine which functions belong to LI• L2• L_. LI c. L2c• L_.

11 (t) = e-a I for I fz(t)= t+ 1 ;

a>O and a~O I 13(t) = tL 1 ;

b) Show that Ie L.l n L_ implies je L2•

Problem 1.2

a) Show that A e R2)<2 is positive definite if and only if all> 0, a22 > 0, and all a22 > (a'2 + a21 i /4.

b) Find examples of 2x2 symmetric (but not diagonal) matrices such that A 2:0, A < 0 and A is neither positive nor negative semidefinite. In each case, give ,tiCAl.

c) Find an example of two symmetric positive definite matrices A and B such that the product is neither symmetric nor positive definite. Give ,tj(A B) and ,tj( (A B) + (A Bl).

Problem 1.3

Prove the following facts. All matrices are real and square (except in a». Use only the definitions of eigenvalues and eigenvectors.

a) For all Ce R-, CT C2:0 and CT C>O if rank (C)=n

b) A = AT implies ,tj(A) e R

c)A=AT and A.,(A).,t;A,z(A) implies xf X2=0

where Xl. X2 are the eigenvectors associated with Al (A). A2(A)

d) A 2:0 implies Re..tj(A)2:0

Problem 1.4

Prove the following facts. All matrices are real and square. You may use the fact that A = AT implies that A=UT AU with A=diag Aj(A) and UT U=l.

a) For A=AT A20 if and only if A.i(A)20

b) A 2 0 if and only if A.j(As) 20

c) For A=AT20 ..tmin(A)lxfs xT AxSAmu.(A)lxI2

d) For A= AT >0 ..t .... ,,(K1)=(..tmin(A)rl e)ForA=AT20 IIAII=..tmax(A)

t) det(S)*O implies A.j(A)=lj(s-1 AS)

g) A= AT >0, B=BT 20 implies A.j(AB)e R and ..tj(AB)20

Problem 1.S

Consider the plant Pes) = 1 /(s+ a,) and the reference model M(s) = 1/(s+ am). Let the controller be given by

u=dYp+r

where r is the reference input (bounded), U and y p are the input and output of the plant, and d is an adaptive gain with update law

d=- geo y,

-4-

a) Is the overall system described by a linear or nonlinear differential equation ? Is it time-invariant or time-varying ?

b) For constant g > 0, indicate whether the system is stable, uniformly stable, asymptotically stable, or uniformly asymptotically stable. Does eo -) 0 as t -) oo?

c) Let get) be a continuously differentiable function of time. What stability properties does the system have if get) > 0 for all t ?

Problem 1.6

Let t; I(t, x), x(to);xo, with I(t, x) globally Lipschitz in x (with constant 1) and 1(1,0) bounded (with bound b). Show that

k, +k2 e-/(t-Io):s; I x(/) I :s;k3 + k4 e/(t-Io)

Find expressions for kl' kz, k3 and k4 as functions of 1 Xo I, b and 1.

Problem 1.7

Consider the linear time-invariant system

x=Ax

X(IO)=XO

Assume that there exist matrices P = pT > 0 and Q; QT > 0 such that AT P+PA+Q=O

Find m ;;:: 0 and a > 0 as functions of the matrices P and Q such that 1 x(t)l:S;me-a(l-ro) IXol

Problem 1.8

Consider the linear time-varying system (from Vidyasagar's Nonlinear Systems Analysis, Prentice-Hall, 1978)

x=A(t)x

where

A(t) = ( -1 +acos2t -l-a sintcost

l-asintcost ) -1 +asin2 t

Show that the transition matrix dl(t, e) satisfies

( e(a-I)'cost

4>(1,0) "" (,,-1)1 •

-e smt

and that the matrix A(t) has eigenvalues that are independent of t and located in the left-half plane for 1 < a < 2. Discuss the stability properties of the equilibrium point at x = O. What conclusions can you draw from this example?

Problem 1.9

Determine which of the following functions are globally Lipschitz, and give the Lipschitz constant Let x and I be scalars.

x e'
a) 1(/,x)= l+x2 b) 1(/,x)=-- x
l+e'
c) f(t,x)=Ax d) f(t,x)=et x
e-«: 1(/,x)=..[i
e) 1(/,x)= eX +c" t) - 5-

Him: use the mean-value theorem of elementary analysis to relate the Lipschitz constant to af lax.

Problem 1.10

a) Given the linear time-invariant system .t ~ A x, determine whether the following A matrices correspond to an equilibrium point x = 0 that is stable in the sense of Lyapunov, asymptotically stable, or unstable.

_(-1 -3)

Az- 2 4

( -1 1)

A~= -2 1

(-1 1)

As=

-2 -1

b) For a general matrix

A= (ou all) a2l au

give the conditions on au, a12. a21 and a22 so that the equilibrium point is asymptotically stable, and so that it is stable in &he sense of LyapW1Ov.

Him: to find simple conditions on the elements of the matrix. recall the Routh-Hurwitz test.

Problem 1.11

Consider the circuit depicted in Fig. PI.II.

L

c

Figure P1.11: Circuit

a) Let Xl be the voltage on the capacitor C and Xl be the current in the inductor L. Show that the system is described by the differential equations

dx, I I

- =-- Xl- - Xl

dt RC C

cixl I -~-xl

dt L

b) Consider the "natural" Lyapunov function consisting of the total energy stored in the system elL 1

1I = '2 Xl + '2 Xl

- 6-

What stability properties of the equilibrium can you deduce from this Lyapunov function? c) Use the Lyapunov lemma to find a Lyapunov function such that

allxl2:s; v:S; a21xl2

for some strictly positive constants a1> a2, and such that p:S::-lxj2

For R == L= C= 1, give the specific values of the constants all a2- What stability properties of the equilibrium can you deduce from this Lyapunov function?

Problem 1.12

a) Consider the system

dx == _Xl dt

%(0)=%0

Determine whether the function on the right-hand side is locally Lipschitz. or globally Lipschitz.

b) Show that the differential equation can be solved exactly and deduce what the stability properties of the equilibrium point are.

c) Find a Lyapunov function to confirm the conclusions of part b).

d) Repeat parts a) to c) for the system

dx -r

- =-e x dl

e) Repeat parts a) to c) for the system

dx 1

- == -- x x(O)=xo

dt t+ 1

x(O) = xo

Problem 1.13

a) Calculate the eigenvalues and eigenvectors of

A"" (5 -3)

-3 5

b) Find the decomposition A=UT AU and find a symmetric positive definite matrix Al/2 such that A=AI/2 AII2,

c) Given an arbitrary vector x E R", show that the matrix A=XXT

is always symmetric positive semi-definite, but never positive definite. What is the minimum nunber of vectors Xi needed so that the matrix

A= f. Xj xT

.-1

can be positive definite ?

Problem 1.14

Consider the linear time-mvanant system with transfer function

H(s) "" y(s) "" ~

u(s) s+a

with a> O. Show that. for zero initial conditions

- 7 -

II Y II .. s II h 111 II U IL

where II h III is the L1 norm of the impulse response h(t) corresponding to H(s), and II y II ... II u II .. are the L_ norms of y(t) and u(t) respectively. Give the value of II h 111 as a function of a and b and show that there exists a nonzero u(t) such that the inequality above becomes an equality.

Problem 2.1

a) Consider the identifier of section 2.2. Show that the plant transfer function may be realized by two statespace representations (Rl) and (R2):

(Rl) i=Ap x+bp r

where



bp~b1. cp~a

and A. b 1.. a·, b· are as defined in equations (2.2.9) and (2.2.10). (R2) w~Ao w+bo r

_ T

YP- CO w

where

b) Show that (Rl) is controllable. Show that (Rl) is observable if rip. elp are coprime.

c) Show that (R2) is nonminimal and, from the eigenvalues of Ao I deduce that the extra modes are those of A.

d) Using the Popov-Belevitch-Hautus test, show that (R2) is controllable if np' dp are coprime. In the same manner, show that any unobservable mode must (indeed) be a mode of A. so that (R2) is detectablc. Hint: The Popov-Belevitch-Hautus test indicates that a state-space realization is controllable if and only if

rank (sf - A B) ~ dim (A) and observable if and only if

rank ( C ) = dim (A)

sf-A

for all s

for all s

Note that it is only necessary to check the rank for values of s for which det (sf - A) =0 O.

Problem 2.2

a) Let w(t) = sin 0). Find and plot

,

,1.(t) = J wZ(-r)d'f o

b) Show that there exist a], az and 6> 0 such that

'0+6

az ~ J w2(-r) d'f ~ at '0

- 8-

for alllo :i!: O.

c) Show that the following limit exists, independently of to

'0+1

s; = lim -61 J w2(r) d-r

I~-

lei

whereR,.,>O.

d) Repeat part c) with

w(t) = ( ~n (I) )

asm (1+')

and replacing w2('C') by w('C') wT('C'). What conditions must a., satisfy so that the matrix R .... is positive definhe ?

Problem 2.3

a) Consider the function wet) such that

W(l) = 1 W(l)=O

t E [n. n + (1/2)"+ 1 J for all positive integers n otherwise.

Plot wet) and show that there exists 6> 0 such that

'0+6

I ~(-r)d'f>O

I.

for all to ~ O. Show that, however, the solutions of

do not converge to zero exponentially. Is W persistently exciting? Why ?

b) Consider the following proof of exponential convergence for 1=- gwwT;. with w PE: Let V=;T ;, so that 1I=-2g (;T w)2S0. Therefore, for all to~O. 6>0, aad r e [10,10+6]

,T (toh~(to) ~;T (1") ;(-r) ~;T (to + ~') ;(10+ 6) (1)

and

",+1

v(to)- veto + 6) = 2 g f ;' (r) w(~) wT(~) ;(t") d~

(2)

'D+6

~2g;T(to+6) J W(f,)WT('f')d-r ;(to+6) lei

where the last inequality follows from (I). H w is PE, this implies that

veto) - v(to + 6):i!: 2 gal veto + 6)

and exponential convergence follows as in the proof of theorem 1.5.2. Why is this proof incorrect '1

(3)

(4)

Problem 2.4

This problem investigates the parameter convergence properties of the least-squares algorithm with forgetting factor

8(t)=-P(t) wet) (9T(t) w(t)- y,.(t)) pet) = l P(/) - pe,) wet) wT (t) pet)

9(0)=6(0)

P(O)=pT(O)=PO>O. 1>0

- 9 -

a) Let ..t "" O. Use eqn (2.0.30) to show that lo(t) - 0* I_'O as t_.oo if

t

J w(r)wT(-r)d'f?::a(t)/ o

and aCt) ~ "'" as t -+ co, Show that if a(t)?:: k t for some k > O. then 18(t) - (/ I converges to zero as 1/ t. What if a ~et?

b) For 1. ;to, find expressions similar to (2.0.29) and (2.0.30). Him: First derive d(rl) / dt and d(p-l 8) / dt.

c) What optimization criterion does the least -squares algorithm with forgetting factor solve?

d) Show that 18(t) - 8-1 converges to zero exponentially with rate 1. if pet) is bounded.

e) Show that pet) is bounded if w is PE.

Problem 2.S

This problem constructs discrete-time algorithms for the identification of sampled-data systems. The derivations follow lines parallel to the continuous-time case. However. see G.C. Goodwin & K.S. Sin (1984) for more details.

a) Consider the first order system

yp=-apJp+kpr

The continuous-time system is interfaced to a digital computer through discrete-time signals rn[k] and YD[k] such that

r(t)= rD[k] fortE [kT,(k+l)T]

YD[k]=Yp(kT)

By solving the differential equation, show that Y n and r D satisfy exactly a first-order difference equation

YD[k] = aD YD[k ~ 1] + kD rD[k ~ 1]

and find expressions for aD, kD• as functions of kp• ap• and T (this is the so-called step-response discrete-time equivalent of the continuous-time system). What is the discrete-time transfer function P(l)"" YD(l)/Fn(l)?

b) Extend the results of part a) to a general n-th order system

x""Ax+br

YP""Cx

c) Adapt the results of section 2.2 to the discrete-time by describing an identifier structure for an n-th order plant with transfer function F(z). In particular, show that

.T

Yn[k]""O w[k]

where 8· is a vector of unknown parameters and w is an observer state vector. Give conditions that the polynomial fez) must satisfy and indicate the simplifications that arise when f(z)::: Zll, i.e., when all the observer poles are at the origin. What is the effect of initial conditions in that case?

d) The so-called projection algorithm is the estimate 8[k] such that

18[k]-8[k-l]12

is minimized, subject to YD[k]=8T[k] w[k]

Using Lagrange multipliers. show that the solution of this optimization enterion is

- 10-

o(k] = O[k-l] _ w[k] OT[k-l] w[k] - YD[k] wT[k] w[k]

Show that 8[k] is also the projection of 9[k-l] on the set of 8[k] 's such that oT[k] w[k] - YD[k] = O. e) Find the (batch) least-squares estimate, which minimizes

i:

1(8[k])= L (8T[k] w[j]- YD[j])2 j~l

Then. show that the recursive formula for the least-squares estimate is P[k-l] w[k] wT[k] P[k-I]

P[k] = P[k -1] - 1+ wT[k] P[t -1] w[k]

k - k- _ P[k-l]w[k](8T[k-l]w[k]-YD[k])

8[ J-9[ 1] l+wT[k] P[k-I] w[k]

Hint: To find the difference equation for the covariance matrix. the following identity is useful (A+B crt = A-l_Kl B (l + C Kl Brt C KI

t) Simulate the responses of the identifier with the projection algorithm. Replace the denominator wT [k] w[k] by I + wT [k] w [k 1 to avoid possible division by zero or by a very small number. Let k p = 1, ap= 1, T=O.l s, and all initial conditions be zero. Plot rD[k1. YD[k], 81[k1, and 82[k] for TD[k] = sin (kT) and for 'D[k] = 1. Compare the convergence properties.

g) Repeat part f) for the least-squares algorithm. Let prO] = I and plot Ptt [k], Pu[k] and Pdk]. in addition to the other variables.

Problem 2.6

a) Find conditions on a), a2, PI' P2 such that the transfer function

is SPR.

b) Find conditions on Rlo Rz, Ct. Cz (all >0) such that the impedance Z(s)=V(s)! 1(5) (see figureP2.6) is SPR.

Problem 2.7

Let M(s) be a rational, strictly proper transfer function.

a) Let set) be the step response associated with Al(s). Show that if M(s) is SPR, then

(ds )

- ::>0

dt 1-0

and

Hint: Use the Kalman-Yacuboviwh-Popov lemma.

b) Show that M(s) is SPR if and only if there exists a minimal state-space representation t=Ax+hu

y=cT x

such that c=b and A+ AT =-Q for some Q=QT >0.

- 11 -

....

- o-----------------.

Figure P2.6: Circuit

Hint: Use again the Kalman-Yacubovitch-Popov lemma.

Problem 2.8

a) Prove one direction of the Kalman- Yacubovitch-Popov lemma, that is, show that If there exist matrices p= pT > 0, Q= QT >0 such that

AT P+PA=-Q

and

Pb=c

with [A,b1 controllable Then

M(s)=cT (sl -Art b is stable

Re M(jm) > 0 for all QJ

and

lim fiJ2 Re M(jfiJ) > 0

1»4-

Hint: Show first that

P (j wI-Art +(- j o I _AT r' P=(-j wI -ATrt Q(j oJ! -Art

b) Consider the system

_T

t=Ax-b8 w(x)+bu

where z, b E RII, 9-. W E Rill. A E RIWI, and U E R. A and b are known exactly, w(x) is a known, globally Lipschitz function of x and the vector x(t) itself is available. The vector 8- is completely unknown. Assume that A is asymptotically stable and [A, b] is controllable. Use the Kalman- Yacubovitch-Popov lemma to find an adaptive control Jaw such that x - x". ~ 0 as t ~ 00 where

i:1II=Axlll+br

12 -

where r E L_. Prove the result, including the boundedness of all the signals.

Problem 2.9

This problem examines the extension of the single-input single-output identification results to multivariable systems where all the states are available for measurement,

a) Consider the state-space representation

.t=A* x+B* u

where x e R", u e Rita, A a e R1UUJ and B* e R"""'. ASsume that x, .t and u are available. A * and Ba are completely unknown. Show that a multivariable, linear error equation can be obtained, and that a gradient identification algorilhm can be derived. What stability properties can you establish?

b) Propose an algorithm for the case when .t is not available and one does not wish to differentiate x explicitly for noise considerations.

Problem 2.10

This problem investigates the stability properties of the projection algorithm. which is the discrete-time equivalent of the gradient algorithm.

a) Consider the modified projection algorithm

9[k]=9[k-l]- eT[k-l]w[k]-YD[k] w[k] 1 + wT[k] w[k]

Define the a priori error

e-[k]=eT[k-I] w[k]- YD[k] and the a posteriori error

e+[k] = eT[k] w[k] - YD[k]

Show that

so that

e-[k]

elk] = 8[k -1] - 1 + wT[J:] w[k] w[k1

= e[k - 1] - e+[k] w[k]

In other words, the modified projection algorithm is a gradient algorithm for the a posteriori error e+[k]. b) Let

*T

YD[k]=tJ wit]

and

Using the results of part a). show that

c) A sequence x[k] is said to be in lp if

- 13 -

..

1: I x[k] I P < 00 ,t--.l

and x E I .. if x[k] is bounded for all k, Show that

0) I~[k] ISI~[k-l] ISI,[O] I for all k

e-[k]

(iv) ( 1 + wT[k] w[k])lll e 12

e-[j:1

(v) ( 1 + wT[k] W[k])ll2 --+ 0 as t --+ 00

(vi) ';[k]-,[k-l]'--+O as t--+-

Does (vi) imply that elk] tends to some limit as k --+ DO and, if so, is the limit necessarily e" ?

Problem 2.11

Show how the identification method described in section 2.2 can be extended to proper transfer functions of the form

~ ( ) ....- t

Yp s = pes) = aHI s +a,,8 + + al

f(s) sIt + fill s,,-1 + + PI

Specialize the results to a first-order system (n = 1) to check the method.

Problem 2.12

Consider the linear error equation el =; w where el, " w are all scalars. Furtner, let wet) = Wo be constant. a) Consider the gradient algorithm

,=-gwij;

with g:> 0 and ;(0) =;0 arbitrary. Find the solution of the differential equation. Indicate to what value ; converges and describe the type of convergence (exponential. asymptotic •... ). Discuss the case when wo=o.

b) Consider the least-squares algorithm

¢J=-g pw~,

t=:» p2w~

with g:> 0, ~(O) = ;0' and P(O) = Po:> O. Find the solutions of the differential equations. Indicate to what values; and p converge and describe the type of convergence. Discuss the case when Wo ""0.

Hint: note that :t (; p-')=O.

c) Consider the least-squares algorithm. with forgetting factor ¢J=-g pw~;

- 14 -

p=-g(-1p+ p2 w~)

with g > 0, 1> 0, KO);;;;;; ~o, and P(O);;;;;; Po > O. Give the solutions of the differential equations. Indicate to what values; and p converge and describe the type of convergence. Discuss the case when Wo = O.

Hint: start again from ~ (; p-1).

d) Consider the stabilized least-squares algorithm with forgetting factor ,=-g pw~;

p=> g( -1 p+ p2w~+a p2)

with g > 0, 1> 0, a> 0, ;(0) '" ;0. and p(O) = Po> O. The stabilized algorithm was proposed in the discrete-time framework by G. Kreisselmeier, in "Stabilized Least-Squares Type Adaptive Identifiers," IEEE Trans. on Automatic Control, vol. 35, no. 3, pp. 306-310, 1990. The stabilizing term a p2 is an interesting alternative to covariance resetting.

Give the solution of the differential equation for p. Indicate to what values, and p converge and describe the type of convergence. Discuss the case when Wo = O.

Hint: show that p is bounded away from 0 to establish the convergence properties of;.

Problem 2_13

A periodic signal y(t) is measured. Its period T is known and one wishes to design a recursive scheme to estimate the coefficients of its Fourier series. It is assumed that a finite number of terms is sufficient to represent yet) exactly, the number being known.

a) Show that the problem can be put in the form of a linear error equation of the type described in chapter 2. Give a recursive algorithm to estimate the coefficients of the Fourier series.

b) Determine whether the estimates are guaranteed to converge to the values of the coefficients of the Fourier series, and justify your answer.

Problem 2.14

a) Consider the assertion made in the book on p. 61 that the filters (sf -Ar1 bJ. can be replaced by (at least) two other vector transfer functions. For the first transfer function, indicate how the vector 8· is related to the polynomials kp np(s) and dp(s). Give explicit formulas relating the a's and p's to the components of 8· for the transfer function

b) Repeat part a) for the other transfer function.

Hint: it may be useful to remember partial fraction expansions.

Problem 2.1S

This problem investigates the properties of the projection modification, introduced to keep the adaptive parameters within a specified region in which the nominal parameters are known to lie. It is shown that a different projection modification is necessary for the least-squares algorithm in order to preserve the properties of the Lyapunov function.

Assume that 8· E S. where S is a closed set with a smooth, differentiable boundary given by 1(81.82, .... 8,,)=0. Assume that 8E S if and only if 1(81) .... 8 .. )'5.0 and that outside S. f (81, ••• ,8,,) > O. See figure P2.1S for n = 2. Let x(8) be a vector perpendicular to the plane tangent to the boundary of S at 8, pointing outwards.

a) Show how x(8) can be obtained from I(H1, ••• ,8,,). What condition must S satisfy so that ;T x > 0 for 8 on the boundary ?

- 15 -

Figure P2.1S: Projection modification.

8.

b) Show that the modification (J = z _ (ZT x). X xT X

if/(O)=O and (zTx»O

=z

otherwise

consists in projecting the update vector z on the tangent plane when the boundary of the set S is reached and the vector is pointing outwards.

c) Show that, for the gradient algorithm (z =- gel w), the projection modification guarantees that oCr) E S for all t, assuming that 8(0) E S. Prove also that, for v = f/l ,

_'" ~ 2g (;T w)2

d) Repeat part c) for the least-squares algorithm, letting z = - g Pel w, P = - g P W wT P, and the LyaPUIlOV function V=;T P-';. However. note here that the properties of the Lyapunov function are not preserved by the projection modification.

e) Show that to preserve both properties for the least-squares algorithm, the following projection can be used

. (zT x).(P x)

8 = z - ..;.._-=-__;_~ xT Px

if 1(0)=0 and(zT x»O

Optional: Show that this modification consists in projecting in the transformed space p-1/2. 8 instead of the 8 space.

f) Consider the case when 8 e R2 and the set S is the set of «« such that 81 s 9t. with 82 arbitrary. Write explicitly what the update laws for 8, and 02 are, as functions of ZI, %2, PlI• pt2• P22, and oj (compare the gradient and the least-squares algorithms).

Problem 3.1

This problem considers the sampled-data conrrol of a first-order system. The scheme is an indirect, model reference adaptive control algorithm.

a) Consider the first order system

- 16-

The continuous time system is controlled by a digital computer through discrete time signals uD(k] and Yn[k] such that

fortE [kT,(k+l)T]

Let the control1aw be given by

Show that there exist nominal values of the controller parameters c * and d* such that the discrete time transfer function from r D to Y D matches the reference model transfer function

A4'(z)= ~

z-aM

where kM, aM are arbitrary, but I a". 1< 1.

b) Simulate the responses of an indirect adaptive control algorithm, combining a discrete time identifier using the modified projection algorithm (cf problem 2.10) and a control law derived from part a). Let kp=l, ap=l, T=O.ls and M(z) be the discrete time equivalent of 3/(s+3). Let rD[k]=sin [kT]. Include a standard modification to tile identification algorithm so that the estimate of the gain is bounded away from 0 (assume that the sign and a lower bound of the gain is known).

Problem 3.2

a) Consider the vector W, in section 3.2. Show that W is the state of JS in a nonminimal state-space representation (give the A. b, and c matrices).

Hint: First show that there exist unique t; g~ E R and r. g. E Rtt-t such that

by proving that there exist unique polynomials r. t of degree at most n - 1 such that

~ r t,'1;

sP=7+7 r

Indicate how t and t can be obtained from P and 1.

b) Consider the polynomial q in section 3.2. Under the assumptions, is this polynomial guaranteed to be Hurwitz? What can you conclude about the stability of the controller itself (as represented in Figure 3.2),

Problem 3.3

a) Consider the output error MRAC scheme of chapter 3. Let the reference model be given by

A s+3

M;;;;;----

(s+ l)(s+5)

Simulate the response of the adaptive scheme for r(t) = 2 sin (r) and

P;;;;. s+l

S2+ 1

- 17 -

Let g= 1 and all initial conditions be zero. Plot eo and the adaptive parameters for 1000 seconds. Calculate the nominal values of the adaptive parameters and comment on the responses.

b) Repeat part a) with the plant

~=~

(s-1)2

and the same adaptive controller. Again, comment on the responses.

Note: This problem illustrates the fact that two totally different unstable systems can be stabilized by a single adaptive controller. However, as the simulations show. some surprising responses can be observed within the confines of the Lyapunov stability results. Poor convergence results are often observed with gradient algorithms, and the interested student is invited to investigate other algorithms based on the least-squares estimates.

Problem 4.1

In this problem, the averaging results will be proved in the (Simpler) linear periodic case, t.e.,

X(t) = £ A(t) x(t)

x(O)=xo

where A(t) E R""" is a piecewise continuous, bounded, and periodic function of t with period T. a) Let

1 T

AllY = T J A('r) d'f o

and

I

W(t)= J (A(-r)-A .... )d .. o

Show that W(t) is periodic and bounded,

b) Show that. for e sufficiently small. the transformation from x to z defined by

x(t) = z(t) + e W(t) z(t)

is one-to-one and is differentiable with bounded derivatives. Further

1 x(t)- z(t) 1 <2 e T IIA(. )11",,1 z(t) 1

c) Show that z satisfies a differential equation

t ... e AllY z + £2 (J + e W)-l (A W - W A ..... ) z

d) Show that if

XliV = AllY XlIV

is exponentially stable, then t = e A(t) x(t)

is exponentially stable for e sufficiently small. Hint: Use the Lyapunov lemma

18 -

Problem 4.2

Calculate the averaged system and simulate the responses of the original and averaged system for

a) x=- g sinl(t) x g= 1 and g=O. 25

b) X=-g(cos(t)+sin(2t»lx g=0.5 Plot 1n (xl) and In (x:').

Problem 4.3

a) Consider the least-squares algorithm

«=:« PwwT; P=-g PwwT P

;(0)=';0 P(O)=p(Ol =Po>O

where a gain g > 0 has been included. Assume that w is stationary. Find an expression for the averaged system. Solve for Pall and ;av and discuss the convergence properties of ¢Jav when w is PE. In particular, show the asymptotic stability of the parameter vector and characterize the type of convergence.

b) Repeat part a) with the least-squares with forgetting factor

P=-g(-lP+PwwT P) 1>0

Problem 5.1

a) Consider the system

.t(t) = A(t) x(t) + B(t) u(t)

Prove a special case of theorem 5.3.1, by showing that

If: A(t), B(t) are piecewise continuous and bounded, and

.t(l) = A(t) x(t)

is exponentially stable

Then: (i) IIxll.. s r .. lIull .. for Xo = 0 and for lIull_ < 00. Find an expression for roo as a function of the constants m and a of the exponential stability definition, and of the bounds on A(t) and B(t).

(li) IX(I)I converges to a ball of radius r_lIull .. if Xo ;t O.

b) Find an example of a system

x= f(t, x)

such that x =0 is a stable equilibrium point, but.t= f(t, x)+ E has unbounded trajectories for any E> O.

Problem S.2

The following problem illustrates the tradeoff between speed of convergence and robustness. a) Let the plant

Jp=-apYp+kpr

where k p is unknown and a p > 0 is known. One wishes to identify k po Exploiting the fact that a p is known, the following identifier is created

w=-apw+r

- 19 -

iJ--gPW(Bw-yp) g>O

P=g().p_p2W2) ).>0

Explain how this identifier is related to the algorithms presented in the book and what the nominal value of the parameter B is. Simulate the responses for a p = 1, k p = 1, ..t = 1, P(O) = 1, and the other inital conditions be all zero. Let r= sin (t) and experiment with the values g =0. 2,1,5,25.

b) Replace the equation for w by

w=-apiw+r

Simulate again the responses, with apj=O. 9.

Vous aimerez peut-être aussi