Double 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 in the lower tank.
Mathematical formulation
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
with data and .
Reference Solution
By introducing the lifts , algebraically constrained as the problem is easily recast with polynomial data. In this way way switch in connection with GloptiPoly3 can be applied.