Top Banner
EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER Number of additional sheets 1. No computers, no tablets, no connected device (phone etc.) 2. Pocket calculator allowed. 3. Closed book, closed notes, closed internet. 4. Allowed: 2 sheets (each double sided) Chi Chi. 5. Additional sheets are available and may be submitted (e.g. for graphs). 6. Write your name below, and your SID on the top right corner of every page (including this one). 7. If you turn in additional sheets: Write your name and/or SID on every sheet, and Write the number of additional sheets you are turning in above where indicated. 8. Do not write on the back of any page. Part 1 2 3 4 5 6 7 8 Score 1
22

EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

Jul 29, 2018

Download

Documents

doantuong
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Final Exam Fall 2014

December 19, 2014

Your PRINTED FULL NAME

Your STUDENT ID NUMBER

Number of additional sheets

1. No computers, no tablets, no connected device (phone etc.)

2. Pocket calculator allowed.

3. Closed book, closed notes, closed internet.

4. Allowed: 2 sheets (each double sided) Chi Chi.

5. Additional sheets are available and may be submitted (e.g. for graphs).

6. Write your name below, and your SID on the top right corner of every page (including this one).

7. If you turn in additional sheets:

Write your name and/or SID on every sheet, and

Write the number of additional sheets you are turning in above where indicated.

8. Do not write on the back of any page.

Part 1 2 3 4 5 6 7 8

Score

1

Page 2: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

1. Laplace transform, controllable canonical form

(a) Derive the following Laplace property for convolution integrals

Lg1(t) = G1(s)

Lg2(t) = G2(s)

L∫ t

0g1(τ)g2(t− τ)dτ

= G1(s)G2(s)

(b) Find the solution to the following ODE with the given initial conditions:

d2x

dt2− dx

dt+ 2x =

∫ t

0δ(τ) sin (t− τ)dτ

x(0) = −2, x(0) = 1

UC Berkeley, 12/19/2014 2 of 22

Page 3: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

UC Berkeley, 12/19/2014 3 of 22

Page 4: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

2. Bode Plotting and Nyquist Stability

Consider the following transfer function:

G(s) =100(s+ 4)

(s2 + 12s+ 20)(s+ 2)

(a) Sketch a Bode plot of the system (magnitude and phase). Label all slopes and points on the

graph.

UC Berkeley, 12/19/2014 4 of 22

Page 5: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

(b) Using the Bode plots you created in Part (a), calculate the phase margin and gain margin for

G(s).

(c) Draw a Nyquist plot of the system and use the Nyquist stability criterion to determine if the

closed loop system under unity feedback is stable.

UC Berkeley, 12/19/2014 5 of 22

Page 6: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

(d) Assume we have a closed loop system below where G(s) is given in Part (a) and C(s) = K.

For what values of K is the system stable?

UC Berkeley, 12/19/2014 6 of 22

Page 7: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

3. Solution in time domain, stability

(a) For the following system, explicitly determine the time-domain solution x(t)

x =

[4 1

0 10

]x+

[1

0

]u, x(0) =

[1

1

]

y =[

1 0]x

where u(t) is a unit step function.

UC Berkeley, 12/19/2014 7 of 22

Page 8: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

(b) Determine the transfer function G(s) for the zero initial state response, given the system in

Part (a).

(c) BONUS: Does the degree of your state space model and transfer function match? Why or

why not?

UC Berkeley, 12/19/2014 8 of 22

Page 9: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

4. Electrical Circuit and Root Locus

(a) For the above circuit derive the transfer function C(s) =VoutVin

.

UC Berkeley, 12/19/2014 9 of 22

Page 10: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

(b) Assume the system below, G(s), is in unity negative feedback. Determine the value of K such

that the steady state error to a step response is 111 . Also determine the percent overshoot and

settling time of the feedback system at this K.

G(s) =K

(s+ 5)(s+ 15)

(c) Now assume that the system is described by the figure below, where C(s) and G(s) are ob-

tained from parts (a) and (b) respectively. Draw the root locus given R1 = 125 MΩ, C1 = 15 µF,

R2 = 625 MΩ and C2 = 0.1 µF. Watch your signs!

UC Berkeley, 12/19/2014 10 of 22

Page 11: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

(d) Label on the root locus a suitable region if the goal is to achieve a settling time (Ts) ≤ 0.4 sec

and percent overshoot (%OS) ≤ 20%.

UC Berkeley, 12/19/2014 11 of 22

Page 12: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

5. Controller design using State-feedback

Consider the mechanical system shown above. Here, V denotes the voltage applied to the motor

(control input) and x(t) is the position of the mass. You may assume the back emf from the motor

is negligible (EMF = 0) and the torque supplied by the motor is equal to T = IKm − Jmθwhere,

Km : Constant relating T and I

Jm : Inertia of the motor

(a) Show that G(s) is the transfer function from V to x. To do this, you MUST derive the governing

equations for the mechanical/electrical system.

G(s) =X(s)

V (s)=N2

N1

Kmr

R+ Ls

[(J1 + J2 + Jm

(N2

N1

)2)s2 + r2(Ms2 + fvs+ k)

]−1

UC Berkeley, 12/19/2014 12 of 22

Page 13: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

(b) Choosing x =[x x

]Tas the state vector and x as the output, derive a state space model

(matrices A, B, C and D) for the above system. Use the following parameters:

R = 1, Km = 0.1, L = 0, N2/N1 = 10, r = 1, J1 = J2 = 1, Jm = 0, M = 1, k = 1, fv = 1.

Note your input to the system should be V .

(c) Explicitly write the observability and controllability matrices. Is the system controllable? Is it

observable? (Use parameters from Part (b))

UC Berkeley, 12/19/2014 13 of 22

Page 14: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

(d) Determine the eigenvalues of matrix A you found in Part (b).

(e) We will now control the system using a state feedback controller as shown in the diagram below

where K =[k1, k2

]and r =

[r1

r2

].

Write the dynamics of the closed-loop system as x = Ax+ Br. That is, find both A and B in

terms of the system parameters given in Part (b) and the elements of the controller gain matrix

K.

UC Berkeley, 12/19/2014 14 of 22

Page 15: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

6. State-feedback and observer design

Consider the following system:

x = Ax+Bu, y = Cx with A =

[7 1

−2 4

], B =

[0

1

], C =

[0 1

](a) Compute the eigenvalues and eigenvectors for A.

(b) Use state-feedback of the form of u = −Kx. Determine the gain K = [k1 k2] such that the

poles of the closed loop system are located at s1,2 = −2± 5j.

UC Berkeley, 12/19/2014 15 of 22

Page 16: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

(c) Unfortunately for this system we are unable to measure all the states. In order to do state

feedback we must use a Luenberger observer of the form:

˙x = Ax+Bu+ L(y − y)

y = Cx

and the system is controlled using state feedback, given by

u = −Kx

Determine the error dynamics of the system, e, where e = x− x. The result must be in terms

of e only.

(d) Determine the observer matrix L = [l1 l2]T such that the error dynamics have poles at

s1,2 = −2± 5j.

UC Berkeley, 12/19/2014 16 of 22

Page 17: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

(e) Comment on the performance of the state observer given the previously placed poles. What

are we interested in when designing an observer and how could we improve the observer?

(f) Complete the following block diagram of the system described in part(c).

Controller

u

Plant

y

Observer

x

UC Berkeley, 12/19/2014 17 of 22

Page 18: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

7. Linear Quadratic Regulator

Consider the LTI system

x = Ax+Bu x = [x1, x2]T

where

A =

[1 1

0 −1

], B =

[1

0

]

We would like to solve an LQR problem for the system. That is, we want to find the optimal

control u∗(t) that minimizes the cost functional

J =

∫ ∞t=0

(x21(t) + u2(t)) dt

(a) Solve the Algebraic Riccati Equation for the infinite horizon LQR. Hint: the solution of the

Algebraic Riccati equation is a positive semi-definite matrix. A (2 × 2) matrix P is positive

semi-definite everywhere when:

p11 ≥ 0 p22 ≥ 0 p212 ≤ p11p22 for P =

[p11 p12

p12 p22

]

UC Berkeley, 12/19/2014 18 of 22

Page 19: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

(b) Determine the optimal feedback matrix K1 such that the optimal control is u∗(t) = −K1x(t).

UC Berkeley, 12/19/2014 19 of 22

Page 20: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

8. Linear Quadratic Regulator

Consider the system where the dynamics are scalar:

x = ax+ bu x is a scalar

We want to create a finite horizon optimal controller given the cost function:

J =

∫ tf

t=0(qx2(t) + ru2(t))dt

(a) Write the Ricatti Equation for this system as well as the terminal condition.

(b) Find P for the static case where tf =∞. Your answer should be in terms of q, r, a, and b. Note

the P should be positive semi-definite everywhere.

UC Berkeley, 12/19/2014 20 of 22

Page 21: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

(c) For this scalar system, given any tf , the Riccati equation can be analytically solved:

P (τ) =(aP (tf ) + q) sinh(βτ) + βP (tf ) cosh(βτ)(

b2P (tf )r − a

)sinh(βτ) + β cosh(βτ)

where τ = tf − t, β =

√a2 +

b2q

rand sinh(.) and cosh(.) are the hyperbolic trigonometric

functions. Taking the limit as tf →∞, the solution becomes:

P (τ) =q

−a+ β

Show that this is equivalent to your solution from Part (b).

UC Berkeley, 12/19/2014 21 of 22

Page 22: EE C128 / ME C134 Final Exam Fall 2014ee128/fa14/Exams/EE128Fa14Final.pdf · EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER

EE C128 / ME C134 Fall 2014 Final Exam Name:

f(t) F (s)

δ(t) 1

u(t) 1s

tu(t) 1s2

tnu(t) n!sn+1

sin(ωt)u(t) ωs2+ω2

cos(ωt)u(t) ss2+ω2

e−αt sin(ωt)u(t) ω(s+α)2+ω2

e−αt cos(ωt)u(t) s+α(s+α)2+ω2

Table 1: Laplace transforms of common functions

sinh(θ)eθ − e−θ

2

cosh(θ)eθ + e−θ

2

tanh(θ)sinh(θ)

cosh θ=

1− e−2θ

1 + e−2θ

Table 2: Trigonometric functions

UC Berkeley, 12/19/2014 22 of 22