Solutions of Exercise 6.4#
Consider the state-space system
Compute the poles of (32)
Compute the corresponding transfer function \(G(s)\), its poles and zeros.
Design a state-feedback controller \(u = -Lx + \ell_0 r\) such that the closed-loop poles are \(-2\) and \(-3\).
Find the state-feedback gain \(L\).
Can \(\ell_0\) be chosen such that the steady-state error is \(0\) when \(r\) is constant? Motivate the answer.
Solution#
Question 1#
The poles of (32) are defined as the eigenvalues of the \(A\) matrix, that is, the roots of
The eigenvalues are \(\lambda = \frac{-2 \pm \sqrt{-4}}{2} = -1 \pm i 1\)
Question 2#
The transfer function can be computed as
\(G(s)\) has two poles, \(s = -1 \pm i1\), and one zero, \(s = 0\).
Question 3#
Let’s first check that the system is controllable. To do so, we inspect the controllability matrix
This matrix is full-rank. Indeed, \(\det(\mathcal{S}) = 2 \neq 0\). The system is therefore controllable. To design the state-feedback controller, we plug \(u = -Lx + \ell_0 r\) in (32). Doing so, we get
The closed-loop poles are the roots of the characteristic polynomial
The desidered characteristic polynomial is that having \(-2\) and \(-3\) as roots, i.e.,
Matching the coefficients of these two, we get \(\ell_1\) and \(\ell_2\):
Hence, \(\boxed{L = \begin{bmatrix} 1 & 2 \end{bmatrix}}\)
Question 4#
To find \(\ell_0\), we compute the closed-loop transfer function \(G_c(s)\). Moving (33) to the Laplace domain, we get
This means
Replacing \(X(s)\) in the output transformation we get
The closed loop transfer function is therefore
Here we can notice a problem: \(G_c(s)\) contains a derivative action.[1] This means that \(\lim_{t \to \infty} y(t) = 0\) for constant reference signals. Because of this, an \(\ell_0\) making the steady-state error null cannot be found.
Notice that if we try to enforce \(G_c(0) = 1\), we get