digital control homework2
digital control homework2
Problem Set # 2
Spring 2020
You are required to collect the MATLAB code for all plots in a single m file
and upload it along with your solution on LMS.
x1 (k + 1) 0 1 x1 (k) 0 x1 (k)
= + u(k); y(k) = 1 0
x2 (k + 1) −0.16 −1 x2 (k) 1 x2 (k)
Assuming full state feedback, determine the matrix K such that if u(k) = −Kx(k), then
the poles of the closed loop system are located at exactly z = 0.5 ± j0.5.
Y (s) 1
G(s) = = 2
U (s) s (s + 2)
a) Find the equivalent state space representation in the discrete time by assuming a zero
order hold and a sample time of 0.1 sec.
b) Find the gain matrix Lp for a predictor estimator for the given system if the settling
time for the error of the estimator is required to be less than 0.5 seconds.
c) Verify that the settling time for the estimator error is indeed less than 0.5 seconds by
plotting the error response for any initial condition of your choosing.
x1 (k + 1) 1 T x1 (k) T 2 /2 x1 (k)
= + u(k); y(k) = 1 0
x2 (k + 1) 0 10 x2 (k) T x2 (k)
a) Design a full-state prediction observer of the system where it is desired that all observer
poles be zero.
b) Write down the dynamics for the estimator error. Then assume that the initial state
x(0) = [a1 b1 ]T and the initial estimate x̄(0) = [a2 b2 ]T . Show that the estimation error
goes to zero in at most two sampling periods. (hint: solve the dynamics of the error
recursively, to compute x̃(2)).
c) A response such as the one obtained above that attains a value of exactly zero in finite
time is called a dead-beat response. The concept of a dead-beat response is unique to
discrete-time systems and has no counterpart in continuous time. This can only happen if
the response dynamics are given by a nilpotent matrix.
Show that a matrix with every eigenvalue zero (such as the one designed above), is nilpo-
tent.
b) Assuming full state feedback, determine the matrix K such that if u(k) = −Kx(k),
then the poles of the closed loop system exhibit a damping ratio ζ = 0.486 and a natural
frequency ωn = 3.364.
c) Notice that the state x1 (k) is being measured by the sensors directly. Keeping this is
mind, determine the gain matrix Lr for a reduced order observer of the system so that all
poles of the estimator error are placed at the origin.
d) Determine the pulse transfer function of the compensator consisting of the combined
control law and estimator designed above.
b) Now, after incorporating the control law u(k) = N r(k)−Kx(k) with the gains K chosen
as above, determine the transfer function Y (z)/R(z).
c) Using the result of part b, and the final value theorem in discrete-time, choose the design
parameter N so that the steady-state value of the step-response is unity (the steady state
error is zero).
Y (z) z −2 + 0.5z −3
=
U (z) 1 − z −1 + 0.01z −2 + 0.12z −3
a) Obtain the state space description for the system in the control canonical form.
b) Show that the system exhibits a non-zero steady state error to a step input.
The following questions have been taken from the end of chapter problems of
your textbook