Difference between revisions of "Double Tank"
ClemensZeile (Talk | contribs) |
ClemensZeile (Talk | contribs) |
||
Line 32: | Line 32: | ||
== Parameters == | == Parameters == | ||
In an exemplary test, the parameters were chosen to be: | In an exemplary test, the parameters were chosen to be: | ||
− | <math> | + | |
− | <math>T | + | {| class="wikitable" |
+ | |+State variables | ||
+ | |- | ||
+ | |Symbol | ||
+ | |Initial value (<math>x_{i0}</math>) | ||
+ | |- | ||
+ | |<math>x_1(t)</math> | ||
+ | |<math>2</math> | ||
+ | |- | ||
+ | |<math>x_2(t)</math> | ||
+ | |<math>2 </math> | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| class="wikitable" | ||
+ | |+Parameters | ||
+ | |- | ||
+ | |Symbol | ||
+ | |Value | ||
+ | |- | ||
+ | |<math>k_1</math> | ||
+ | |<math>2</math> | ||
+ | |- | ||
+ | |<math>k_2</math> | ||
+ | |<math>3</math> | ||
+ | |- | ||
+ | |<math>c_1</math> | ||
+ | |<math>1</math> | ||
+ | |- | ||
+ | |<math>c_2</math> | ||
+ | |<math>2</math> | ||
+ | |- | ||
+ | |<math>T</math> | ||
+ | |<math>10</math> | ||
+ | |} | ||
== Reference Solution == | == Reference Solution == | ||
− | By introducing the lifts <math>l_i=\sqrt{x_i}</math>, algebraically constrained as <math>l_i^2=x_i, \; l_i\geq 0,</math> the problem is recast with polynomial data. In this way way switch in connection with GloptiPoly3 can be applied. | + | By introducing the lifts <math>l_i=\sqrt{x_i}</math>, algebraically constrained as <math>l_i^2=x_i, \; l_i\geq 0,</math> the problem is recast with polynomial data. In this way way switch in connection with GloptiPoly3(Verlinkung),(Erklärung) can be applied. |
Revision as of 16:21, 10 December 2015
Double Tank | |
---|---|
State dimension: | 1 |
Differential states: | 2 |
Continuous control functions: | 0 |
Discrete control functions: | 1 |
Interior point equalities: | 2 |
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. The problem was introduced and discussed in a variety of publications for the optimal control of constrained switched systems, e.g. Henrion et al. and Vasudevan et al.
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 [lt/s] or [lt/s]. The dynamics in each mode are then derived using Torricelli’s law, as shown in constraints 1 and 2. The objective of the optimization is to have the fluid level in the lower tank equal to [m], as reflected in the cost function.
Parameters
In an exemplary test, the parameters were chosen to be:
Symbol | Initial value () |
Symbol | Value |
Reference Solution
By introducing the lifts , algebraically constrained as the problem is recast with polynomial data. In this way way switch in connection with GloptiPoly3(Verlinkung),(Erklärung) can be applied.
Source Code
With the parameters above, the optimal control problem was tested using the following code.