English 中文(简体)
State Space Analysis
  • 时间:2024-09-08

Control Systems - State Space Analysis


Previous Page Next Page  

In the previous chapter, we learnt how to obtain the state space model from differential equation and transfer function. In this chapter, let us discuss how to obtain transfer function from the state space model.

Transfer Function from State Space Model

We know the state space model of a Linear Time-Invariant (LTI) system is -

$$dot{X}=AX+BU$$

$$Y=CX+DU$$

Apply Laplace Transform on both sides of the state equation.

$$sX(s)=AX(s)+BU(s)$$

$$Rightarrow (sI-A)X(s)=BU(s)$$

$$Rightarrow X(s)=(sI-A)^{-1}BU(s)$$

Apply Laplace Transform on both sides of the output equation.

$$Y(s)=CX(s)+DU(s)$$

Substitute, X(s) value in the above equation.

$$Rightarrow Y(s)=C(sI-A)^{-1}BU(s)+DU(s)$$

$$Rightarrow Y(s)=[C(sI-A)^{-1}B+D]U(s)$$

$$Rightarrow frac{Y(s)}{U(s)}=C(sI-A)^{-1}B+D$$

The above equation represents the transfer function of the system. So, we can calculate the transfer function of the system by using this formula for the system represented in the state space model.

Note − When $D = [0]$, the transfer function will be

$$frac{Y(s)}{U(s)}=C(sI-A)^{-1}B$$

Example

Let us calculate the transfer function of the system represented in the state space model as,

$$dot{X}=egin{bmatrix}dot{x}_1 \dot{x}_2 end{bmatrix}=egin{bmatrix}-1 & -1 \1 & 0 end{bmatrix}egin{bmatrix}x_1 \x_2 end{bmatrix}+egin{bmatrix}1 \0 end{bmatrix}[u]$$

$$Y=egin{bmatrix}0 & 1 end{bmatrix}egin{bmatrix}x_1 \x_2 end{bmatrix}$$

Here,

$$A=egin{bmatrix}-1 & -1 \1 & 0 end{bmatrix}, quad B=egin{bmatrix}1 \0 end{bmatrix}, quad C=egin{bmatrix}0 & 1 end{bmatrix} quad and quad D=[0]$$

The formula for the transfer function when $D = [0]$ is -

$$frac{Y(s)}{U(s)}=C(sI-A)^{-1}B$$

Substitute, A, B & C matrices in the above equation.

$$frac{Y(s)}{U(s)}=egin{bmatrix}0 & 1 end{bmatrix}egin{bmatrix}s+1 & 1 \-1 & s end{bmatrix}^{-1}egin{bmatrix}1 \0 end{bmatrix}$$

$$Rightarrow frac{Y(s)}{U(s)}=egin{bmatrix}0 & 1 end{bmatrix} frac{egin{bmatrix}s & -1 \1 & s+1 end{bmatrix}}{(s+1)s-1(-1)}egin{bmatrix}1 \0 end{bmatrix}$$

$$Rightarrow frac{Y(s)}{U(s)}=frac{egin{bmatrix}0 & 1 end{bmatrix}egin{bmatrix}s \1 end{bmatrix}}{s^2+s+1}=frac{1}{s^2+s+1}$$

Therefore, the transfer function of the system for the given state space model is

$$frac{Y(s)}{U(s)}=frac{1}{s^2+s+1}$$

State Transition Matrix and its Properties

If the system is having initial conditions, then it will produce an output. Since, this output is present even in the absence of input, it is called zero input response $x_{ZIR}(t)$. Mathematically, we can write it as,

$$x_{ZIR}(t)=e^{At}X(0)=L^{-1}left { left [ sI-A ight ]^{-1}X(0) ight }$$

From the above relation, we can write the state transition matrix $phi(t)$ as

$$phi(t)=e^{At}=L^{-1}[sI-A]^{-1}$$

So, the zero input response can be obtained by multiplying the state transition matrix $phi(t)$ with the initial conditions matrix.

Following are the properties of the state transition matrix.

    If $t = 0$, then state transition matrix will be equal to an Identity matrix.

    $$phi(0) = I$$

    Inverse of state transition matrix will be same as that of state transition matrix just by replcing ‘t’ by ‘-t’.

    $$phi^{-1}(t) = phi(−t)$$

    If $t = t_1 + t_2$ , then the corresponding state transition matrix is equal to the multippcation of the two state transition matrices at $t = t_1$ and $t = t_2$.

    $$phi(t_1 + t_2) = phi(t_1) phi(t_2)$$

Controllabipty and Observabipty

Let us now discuss controllabipty and observabipty of control system one by one.

Controllabipty

A control system is said to be controllable if the initial states of the control system are transferred (changed) to some other desired states by a controlled input in finite duration of time.

We can check the controllabipty of a control system by using Kalman’s test.

    Write the matrix $Q_c$ in the following form.

    $$Q_c=left [ B quad AB quad A^2B quad ...quad A^{n-1}B ight ]$$

    Find the determinant of matrix $Q_c$ and if it is not equal to zero, then the control system is controllable.

Observabipty

A control system is said to be observable if it is able to determine the initial states of the control system by observing the outputs in finite duration of time.

We can check the observabipty of a control system by using Kalman’s test.

    Write the matrix $Q_o$ in following form.

    $$Q_o=left [ C^T quad A^TC^T quad (A^T)^2C^T quad ...quad (A^T)^{n-1}C^T ight ]$$

    Find the determinant of matrix $Q_o$ and if it is not equal to zero, then the control system is observable.

Example

Let us verify the controllabipty and observabipty of a control system which is represented in the state space model as,

$$dot{x}=egin{bmatrix}dot{x}_1 \dot{x}_2 end{bmatrix}=egin{bmatrix}-1 & -1 \1 & 0 end{bmatrix}egin{bmatrix}x_1 \x_2 end{bmatrix}+egin{bmatrix}1 \0 end{bmatrix} [u]$$

$$Y=egin{bmatrix}0 & 1 end{bmatrix}egin{bmatrix}x_1 \x_2 end{bmatrix}$$

Here,

$$A=egin{bmatrix}-1 & -1 \1 & 0 end{bmatrix}, quad B=egin{bmatrix}1 \0 end{bmatrix}, quad egin{bmatrix}0 & 1 end{bmatrix}, D=[0]quad and quad n=2$$

For $n = 2$, the matrix $Q_c$ will be

$$Q_c=left [B quad AB ight ]$$

We will get the product of matrices A and B as,

$$AB=egin{bmatrix}-1 \1 end{bmatrix}$$

$$Rightarrow Q_c =egin{bmatrix}1 & -1 \0 & 1 end{bmatrix}$$

$$|Q_c|=1 eq 0$$

Since the determinant of matrix $Q_c$ is not equal to zero, the given control system is controllable.

For $n = 2$, the matrix $Q_o$ will be -

$$Q_o=left [C^T quad A^TC^T ight ]$$

Here,

$$A^T=egin{bmatrix}-1 & 1 \-1 & 0 end{bmatrix} quad and quad C^T=egin{bmatrix}0 \1 end{bmatrix}$$

We will get the product of matrices $A^T$ and $C^T$ as

$$A^TC^T=egin{bmatrix}1 \0 end{bmatrix}$$

$$Rightarrow Q_o=egin{bmatrix}0 & 1 \1 & 0 end{bmatrix}$$

$$Rightarrow |Q_o|=-1 quad eq 0$$

Since, the determinant of matrix $Q_o$ is not equal to zero, the given control system is observable.

Therefore, the given control system is both controllable and observable.

Advertisements