17
EE 5307 Homework 1 Fall 2011 Deadline: 09/07/11 Block Diagrams/Transfer function, MATLAB, Computer Simulation 2. Simulate the forced van der Pol oscillator using MATLAB. Plot y(t) vs. t and also the phase plane plot y'(t) vs. y(t). Use y(0)=0, y'(0)= 0.5. a. For = 5, A=0. b. For = 8.53, A=1.2, w=2π/10.

Ee 5307 Homeworks

Embed Size (px)

Citation preview

Page 1: Ee 5307 Homeworks

EE 5307 Homework 1Fall 2011

Deadline: 09/07/11

Block Diagrams/Transfer function, MATLAB, Computer Simulation

2. Simulate the forced van der Pol oscillator using MATLAB. Plot y(t) vs. t and also the phase plane plot y'(t) vs. y(t). Use y(0)=0, y'(0)= 0.5.

a. For = 5, A=0.b. For= 8.53, A=1.2, w=2π/10.

4. Do MATLAB simulation of the following RLC circuit (discussed in the class). Run for 200 sec. with different logical values for R, L, C and u=sin(t). Plot states versus time, output versus

Page 2: Ee 5307 Homeworks

time and also make 2-D plot of x1, x2 using PLOT(x1,x2) for every case. Explain the behavior of each case.

5. A system has transfer function

a. Use MATLAB to make a 3-D plot of the magnitude of H(s)b. Use MATLAB to make a 3-D plot of the phase of H(s)c. Use MATLAB to draw magnitude and phase Bode plots

Page 3: Ee 5307 Homeworks

EE 5307 Homework 2Fall 2011

Deadline: 09/14/11

State-Space AnalysisShow all work. Make plots with MATLAB.

1.

2. Consider

a. Find poles and zeros.b. Find Φ(s) and φ(t)=eAt.c. Find transfer function.d. Find impulse response. Use MATLAB to plot impulse response.e. Find step response. Use MATLAB to plot step response.f. Given that there is no input and that the initial condition are x(0)=[3 -1] determine the

value of y(t) when t=2.3.

Page 4: Ee 5307 Homeworks

a. Find state-space representation for the circuit in terms of L, R1, R2, R3, C1, C2.Now, set L= 2H, C1= 2F, C2=1F and all resistors to 1 ohm:

b. Find transfer function from A,B,C,D. Use MATLAB function ss2tf c. Find poles and zeros for these values of components. Use MATLAB, not by hand.d. Simulate on MATLAB. Plot the output y(t). Set input u(t)= unit step and initial

conditions equal to zero4. Consider the following linear system

a. Draw a block diagram for the system showing individual gains and integrators.b. Derive an equivalent second order differential equation description for the system.c. Find poles and MV zerosd. Find transfer function.e. Is system minimal?f. Find minimal realization (A,B,C,D).

EE 5307 Homework 3

Page 5: Ee 5307 Homeworks

Fall 2011Deadline: 09/21/11

Controllability/Observability and MV zeros

1. The state-space models of four systems are below. For each system:a. Find poles and natural modes.b. Find transfer function H(s).c. Find zeros.d. Make Bode plots of open-loop system.e. Plot step response if the system is stable.

a. Inverted pendulum.

b. Ball balancer.

c. Flexible-joint system.

d. Flexible-link system.

2. Given the system described by the equations

Page 6: Ee 5307 Homeworks

a. Draw the block diagram of the system.b. Calculate the poles of the system.c. Calculate the resolvent matrix of the system.d. Calculate the state transition matrix of the system.e. Calculate the system zeros using the Rosenbrock matrix.f. Calculate the input and output decoupling zeros.g. Calculate the transfer function matrix of the system.h. Calculate the transmission zeros of the system.i. Is the state space realization of the system minimal? If not, find a minimal realization for the

system. Draw the block diagram for the minimal realization. 3. Take the linear dynamical system described by

a. Study the reachability and observability of the system. b. Calculate the transfer function matrix.c. Find the poles of the system.d. Find the transmission zeros and the decoupling zeros.Make discussion for all values of .

Page 7: Ee 5307 Homeworks

4.

Page 8: Ee 5307 Homeworks

EE 5307 Homework 4Fall 2011

Deadline 10/03/2011

Discrete Time SV Systems

1. Compound Interest. Consider the scalar DT SV system

Let initial condition be and the input be the unit step The initial

condition is called the initial balance, and a constant input is known as an annuity deposit.

Find the state solution . (Find analytic solution.). This is the compound interest formula in

economics.

2. The DT SV is

,

a. Find poles and natural modes.

b. Find resolvent and an analytic expression for the DT exponential

c. Find transfer functiond. Find pulse response (analytic expression)e. Find step response (analytic expression)

f. Find analytic expression for the state if and input is

g. Find analytic expression for the output in this case.

h. Write the difference equation relating to .

3. For the system in problem 2,

a. Use iteration to compute and by hand. Do they agree with the

analytic solution found in problem 2?

b. Use the difference equation to compute by hand.

4. a. Write a MATLAB program to compute output if

Page 9: Ee 5307 Homeworks

Use zero initial conditions and unit step input. Plot output for k= 1 to 500.

b. Find poles. Can you explain the behavior of ? Find natural frequency .

Page 10: Ee 5307 Homeworks

EE 5307 Homework 5Fall 2011

Deadline 10/19/2011

Lyapunov Stability, Realization and Canonical Forms

Part A Lyapunov Stability

Solve Lyapunov equation to determine stability.

1.

2.

3.

Part B Realization and Canonical Forms

1. RCF

a. Write SV equations for reachable canonical form

b. Draw RCF block diagram

2. OCF

Page 11: Ee 5307 Homeworks

a. Write SV equations for observable canonical form

b. Draw OCF block diagram

3. Duality

Show that RCF SV matrices are the same as OCF SV matrices if you reorder the states backwards

and replace (A,B,C) by .

4. Parallel Canonical Form.

a. Write SV equations for Parallel canonical form

b. Draw Parallel Form block diagram

Page 12: Ee 5307 Homeworks

EE 5307 Homework 6Fall 2011

Deadline 10/31/2011

Jordan Normal Form, Gilbert’s Method

1. Find eigenvalues and eigenvectors.

simple matrix

2. Find eigenvalues and eigenvectors.

eigenvector chain

3. Gilbert’s Method

Find minimal SV realization.

Page 13: Ee 5307 Homeworks

EE 5307 Homework 7Fall 2011

Deadline 11/07/2011

Ball Balancer Controller Design

1. The ball balancer is given by

with state . We are going to do 3 feedback control designs using MATLAB.

a. Use Ackermann to find SVFB to place the poles at . Plot time response

over 15 seconds if . (MATLAB routine is called ‘place’ or ‘acker’.

‘Place’ is numerically more stable)

b. Use LQR to design SVFB. Select R= 0.01, Q= diag{1, 1, 50, 50}. Find closed-loop poles. Plot

time response over 15 seconds if .

b. Use LQR to design SVFB. Select R= 1, Q= diag{1, 1, 50, 50}. Find closed-loop poles. Plot time

response over 15 seconds if .

2. A telescope pointing system is

a. Find poles.b. Use Ackermann to make settling time equal to ½ sec and POV equal to 4%. Do BY HAND.c. Verify BY HAND that the closed-loop poles are where desired.

d. Use MATLAB to plot closed-loop step response. Check settling time and POV. Check closed-loop poles.

EE 5307 Homework 8Fall 2011

Page 14: Ee 5307 Homeworks

Deadline 11/14/2011

Discretization

1. A continuous-time systems is

a. Find sampled system if sampling time is T= 0.1 sec.

Do BY HAND. It is practice for the exam.

b. find sampled system by MATLAB function c2d if T= 0.1 sec.

c. Plot x(t) and y(t) using the continuous-time dynamics. Let u(t)= unit step and x(0)=0. You can use either MATLAB ode23 or lsim or step.

d. Plot using DT dynamics. Use MATLAB dlsim, dstep, whatever.

e. Verify that the two plots are the same at the samples. Maybe you can plot the samples of on the same

plots as x(t), y(t)?

2. A CT transfer function is given by

a. Find discrete time transfer function by step invariance if sampling time is T= 0.1 sec.

Do BY HAND. It is practice for the exam.

b. find sampled system by MATLAB function c2dm if T= 0.1 sec. Use ZOH, step invariance.

c. Plot x(t) and y(t) using the continuous-time dynamics. Let u(t)= unit step. You can use either MATLAB lsim or step.

d. Plot using DT dynamics. Use MATLAB dlsim, dstep, whatever.

e. Verify that the two plots are the same at the samples. Maybe you can plot the samples of on the same

plots as x(t), y(t)?

(Note that transfer function in problem 2 is the TF of the system in problem 1.)

EE 5307 Homework 9LQR/LQE Design

Page 15: Ee 5307 Homeworks

Fall 2011Deadline 11/21/2011

Ball Balancer LQR/LQE Regulator Design

The inverted pendulum with both position and angle measurements is given by

with state .

a. Use LQR to design a SVFB K. Select R= 0.01, Q= diag{1, 1, 50, 50}. Find closed-loop poles. Use SVFB u= -Kx and plot time response over 15 seconds if . (You did this for hwk 7.)

b. Use LQE to design an observer L. Select Ro= 0.001, Qo= diag{1, 1, 50, 50}. Find observer poles.

c. Use observer to design a regulator . Draw block diagram of the closed-loop system. Use MATLAB to plot system response with estimated state FB and observer. One way to do this is to write MATLAB M file with both the plant dynamics and the observer dynamics. Another is to make a large augmented system with eight states.

Plot time response over 15 seconds if initial state is and initial estimation

error is . Compare to results of part a.

d. Use MATLAB to find the 2 DOF regulator polynomials in

with r(t) the reference input. You can multiply polynomials in MATLAB using convolution operator ‘conv( )’