Você está na página 1de 18

Linear System

Homework 2 Due: Oct. 13, 2010 ( in class)

Problem 1 Consider the following linear system

x(t ) = Ax(t ) + Bu (t )
0 1 0 where A = and B = 1 4 2

(1)

1. Find the eigenvalues and eigenvectors of the system matrix A (you may use Matlab). Is the system stable ? Explain. 2. Find the modal matrix Am = T 1AT , where columns of the similarity transformation matrix T are the eigenvectors of the matrix A. Is the modal matrix unique? Explain. 3. Find the exponential matrix eAt using four different methods: (a) Cayley Hamilton theorem (Finite series representation). (b) Resolvent matrix (Inverse Laplace transform of (sI A)1) (c) Modal transformation T where eAt = TetT 1 . (d) Use Maple or Mathematica (if you have accessed and familiar with one of these tools, note: this part is optional) 4. Find the limit of the exponential matrix eAt as t .

0 5. Solve analytically for the time responses x(t)to initial conditions x(0) = and no 3 applied input u(t)=0 for all t 0. Plot your time responses.
6. (a) Solve analytically for the time responses x(t) to zero initial conditions 0 x(0) = and with input u(t)=7 for all t 0. What are the steady-state values of x(t); 0 i.e. limt x(t)? (see hint below) (b) Find the steady-values using the state-space model given in equation (1) without solving for the time responses? 7. Solve analytically for the time responses x(t) to initial conditions in Part (5) and at the same time with the applied input in Part (6). Plot your time responses.

Hint: When you solve this part, just try to get an integral form like this: 7 v e sin 3v t 3 dv x(t ) = 0 1 v 7e (cos 3v 3 sin 3v)

Once you get the expression of x(t) above, you can use the result as follows directly

7 7 t 4 12 e (3cos 3t + 3 sin 3t ) x(t ) = 7 t e sin 3t 3

Problem 2
1 2 3 Given the following matrix A = 2 2 4 3 2 5 1. (a) Find a set of orthonormal basis vectors for the range of A. Hint: Use Gram-Schmidt orthogonalization. (b) Can you nd a solution x R3 such that Ax= b where

2 (ii) b = 0 1 If yes, is the solution unique? If not, explain why.

9 (i) b = 12 15

2. Find a set of orthonormal basis vectors for the null space of A. 3. Use MATLAB to determine the singular value decomposition of A. 4. Using the results from the singular value decomposition in Part 3, answer the following questions: (a) What are the singular values (1,2,3)of A? Note that 1 2 3. (b) What is the rank of A? Verify your result using MATLAB rank(A). (c) What is the right singular vector associated with the singular value 3? Show the connection of the right singular vector with the null space of A in Part 2. (d) What are the left singular vectors corresponding to the non-zero singular values of A? Show the connection of the left singular vectors with the range space of A in Part 1.

Problem 3

In this problem, we provide a procedure whereby a singular value decompostion of A can be computed using a method based solely on eigenvalues and eigenvectors. As we know, any real nm matrix A can always be written according to SVD in the form
A= U V
T

(2)

where U and V are unitary matrices and assuming without loss of generality nm
1 0 0 2 = 0 0 0 0 0 m

then where

AT A = (U V T )T (U V T ) = V (T )V T
12 0 2 0 2 T = 0 0 0 0 2 m

(3)

(mm diagonal matrix)

(4)

with diagonal elements i2 (i = 1, 2,

m) . In other words, the unitary matrix V is a m) are the

similarity transformation that diagonalizes the matrix ATA and i2 (i = 1, 2, eigenvalues of ATA. Namely, we have
12 0 2 T T T 0 2 V (A A) V = = 0 0 0 0 2 m

(5)

On the other hand,

AA = (U V

)(U V

)T= U(

)U

(6)

12 0 2 0 2 T = 0 0 0 0 0 0

0 0

0 0

2 m 0

0 0

0 0

0 0 0 0 0

(nn diagonal matrix)

(7)

with diagonal elements i2 (i = 1, 2, m) and (n-m) zeros. In other words, the unitary matrix U is a similarity transformation that diagonalizes the matrix AAT and i2 (i = 1, 2, m) along with (n-m) zeros are the eigenvalues of AAT. Namely, we have
12 0 2 0 2 T T T U (AA ) U = = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

2 m 0

(8)

0 0

0 0

Lets apply the above ndings to the simple problem below 1 4 Given the following matrix A = 2 5 3 6

1. Find the eigenvalues and eigenvectors of the matrix ATA using Matlab. The eigenvector matrix of ATA forms the unitary matrix V in the singular value decomposition of A according to equation (5). 2. Find the eigenvalues and eigenvectors of AAT using MATLAB. The eigenvector matrix of AAT forms the unitary matrix U in the singular value decomposition of A according to equation (8). 3. Finally, determine the singular values i (i =1,2,r m)of the matrix A from the square T root of the eigenvalues of A A.

4. Compare the results obtained from the Matlab command svd(A) to the unitary matrices U and V obtained in Parts (1) and (2).
The LESSON in this problem is that SINGULAR VALUE DECOMPOSITION can be solved as an EIGENVALUE problem. And in general, singular value decomposition CANNOT be done by hand (except possibly for systems of order less than 3); just like in the EIGENVALUE problem.

Linear System
Homework 3 Due: Oct. 29, 2010 ( by 5:00pm)

Problem 1. Consider the nonlinear state equations (which were studied extensively in class)

x2 (t ) 2 x1 (t ) x2 (t ) x1 (t ) x (t ) = x (t ) + x 2 (t ) + x 2 (t ) + u (t ) 2 1 1 2
1 and the nominal condition dened by u0(t)=0 and xeq = 0 1. Find A and B of the linearized state equations evaluated at the above given nominal condition, where x(t ) = A x (t ) + B u (t ) Is the system stable? 0.01 2. Find the perturbed state responses x(t) when u(t)=0 and x(0) = 0.01 0 3. Find the perturbed state responses x(t) when u(t)=0.01sint and x(0) = 0 4. Under the conditions of Part 2, solve the full nonlinear state equations for x(t) (using numerical integration) for 0t 20 sec. Compare graphically the results to those obtained from the linearized state equations x(t) xeq + x(t). Is the linear state model representative of the nonlinear system? (note: see supplementary reading for writing your own function to solve the nonlinear equation) 5. Under the conditions of Part 3, solve the full nonlinear state equations for x(t) (using numerical integration) for 0 t 20 sec. Compare graphically the results to those obtained from the linearized state equations x(t) xeq + x(t). Is the linear state model representative of the nonlinear system? (note: see supplementary reading for writing your own function to solve the nonlinear equation) 6. Is the linearized system controllable?

Problem 2. Given the following linear time-invariant system,


x (t ) = Ax (t ) + Bu (t )

1 with initial conditions x (0) = 1

1 1 and where A = , 0 2

0 B= 1

1. Is the system controllable? Explain. 1 2. Find a control input u(t) that bring the system states to x (t f ) = where tf =10 sec. 2 Confirm your results with simulation of the responses x (t ) for 0 t 11 sec. 3. Repeat Part 2 where tf =1 sec. Confirm your results with simulation of the responses x (t ) for 0 t 11 sec. How does this control input u(t) compare with the previous control obtained in Part 2? (i.e., higher or smaller control input). 4. Find a totally dierent solution to the control input u(t) that solves Part 2. That is, the solution u(t)in Part 2 is NOT unique. For example, in digital control let

u for 0 t t1 u (t ) = 1 u2 for t1 t 10
where u1, u2 and t1 are constant parameters (to be determined) that provide another control input u(t) for the solution of Part 2.

Problem 3 Consider the following linear time-invariant system,


x (t ) = Ax (t ) + Bu (t )

1 2 3 where A = 0 2 0 , 0 0 3

1 B = 1 0

1. Is the system controllable? Explain. 2. Is the system stabilizable? Explain. 3. Identify the modes that are uncontrollable. 4. Find a set of orthonormal basis vectors for the controllable subspace. 5. Find a set of basis vectors for the uncontrollable subspace. Are these vectors orthogonal to the controllable subspace? 6. Determine a state transformation P that separates the system into controllable xc (t ) and uncontrollable xc (t ) subspaces where

x (t ) x (t ) = P c xc (t )
7. Find the state model of the system transformed by the similarity transformation P obtained in Part 6. Use this state model to determine which modes in the system are controllable and uncontrollable.

HW #4 Due: Nov. 12, 2010 by 5:00pm


Problem 1
Given a linear time-invariant system for the three-mass-spring system described in Example 3 of Section 5.5.3,

x (t ) = Ax (t ) + Bu (t ) y (t ) = Cx (t ) + Du (t )
with initial conditions x (0) = 0 , and

0 1 0 A= 1 0 0

1 0 0 1 0 0 0 2 0 0 0 1

0 0 0 0 1 0 0 1 0 0 0 1

0 0 0 , 0 1 0

0 1 0 B = , 1 0 1

C = [ 0 0 1 0 0 0] ,

D=0

Note that in this problem we have equal forces u(t) applied simultaneously to masses m1
and m3, and applied on mass m2 in the opposite directions. The measured output y(t)is the position of mass m2. 1. Is the system controllable? Explain. 2. Identify the modes that are controllable and uncontrollable. Provide a physical meaning to each of the controllable modes (if any). 3. Can you nd a control input u(t) that bring the system initial states to the following nal states x (t f ) ?

1 1 1 (a) x (t f )= 1 1 1

0 3 0 (b) x (t f )= 2 0 2

1 2 2 (c) x (t f )= 2 1 1

where tf =10 sec. For the case where you can, nd the corresponding control u(t) and show the system responses x (t ) for 0 t 10 sec. 4. Can you find a similarity transformation that places the system into the controllable form? If no, explain why not. 5. Can you find a similarity transformation that places the system into the controller form ? If no,

explain why not. 6. Is the system observable? Explain. 7. Identify the modes that are observable and unobservable. Provide a physical meaning to the unobservable modes (if any). 8. Can you find a similarity transformation that places the system into the observable form?.If no, explain why not. 9. Can you find a similarity transformation that places the system into the observer form? If no, explain why not.

Problem 2
Recall that all the units in Problem 1 are respectively m and m/sec for the mass positions and velocities, and the applied force u(t) in N. For some odd reasons, your high-level manager wants you to present the state-space model of the three-mass-spring system given in Problem 1 to the company executives in the following units for the states x(t), input u(t) and output y(t): x1(t)in units of feet, x2(t)in units of feet/min.

x3(t)in units of inches, x4(t)in units of inches/sec.

x5(t)in units of miles, x6(t)in units of miles/hr.

u(t)in units of lbs, y(t)in units of inches.

1. What are your new state model matrices A, B, C , D ? 2. What are the system eigenvalues of your new state model? Are they the same as the original model? 3. Are any of the system controllability properties changed? If yes, explain. 4. Are any of the system observability properties changed? If yes, explain.

HW #5 Due: Nov. 26, 2010 by 5:00pm


Problem 1 Find the orthonormal basis vectors by hand for the range space of A and the null space of AT for the following matrices:

1 2 (a) A = 2 4 4 8
In each case,

1 2 1 (b) A = 1 2 3

1 0 2 4 (c) A = 1 1 3 6 0 1 1 2

1. Show that the two subspaces Range(A) and Null(AT ) are complementary subspaces (i.e., they are non-overlapping, the basis vectors in one subspace are orthogonal to the basis vectors in the other subspace, and the two subspaces combined would span the whole space Rn where n is the row dimension of A). 2. Verify your answers with Matlab using the commands orth(A) and null(A).If they are not the same, are your answers still correct ? Explain.

Problem 2 Given the following state model, 0 0 0 x(t ) = 0 1 0 x(t ) 0 0 2 where x(0)=x0 and the output vector

1 0 1 y (t ) = x(t ) 0 1 0
1. Is the system observable? 2. From the measurement of the output vector y(t) over the time interval t [0, 10], we 5 + e2t determine that y (t ) = , find x(0). 3e t 3. Using your results in Part 2, solve for x(t) for 0 t 10.

1/2

Problem 3 Given the linear time-invariant system of Example 4 in Section 5.5.4 of the notes,

x(t ) = Ax(t ) + Bu (t ) y (t ) = Cx(t ) + Du (t ) with initial conditions x(0) = x0 (unknown) and where 0 1 0 A= 1 0 0 1 0 0 1 0 0 0 2 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 , 0 1 0 0 0 0 B= 0 0 1 D=0

C = [0 0 0 0 1 0],

Note that in this problem the applied force u(t)ison mass m3. The measured output y(t)is the position of mass m3 1. Let u(t)= 0 and the time history of the output y(t)is provided in the data le yhw5a.mat (which you need to download from course website) for for 0 t 10. Can you use the given data of the output y(t) to determine the system initial conditions x(0)? If yes, then nd x(0). Check by simulation that your estimation of the initial states x(0) is correct. 2. How would your procedure be different if u(t)is nonzero? Let u(t)=1 and the corresponding time history of the output y(t)is provided in the data le yhw5b.mat (which you need to download from course-website) for 0 t 10. Can you use the given data of the output y(t)to determine the system initial conditions x(0)? If yes, then nd x(0). Check by simulation that your estimation of the initial states x(0) is correct.

Note: 1. The data y(t) given in yhw5a.mat and yhw5b.mat were measured with t=0.1 sec. 2. The provided data yhw5a.mat and yhw5b.mat were generated with x(0)=[-1 -2 0 0 1 2]T; therefore, check if your solution of x(0) is correct (or close to that).

2/2

Linear System Homework #6 Due: Dec. 08, 2010 (in the class)

Problem 1
A linear state model with input u(t) and output y(t)is given below.

x1 (t ) x1 (t ) x (t ) = A x (t ) + Bu (t ) 2 2 x3 (t ) x3 (t )
where

x1 (t ) and y (t ) = C x2 (t ) x3 (t )

12 23 1 1 3 , B = 9 , C = 1 2 3 A= 6 2 [ ] 1 2 1 4

. 1. Transform the above linear state model into the following canonical form: .(a) Controller form .(b) Observer form . 2. Lets consider a state-feedback controlled system where the control is of the form

u (t ) = Kx (t ) = [ K1

K2

x1 (t ) K3 ] x2 (t ) x3 (t )

Find the gain matrix K such that the closed-loop system eigenvalues are at {-2, -3, -4}; i.e. the eigenvalues of the system matrix (A + BK). Hint: Use the controller form.

3. Lets consider an observer design using the output y(t) as measurement. The estimator has the following state model description

x (t ) = Ax (t ) + Bu (t ) + L ( y (t ) y (t )) and y (t ) = Cx (t )

with x (0) = 0 , where L is the gain matrix in the observer design to be selected so that
the error e (t ) = x (t ) x (t ) in the state estimates decays asymptotically to zero.

.(a) Find the gain matrix L such that the closed-loop observer eigenvalues are stable and at {-3, -4, -5}; i.e., the eigenvalues of the system matrix (A- LC). Hint: Use the observer form.

.(b) Simulate responses x (t ) of your estimator design using the input u(t)= sin(t) and 1 x (0) = 2 . Plot the response xi(t) and xi (t ) together (i=1,2,3) (note: you can use 3

lsim() function in Matlab) .

x (t )

System Model
Figure 1: Plant System and Estimator Models

Problem 2
Consider the following linear time-invariant system

0 1 0 x(t ) = 1 0 0

1 0

0 1

0 0

0 0 1 0 2 0 0 0 0 1 0 0

0 0 1 0 0 0 0 x(t ) + u (t ) 1 0 0 0 0 1 1 0 1 0 0

y (t ) = [1 0 0 0 1 0] x(t ) Physically this problem is for a three-mass-spring system (Example 3 in Section 5.5.3) where the input u(t) is a force applied to the first and third masses and the output y(t)is the sum of the first and third mass positions. (1) Find a set of orthonormal basis vectors for the controllable subspace. Check whether the controllable subspace is A-invariant. (2) Find a set of orthonormal basis vectors for the uncontrollable subspace which is also orthogonal to the controllable subspace. (a) Check whether the uncontrollable subspace obtained above is A-invariant. (b) Find an uncontrollable subspace that is A-invariant. What is the benet (if any) of having an uncontrollable subspace that is also A-invariant?

(3) Using results of Parts (1) and (2), nd a similarity transformation P that places the system into the following controllable/uncontrollable form xc (t ) A11 A12 xc (t ) B1 = + u (t ) xc (t ) 0 A22 xc (t ) 0
x (t ) y (t ) = C1 C2 c + Du (t ) x (t ) c

Verify that the pair ( A11 , B1 ) is controllable.

(4) From results of Part (3), determine the controllable and uncontrollable modes.
(5) Find a set of orthonormal basis vectors for the unobservable subspace. Check whether

the unobservable subspace is A-invariant. (6) Find a set of orthonormal basis vectors for the observable subspace which is also orthogonal to the unobservable subspace. .(a) Check whether the observable subspace obtained above is A-invariant. .(b) Find an observable subspace that is A-invariant. What is the benet (if any) of having an observable subspace that is also A-invariant?
.

(7) Using results of Parts (5) and (6), nd a similarity transformation Q that places the system into the following observable/unobservable form xo (t ) A11 0 xo (t ) B1 = + u (t ) xo (t ) A21 A22 xo (t ) B2
x (t ) y (t ) = C1 0 o x (t ) o Verify that the pair ( A11 , C1 ) is observable.

(8) From results of Part (7), determine the observable and unobservable modes. (9) Using the results in Parts (1)-(8), determine a similarity transformation T that places the original system into a Kalman canonical form.

Linear System Homework #7 Due: Dec. 17 (Fri.), 2010 (by 5:00pm) Problem 1
Consider the linearized equations

0 1 2 0 x(t ) = 0 0 0 2

0 0 0 1 0 2 x(t ) + 0 0 3 0 0 0

y (t ) = [ 0 1 0 0] x(t )

(1) Find a set of orthonormal basis vectors for the uncontrollable subspace which is also orthogonal to the controllable subspace. (2) Is the uncontrollable subspace obtained above A-invariant ? (3) Find a set of orthonormal basis vectors for the observable subspace which is also orthogonal to the unobservable subspace. (4) Is the observable subspace obtained above A-invariant ? (5) Transform this system into a Kalman canonical form. You may use the m-le canon_struc.m. Make sure that you identify the elements of the state vector. (6) Find the SISO transfer function matrix G(s) for the minimal system. What is the order of this minimal system ?

Problem 2
Consider the discrete-time system

x(k + 1) = Ax(k ) + Bu (k ) y (k ) = C (k ) 2 1 1 , B = 2 , C = [1 1] 1 1 1. Is the system controllable ? 1 2. If the initial condition is x(k = 0) = , nd the control sequence u(k =0) and u(k =1) 2 0 required to transfer the initial state x(k=0) to the origin; i.e. x(k = 2) = . 0
where A = 3. Is the system observable ?

4. Given the observation sequence y(k =1)= 8 and y(k =2)= 14 where the input sequence is u(0) = 4 and u(1) = 2, nd the initial state x(k=0).

Problem 3
Given the following MIMO transfer function
1 3s G(s) = s +1 2 s 1 ( s + 2) 2 2 s +1 s 2 s +1 s + 2 s +1

(1) Find a coprime right-polynomial matrix fraction description (2) Find a observer-form realization of the minimal system

Linear System Homework #8 (last homework) Due: Dec. 29 (Wen.), 2010 by 5:00pm

Problem 1 Given the following MIMO transfer function 3 1 s + 2 G ( s) = s 1 2s s + 2 s +1


(1) A right-polynomial matrix fraction description of G ( s ) = N R ( s ) DR 1 ( s ) is

3( s + 1) ( s + 1)( s + 2) 0 ( s + 1)( s + 2) G ( s) = ( s 1)( s + 2) 0 ( s + 1)( s + 2) 2 s ( s + 1) 2 2 The degree of det( DR ( s )) = ( s + 1) ( s + 2) is 4>3 (order of minimal realization of G(s)). Hence, NR(s) and DR(s) are NOT coprime. Find a right-coprime matrix fraction description of G ( s ) = N R ( s ) DR 1 ( s )

(2) Using results from Part (1), nd a minimal state-space realization (A,B,C,D)of G(s)in controller form. (3) Find the Smith-McMillan form of G(s). (4) Using results of Part (3), nd the system poles and its structure.

Problem 2 Consider the following linear time-invariant system (A,B,C,D) where

0 0 0 0 1 0 0 1 0 0 , B = 0 1 , C = 0 2 1 3 , D = 1 0 A= 2 0 1 1 1 0 0 0 1 0 1 2 0 0 0 4 0 0 (1) Determine the Smith-McMillan form of the transfer function matrix G ( s ) = C ( sI A) 1 B + D (2) Determine the system eigenvalues. (3) Determine the system poles and its pole structure from the Smith-McMillan form. Are the system eigenvalues the same as the system poles? Explain.

Você também pode gostar