Problem 1

Given Then

= A\begin{bmatrix} p \\ \dot{p} \\ \dot{e} \end{bmatrix} + B\begin{bmatrix} \tilde{V}_s \\ V_d \end{bmatrix}$$ **Where** $$A = \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix}, B= \begin{bmatrix} 0 & 0 \\ 0 & K_1 \\ K_2 & 0 \end{bmatrix} $$ # Problem 2 The controllability matrix is given by: ![[Controllability Matrix]] Which gives us $$\mathcal{C} = \left[ \begin{array}{cc|cc|cc} 0 & 0 & 0 & K_1 & 0 & 0 \\ 0 & K_1 & 0 & 0 & 0& 0 \\ K_2 & 0 & 0 & 0 & 0 & 0 \end{array} \right]

since ,The system is controllable.

Problem 3

Given

Where is the pitch angle, and is the elevation rate which we will try to control with the following state-feedback controller with reference-feed-forward Where

If we insert our expression for into the State Space Representation equation, we get:

Where

BK-A &= \begin{bmatrix} 0 & 0 \\ 0 & K_1 \\ K_2 & 0 \end{bmatrix} \begin{bmatrix} k_{11} & k_{12} & k_{13} \\ k_{21} & k_{22} & k_{23} \end{bmatrix} - \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} \\ BK-A &= \begin{bmatrix} 0 & 0 & 0 \\ K_{1}k_{21} & K_{1}k_{22} & K_{1}k_{23} \\ K_{2}k_{11} & K_{2}k_{12} & K_{2}k_{13} \end{bmatrix} - \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} \\ BK-A &= \begin{bmatrix} 0 & -1 & 0 \\ K_{1}k_{21} & K_{1}k_{22} & K_{1} k_{23} \\ K_{2}k_{11} & K_{2}k_{12} & K_{2}k_{13} \end{bmatrix} \end{align}

And

Which gives us

Since , and , , gives us

x_{21} &= k_{21} \\ x_{22} &=k_{23} \\ x_{11} &= k_{11} \\ x_{12} &= k_{13} \end{align}

Meaning

Problem 4

LQR - Linear Quadratic Regulator

Given a continous-time LTI system in state space form, where D = 0

Link to original
The LQR problem consists of finding that makes the following equation as small as possible

  • Q and R are positive-definite weighting matrices

    Positive-Definite Matrix

    A symmetric matrix with all positive eigenvalues. NOTE: All symmetric matrices have only real eigenvalues

    For a matrix, , to be positive-semidefinite the following has to hold

    Criterion

    Given that is a symmetric real matrix


    Can be written generally as

    Link to original
  • ,
  • The term is a measure of the output energy
  • The term is a measure of the control signal energy
  • PROTIP: WRITE OUT THE EQUATION TO SEE DIRECTLY HOW EACH PART OF Q AND R AFFECTS EACH STATE

LQR seeks to find a controller that minimizes both energies using the weighting matrices Q and R to establish a trade-off between the control signal and output energy.

  • Q - How fast the system reacts
  • R - How much energy can we allow in the system
Link to original
For Q:

For R:

Meaning that and acts as and for the pitch, and acts as for the elevation And and determines how much the input is amplified

TEST PLAN for and :

1 & 0 & 0 \ 0 & 1 & 0 \ 0 & 0 & 1 \end{bmatrix} \ce{, and } ; R_{LQR} = \begin{bmatrix} 1 & 0 \ 0 & 1 \ \end{bmatrix}Q_{LQR} = \begin{bmatrix} 50 & 0 & 0 \ 0 & 1 & 0 \ 0 & 0 & 1 \end{bmatrix} \ce{, and} ; R_{LQR} = \begin{bmatrix} 1 & 0 \ 0 & 1 \end{bmatrix}Q_{LQR} = \begin{bmatrix} 1 & 0 & 0 \ 0 & 50 & 0 \ 0 & 0 & 1 \end{bmatrix} \ce{, and} ; R_{LQR} = \begin{bmatrix} 1 & 0 \ 0 & 1 \end{bmatrix}Q_{LQR} = \begin{bmatrix} 1 & 0 & 0 \ 0 & 1 & 0 \ 0 & 0 & 50 \end{bmatrix} \ce{, and} ; R_{LQR} = \begin{bmatrix} 1 & 0 \ 0 & 1 \end{bmatrix}Q_{LQR} = \begin{bmatrix} 1 & 0 & 0 \ 0 & 1 & 0 \ 0 & 0 & 1 \end{bmatrix} \ce{, and} ; R_{LQR} = \begin{bmatrix} 50 & 0 \ 0 & 1 \end{bmatrix}Q_{LQR} = \begin{bmatrix} 1 & 0 & 0 \ 0 & 1 & 0 \ 0 & 0 & 1 \end{bmatrix} \ce{, and} ; R_{LQR} = \begin{bmatrix} 1 & 0 \ 0 & 50 \end{bmatrix}$$

Problem 5

We want to include an integral effect, where and are our new states

\dot{\gamma} &= p_{c}-p \\ \dot{\zeta} &=\dot{e}_{c}-\dot{e} \end{align}

and the new state vector

Gives us the following system

We now need to find the augmented matrices:

Which is

and

TEST PLAN for and :

  1. Test varying values for and