Skip to main content
Engineering LibreTexts

12.5: Understanding MIMO Control Through Two Tanks Interaction

  • Page ID
  • Introduction

    We have been familiar with the models of single surge tank manipulated by first order process and two tanks in series manipulated by second order process, both of which are typical examples of Single Input Single Output (SISO) control. However, in the real chemical processes, there are always interations between the reactors. The following page will discuss the two tanks model by taking into consideration the interaction between the two tanks. To manipulate this model, we need to use Multiple Input Multiple Output (MIMO) control, which will add more complexity in understanding the overall process.

    Two Tanks Interaction Model

    The following figure, Figure 1, demonstrates how two tanks model works to interact each other. From Figure 1, we can see that the input of Tank1, x1, not only affects the level in Tank1, but also affects that in Tank2. The same goes for the input of Tank2, x2. We use the resistance, R3, to account for the interaction between the two tanks.

    Figure 1: Two tanks interaction model

    In the above figure,

    • x1 = Input of Tank1
    • x2 = Input of Tank2
    • A1 = Cross section area of Tank1
    • A2 = Cross section area of Tank2
    • h1 = Level of Tank1
    • h2 = Level of Tank2
    • R1 = Resistance of Tank1
    • R2 = Resistance of Tank2
    • R3 = Interaction Resistance

    Mathematical Equations for the Process

    Now, we will derive the mathematical equations to describe the process, now we assume the direction of the flow goes from Tank1 to Tank2:

    To begin with, we write down the governing equation for each of the tanks, taking into consideration the interaction term:

    \[A_{1} \frac{d h_{1}}{d t}=x_{1}-\frac{h_{1}}{R_{1}} d t-\frac{\left(h_{1}-h_{2}\right)}{R_{3}}=x_{1}+h_{1}\left(-\frac{1}{R_{1}}-\frac{1}{R_{3}}\right)+h_{2}\left(\frac{1}{R_{3}}\right)\]

    \[A_{2} \frac{d h_{2}}{d t}=x_{2}-\frac{h_{2}}{R_{2}} d t+\frac{\left(h_{1}-h_{2}\right)}{R_{3}}=x_{2}+h_{2}\left(-\frac{1}{R_{2}}-\frac{1}{R_{3}}\right)+h_{1}\left(\frac{1}{R_{3}}\right)\]

    Under steady state, the time derivatives, i.e. the left hand side of the above equations, go to zero:



    Now, we define the deviation variables as follows:

    X1 = x1x1(0), Y1 = h1h1(0)

    X2 = x2x2(0), Y2 = h2h2(0)

    Set y1=h1, y2=h2, we can obtain the following equations:

    \[A_{1} \frac{d y_{1}}{d t}=\frac{x_{1}}{A_{1}}+y_{1}\left(-\frac{1}{A_{1} R_{1}}-\frac{1}{A_{1} R_{3}}\right)+y_{2}\left(\frac{1}{A_{1} R_{3}}\right)\]

    \[A_{2} \frac{d y_{2}}{d t}=\frac{x_{2}}{A_{1}}+y_{1}\left(\frac{1}{A_{2} R_{3}}\right)+y_{2}\left(-\frac{1}{A_{2} R_{2}}-\frac{1}{A_{2} R_{3}}\right)\]

    It will be more general if we write down the above equations into a form of Matrix:

    \dot{y}_{1} \\
    \frac{1}{A_{1}} & 0 \\
    0 & \frac{1}{A_{2}}
    x_{1} \\
    -\frac{1}{A_{1} R_{1}}-\frac{1}{A_{1} R_{2}} & \frac{1}{A_{1} R_{3}} \\
    \frac{1}{A_{2} R_{3}} & -\frac{1}{A_{2} R_{2}}-\frac{1}{A_{2} R_{3}}
    y_{1} \\

    We can represent the above equation using the following equation:

    \vec{y}=\overrightarrow{\vec{B}} \vec{x}+\overrightarrow{\vec{A}} \vec{y} \\
    \vec{y}-\vec{A} \vec{y}=\overrightarrow{\vec{B}} \vec{x} \\
    \vec{x}=\left(\vec{B}^{-1}\right)\left(\frac{\partial}{\partial t}-\overrightarrow{\vec{A}}\right) \vec{y}=\overrightarrow{\vec{G}_{p}}^{-1} \vec{y}

    Invert the above equation:


    Now, set

    overrightarrow{\overrightarrow{G_p}}=\begin{bmatrix}\ \hat{G_{p1,1}} & \hat{G_{p1,2}}
  \\ \hat{G_{p2,1}} & \hat{G_{p2,2}}\\\end{bmatrix}

    We get the following equation:

    begin{bmatrix} \ y_1  \\ y_2\\ 
\end{bmatrix}=\begin{bmatrix}\ \hat{G_{p1,1}} & \hat{G_{p1,2}}
  \\ \hat{G_{p2,1}} & \hat{G_{p2,2}}\\\end{bmatrix}\begin{bmatrix} \ x_1  \\ x_2\\ 

    Control Diagram

    Figure 2: Contol Diagram for Two tanks interaction model.

    Decouple the process




    • Written by: Erin Baragar, Omar Ismail, Yuan Chen
    • Was this article helpful?