Jump to content

Double Tank: Difference between revisions

From mintOC
No edit summary
No edit summary
Line 1: Line 1:


The double tank problem is a basic example for a switching system. It contains the dynamics of an upper and a lower tank, connected to each other with a pipe. The goal is to minimize the deviation of a certain fluid level <math>k_2</math> in the lower tank.  
The double tank problem is a basic example for a switching system. It contains the dynamics of an upper and a lower tank, connected to each other with a pipe. The goal is to minimize the deviation of a certain fluid level <math>k_2</math> in the lower tank.  


== Mathematical formulation ==
== Mathematical formulation ==
Line 12: Line 11:
  &  \displaystyle x(0)=x_0 \\[1.5ex]
  &  \displaystyle x(0)=x_0 \\[1.5ex]
  &  \displaystyle \sigma \in \{1,2\},\\[1.5ex]
  &  \displaystyle \sigma \in \{1,2\},\\[1.5ex]
  &  \displaystyle T=10\\[15ex]
  &  \displaystyle T=10\\[1.0ex]
\end{array}  
\end{array}  
</math>
</math>


The two states of the system correspond to the fluid levels of an upper and a lower tank.
The two states of the system correspond to the fluid levels of an upper and a lower tank.

Revision as of 14:15, 10 December 2015

The double tank problem is a basic example for a switching system. It contains the dynamics of an upper and a lower tank, connected to each other with a pipe. The goal is to minimize the deviation of a certain fluid level k2 in the lower tank.

Mathematical formulation

minσ0Tk1(x2k2)2dts.t.x˙1(t)=cσ(t)x1(t),x˙2(t)=x2(t)x2(t),x(0)=x0σ{1,2},T=10



The two states of the system correspond to the fluid levels of an upper and a lower tank. The output of the upper tank flows into the lower tank, the output of the lower tank exits the system, and the flow into the upper tank is restricted to either 1[lt/s] or 2[lt/s]. The dynamics in each mode are then derived using Torricelli’s law, as shown in Table xxx. The objective of the optimization is to have the fluid level in the lower tank equal to 3[m], as reflected in the cost function in xxx

Parameters

k1=2,k2=3,x0=(2,2), with data c1=1 and c2=2.


Reference Solution

By introducing the lifts li=xi , algebraically constrained as li2=xi,li0, the problem is easily recast with polynomial data. In this way way switch in connection with GloptiPoly3 can be applied.