Problemè 1

Consider the following state-space model:

Design an observer to place the observer poles at -10, -10, -15

Solution

The characteristic equation of the observer is given by:

From the coefficients of the characteristic equation we get

Solving for the coefficients we get the observer gain matrix:

Thus the observer dynamics are given by:

Problemè 2

Given the plant

Design an integral controller to yield a 10% overshoot, 0.5 second settling time and zero steady-state error for a step input.

Solution

The code for the integral controller is given by p2.py.

Add an integrator to the plant to ensure zero steady-state error for a step input. The augmented state-space model becomes:

where

x_a = \begin{bmatrix} x \\ \int e \, dt \\ \end{bmatrix} $$ and $e = r - y$ is the tracking error. Then, design the state feedback gains

K = \begin{bmatrix} k_1 & k_2 & k_i \ \end{bmatrix}

\left| sI - (A_a - B_aK) \right| = 0

(s + k_1)(s^2 + (1 - k_2)s + k_i) = 0

u = -Kx_a = -k_1x_1 - k_2x_2 - k_i\int{e , dt}