Introduction
In this part we’ll see how we can represent a system using its states.
State feedback
We can represent a system using its space-state representation.
Given an input signal, r(t), that we multiply with a constant, Kr.
We also have noise in the system.
Our feedback is also multiplied with a matrix Lu.
x=x1x2⋮xn
We can represent our system as:
{x˙y=Ax+Bu+Bv⋅v=Cx
We can define u(t) as:
u=Krr−Lux
Let’s find the transfer function Gry, so we set the noise to zero.
{x˙y=Ax+Bu=Cx
{x˙y=Ax+B(Krr−Lux)=Cx
{x˙y=(A−BLu)x+BKrr=Cx
If we take the Laplace transform of the space-state representation:
{sX(s)Y(s)=(A−BLu)X(s)+BKrR(s)=CX(s)
{sX(s)−(A−BLu)X(s)Y(s)=BKrR(s)=CX(s)
{(sI−A+BLu)X(s)Y(s)=BKrR(s)=CX(s)
{X(s)Y(s)=(sI−A+BLu)−1BKrR(s)=CX(s)
{X(s)Y(s)=(sI−A+BLu)−1BKrR(s)=C(sI−A+BLu)−1BKrR(s)
Which means:
Gry(s)=R(s)Y(s)=C(sI−A+BLu)−1BKr
The characteristic equation for this is det(sI−A+BLu)=0
Loop transfer function
We won’t cover the calculations to prove this, but:
L(s)=Lu(sI−A)−1B
Which means:
S(s)=1+L(s)1=1+Lu(sI−A)−1B1
T(s)=1+L(s)L(s)=1+Lu(sI−A)−1BLu(sI−A)−1B
Let’s now go back, let’s find Gru this time:
U(s)=KrR(s)−LuX(s)
U(s)=KrR(s)−Lu(sI−A+BLu)−1BKrR(s)
Gru(s)=R(s)U(s)=Kr−Lu(sI−A+BLu)−1BKr
Finally, let’s also find Gvy, therefore we set r=0.
{x˙y=Ax−BLux+Bvv=Cx
{x˙y=(A−BLu)x+Bvv=Cx
Taking the Laplace transform:
{sX(s)Y(s)=(A−BLu)X(s)+BvV(s)=CX(s)
{(sI−A+BLu)X(s)Y(s)=BvV(s)=CX(s)
{X(s)Y(s)=(sI−A+BLu)−1BvV(s)=CX(s)
{X(s)Y(s)=(sI−A+BLu)−1BvV(s)=C(sI−A+BLu)−1BvV(s)
Gvy(s)V(s)Y(s)=C(sI−A+BLu)−1Bv
Usually, Kr is found using the fact that we want low-frequency amplification, meaning Gry(0)=1
This means that:
Kr=C(sI−A+BLu)−1B1
Definition 1 (Controllability)
State feedback requires that our control signal, u(t) affects all states. This means that:
det(S)=0Where S:
S=[BABA2B…An−1B] ∣ For clarification, this is a long series of matrix multiplicationsWe call S for the controllability matrix. The system is controllable if det(S)=0.
Example 1
We have the following system which has feedback such that:
Gry(s)=s2+4s+88The given dynamics for the system is represented as:
⎩⎨⎧x1˙x2˙y=−2x1+x2=−5x1+2u=x1We have no noise present in this system.
Let’s firstly determine if this system is controllable.
Let’s define all matrices:
x=[x1x2]A=[−2−510]B=[02]C=[10]D=[0]The controllability matrix:
S=[BAB]AB=[20]S=[0220]det(S)=−4=0Therefore, this system is controllable.
Let us now find Lu and Kr such that Gry(0)=1.
Let’s first find Lu.
Lu=[l1l2]C(sI−A+BLu)−1BKr[10]([s+25−1s]+[02][l1l2])−1[02]Kr[10]([s+25−1s]+[02l102l2])−1[02]Kr[10]([s+25+2l1−1s+2l2])−1[02]KrAs we defined earlier, the characteristic equation is det(sI−A+BLu)=0
Which means:
(s+2)(s+2l2)+(5+2l1)=0s2+s2l2+2s+4l2+5+2l1=0s2+(2l2+2)s+4l2+5+2l1=0We knew that:
Gry(s)=s2+4s+88Which must mean that:
{2l2+24l2+5+2l1=4=8We find that l1=1,l2=−21, which means that:
Lu=[1−21]Let’s now find Kr.
Kr=C(sI−A+BLu)−1B1This is just some basic matrix operations:
Kr=…=4