<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mintoc.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ChristophHansknecht</id>
	<title>mintOC - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://mintoc.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ChristophHansknecht"/>
	<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Special:Contributions/ChristophHansknecht"/>
	<updated>2026-06-09T08:00:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://mintoc.de/index.php?title=Egerstedt_standard_problem&amp;diff=2305</id>
		<title>Egerstedt standard problem</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Egerstedt_standard_problem&amp;diff=2305"/>
		<updated>2019-09-19T15:09:18Z</updated>

		<summary type="html">&lt;p&gt;ChristophHansknecht: Fixed type, error in relaxed objective function value&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Dimensions&lt;br /&gt;
|nd        = 1&lt;br /&gt;
|nx        = 3&lt;br /&gt;
|nw        = 3&lt;br /&gt;
|nc        = 1&lt;br /&gt;
|nre       = 3&lt;br /&gt;
}}&amp;lt;!-- Do not insert line break here or Dimensions Box moves up in the layout...&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;The &#039;&#039;&#039;Egerstedt standard problem&#039;&#039;&#039; is the problem is of an academic nature and was proposed by Egerestedt to highlight the features of an Hybrid System algorithm in 2006 &amp;lt;bib id=&amp;quot;Egerstedt2006&amp;quot; /&amp;gt;. It has been used since then in many MIOCP research studies (e.g. &amp;lt;bib id=&amp;quot;Jung2013&amp;quot; /&amp;gt;) for benchmarking of MIOCP algorithms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mathematical formulation ==&lt;br /&gt;
&lt;br /&gt;
The mixed-integer optimal control problem after partial outer convexification is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{llclr}&lt;br /&gt;
 \displaystyle \min_{x, \omega} &amp;amp; x_3(t_f)   \\[1.5ex]&lt;br /&gt;
 \mbox{s.t.} &lt;br /&gt;
 &amp;amp; \dot{x}_1 &amp;amp; = &amp;amp; -x_1\omega_1 + (x_1+x_2)\omega_2+(x_1-x_2)\omega_3, \\&lt;br /&gt;
 &amp;amp; \dot{x}_2 &amp;amp; = &amp;amp; (x_1+2x_2)\omega_1+(x_1-2x_2)\omega_2+(x_1+x_2)\omega_3, \\&lt;br /&gt;
 &amp;amp; \dot{x}_3 &amp;amp; = &amp;amp; x_1^2+x_2^2,  \\[1.5ex]&lt;br /&gt;
 &amp;amp; x(0) &amp;amp;=&amp;amp; (0.5, 0.5, 0)^T, \\&lt;br /&gt;
 &amp;amp; x_2(t) &amp;amp; \geq &amp;amp; 0.4, \\&lt;br /&gt;
 &amp;amp; 1 &amp;amp;=&amp;amp; \sum\limits_{i=1}^3\omega_i(t), \\&lt;br /&gt;
 &amp;amp; \omega(t) &amp;amp;\in&amp;amp;  \{0, 1\}, &lt;br /&gt;
\end{array} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
for &amp;lt;math&amp;gt;t \in [t_0, t_f]=[0,1] &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Reference Solutions ==&lt;br /&gt;
&lt;br /&gt;
If the problem is relaxed, i.e., we demand that &amp;lt;math&amp;gt;w(t)&amp;lt;/math&amp;gt; be in the continuous interval &amp;lt;math&amp;gt;[0, 1]&amp;lt;/math&amp;gt; instead of the binary choice &amp;lt;math&amp;gt;\{0,1\}&amp;lt;/math&amp;gt;, the optimal solution can be determined by  using a direct method such as collocation or Bock&#039;s direct multiple shooting method. &lt;br /&gt;
&lt;br /&gt;
The optimal objective value of the relaxed problem with  &amp;lt;math&amp;gt; n_t=6000, \, n_u=40  &amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;x_3(t_f)=0.995906234&amp;lt;/math&amp;gt;. The objective value of the binary controls obtained by Combinatorial Integral Approimation (CIA) is &amp;lt;math&amp;gt;x_3(t_f) =3.20831942&amp;lt;/math&amp;gt;.  The binary control solution was evaluated in the MIOCP by using a Merit function with additional Lagrange term &amp;lt;math&amp;gt; 100 \max\limits_{t\in[0,1]}\{0,0.4-x_2(t)\}  &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Reference solution plots&amp;quot; widths=&amp;quot;180px&amp;quot; heights=&amp;quot;140px&amp;quot; perrow=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
 Image:EgerstedtRelaxed 6000 150 1.png| Optimal relaxed controls and states determined by an direct approach with ampl_mintoc (Radau collocation)  and &amp;lt;math&amp;gt;n_t=6000, \, n_u=40&amp;lt;/math&amp;gt;.&lt;br /&gt;
 Image:EgerstedtCIA 6000 150 1.png| Optimal binary controls and states determined by an direct approach (Radau collocation) with ampl_mintoc and &amp;lt;math&amp;gt;n_t=6000, \, n_u=40&amp;lt;/math&amp;gt;. The relaxed controls were approximated by Combinatorial Integral Approximation.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
&lt;br /&gt;
Model description is available in&lt;br /&gt;
* [[:Category:AMPL | AMPL code]] at [[Egerstedt standard problem (AMPL)]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;biblist /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--List of all categories this page is part of. List characterization of solution behavior, model properties, ore presence of implementation details (e.g., AMPL for AMPL model) here --&amp;gt;&lt;br /&gt;
[[Category:MIOCP]]&lt;br /&gt;
[[Category:ODE model]]&lt;br /&gt;
[[Category:Tracking objective]]&lt;br /&gt;
[[Category:Sensitivity-seeking arcs]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Testing Graphviz&lt;br /&gt;
&amp;lt;graphviz border=&#039;frame&#039; format=&#039;svg&#039;&amp;gt;&lt;br /&gt;
digraph G {Hello-&amp;gt;World!}&lt;br /&gt;
&amp;lt;/graphviz&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We present numerical results for a benchmark MIOCP from a previous study [157] with the&lt;br /&gt;
addition of switching constraints. In its original form, the problem was:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After partial outer convexification with respect to the integer control v, the binary&lt;br /&gt;
convexified counterpart problem reads&lt;/div&gt;</summary>
		<author><name>ChristophHansknecht</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Continuously_Stirred_Tank_Reactor_problem&amp;diff=2292</id>
		<title>Continuously Stirred Tank Reactor problem</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Continuously_Stirred_Tank_Reactor_problem&amp;diff=2292"/>
		<updated>2019-08-28T23:06:25Z</updated>

		<summary type="html">&lt;p&gt;ChristophHansknecht: /* Parameters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Dimensions&lt;br /&gt;
|nd        = 1&lt;br /&gt;
|nx        = 4&lt;br /&gt;
|nu        = 2&lt;br /&gt;
|nre       = 2&lt;br /&gt;
}}&amp;lt;!-- Do not insert line break here or Dimensions Box moves up in the layout...&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;The Continuously Stirred Tank Reactor problem considers a chemical reaction that produces cyclopenthenol while using up cyclepentadiene &amp;quot;by an acid-catalyzed electrophilic hydration in aqueous solution&amp;quot;, an exothermal reaction which needs to be cooled. This problem can e.g. be found in &amp;lt;bib id=&amp;quot;Diehl2001&amp;quot; /&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The inflow into the tank contains only cyclopentadiene (substance &amp;lt;math&amp;gt; A &amp;lt;/math&amp;gt;) with temperature &amp;lt;math&amp;gt; \theta_0 &amp;lt;/math&amp;gt; and the flow rate &amp;lt;math&amp;gt; \dot{V} &amp;lt;/math&amp;gt; can be controlled. The outflow rate is the same as the inflow rate to keep the liquid level in the tank constant.&lt;br /&gt;
&amp;quot;The outflow contains a remainder of cyclopentadiene, the wanted product cyclepentenol (substance &amp;lt;math&amp;gt; B &amp;lt;/math&amp;gt;) and two unwated by-products, cyclopentanediol (substance &amp;lt;math&amp;gt; C &amp;lt;/math&amp;gt;) and dicyclopentadiene (substance &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt;) with concentrations &amp;lt;math&amp;gt; c_A, c_B, c_C, c_D &amp;lt;/math&amp;gt;.&amp;quot; The latter two are not tracked in the problem as the substances are not of use.&lt;br /&gt;
The reaction scheme is given as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{ccccc}&lt;br /&gt;
A &amp;amp; \overset{k_1}\rightarrow &amp;amp; B \overset{k_2}\rightarrow &amp;amp; C\\&lt;br /&gt;
2A &amp;amp; \overset{k_3}\rightarrow &amp;amp; D&lt;br /&gt;
\end{array}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the reaction rates &amp;lt;math&amp;gt; k_i &amp;lt;/math&amp;gt; are a function of the reactor temperature &amp;lt;math&amp;gt; \theta &amp;lt;/math&amp;gt; via an Arrhenius law&lt;br /&gt;
&amp;lt;math&amp;gt; k_i(\theta) = k_{i0} \cdot \exp ( \frac{E_i}{\theta / ^\circ C + 273.15} ), \quad i=1,2,3. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The temperature &amp;lt;math&amp;gt; \theta_K &amp;lt;/math&amp;gt; in the cooling jacket is held down by an external heat exchanger whose heat removal rate &amp;lt;math&amp;gt; \dot{Q}_K &amp;lt;/math&amp;gt; can be controlled.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mathematical formulation ==&lt;br /&gt;
The problem is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{llcl}&lt;br /&gt;
 \displaystyle \max_{\dot{V}, \dot{Q}_K} &amp;amp; c_B &amp;amp; &amp;amp; \text{ at the end of reaction}   \\[1.5ex]&lt;br /&gt;
 \mbox{s.t.} &lt;br /&gt;
 &amp;amp; \dot{c_A} &amp;amp; = &amp;amp;  \frac{\dot{V}}{V_R} (c_{A0} - c_A) -  k_1 c_A - k_3 c_A^2, \\[0.5cm]&lt;br /&gt;
 &amp;amp; \dot{c_B} &amp;amp; = &amp;amp; -\frac{\dot{V}}{V_R} c_B + k_1 c_A - k_2 c_B, \\[0.5cm]&lt;br /&gt;
 &amp;amp; \dot{\theta} &amp;amp; = &amp;amp; \frac{\dot{V}}{V_R} ( \theta_0 - \theta) + \frac{k_w A_R}{\rho C_p V_R} (\theta_K - \theta) - \frac{1}{\rho C_p} (k_1 c_A H_1 + k_2 c_B H_2 + k_3 c_A^2 H_3),  \\[0.5cm]&lt;br /&gt;
 &amp;amp; \dot{\theta_K} &amp;amp; = &amp;amp; \frac{1}{m_K C_{PK}} ( \dot{Q}_K + k_w A_R (\theta - \theta_K)),\\[0.7cm]&lt;br /&gt;
 &amp;amp; c_A(0) &amp;amp; = &amp;amp; c_{A0},\\&lt;br /&gt;
 &amp;amp; c_B(0) &amp;amp; = &amp;amp; 0.&lt;br /&gt;
\end{array} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
where the various values are given in the Parameters section.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Parameters&lt;br /&gt;
|-&lt;br /&gt;
|Name&lt;br /&gt;
|Symbol&lt;br /&gt;
|Value&lt;br /&gt;
|Unit&lt;br /&gt;
|-&lt;br /&gt;
|Arrhenius coefficient&lt;br /&gt;
|&amp;lt;math&amp;gt;k_{10}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; 1.287 \cdot 10^{12} &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; h^{-1} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Arrhenius coefficient&lt;br /&gt;
|&amp;lt;math&amp;gt;k_{20}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; 1.287 \cdot 10^{12} &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; h^{-1} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Arrhenius coefficient&lt;br /&gt;
|&amp;lt;math&amp;gt;k_{30}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; 9.043 \cdot 10^{9} &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; h^{-1} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Arrhenius coefficient&lt;br /&gt;
|&amp;lt;math&amp;gt;E_1&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; -9758.3&amp;lt;/math&amp;gt;&lt;br /&gt;
|[-]&lt;br /&gt;
|-&lt;br /&gt;
|Arrhenius coefficient&lt;br /&gt;
|&amp;lt;math&amp;gt;E_2&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;-9758.3&amp;lt;/math&amp;gt;&lt;br /&gt;
|[-]&lt;br /&gt;
|-&lt;br /&gt;
|Arrhenius coefficient&lt;br /&gt;
|&amp;lt;math&amp;gt;E_3&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;-8560&amp;lt;/math&amp;gt;&lt;br /&gt;
|[-]&lt;br /&gt;
|-&lt;br /&gt;
|Reaction enthalpy&lt;br /&gt;
|&amp;lt;math&amp;gt;H_1&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;4.2&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kJ}{mol} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Reaction enthalpy&lt;br /&gt;
|&amp;lt;math&amp;gt;H_2&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;-11.0&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kJ}{mol} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Reaction enthalpy&lt;br /&gt;
|&amp;lt;math&amp;gt;H_3&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;-41.85&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kJ}{mol} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Solution density&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;0.9342&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kg}{l} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Capacity of aqueous solution&lt;br /&gt;
|&amp;lt;math&amp;gt;C_p&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;3.01&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kJ}{kg \cdot K} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Heat transfer coefficient for cooling jacket&lt;br /&gt;
|&amp;lt;math&amp;gt;k_w&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;4032&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kJ}{h \cdot m^2 \cdot K} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Reactor surface area&lt;br /&gt;
|&amp;lt;math&amp;gt;A_R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;0.215&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; m^2 &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Reactor volume&lt;br /&gt;
|&amp;lt;math&amp;gt;V_R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;10&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; l &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Coolant mass&lt;br /&gt;
|&amp;lt;math&amp;gt;m_K&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; kg &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Capacity of coolant solution&lt;br /&gt;
|&amp;lt;math&amp;gt;C_{PK}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;2.0&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kJ}{kg \cdot K} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Starting concentration of subs. &amp;lt;math&amp;gt; A &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;c_{A0}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;5.1&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{mol}{l} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Inflow temperature&lt;br /&gt;
|&amp;lt;math&amp;gt;\theta_0&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;104.9&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; ^\circ C &amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Reference solution ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The result of a steady state optimization of the yield &amp;lt;math&amp;gt; = \frac{c_B |_S}{c_{A0}} &amp;lt;/math&amp;gt; with respect to the design parameter &amp;lt;math&amp;gt; \theta_0 &amp;lt;/math&amp;gt; (feed temperature) and the two controls yields the steady stae and controls&amp;quot;&lt;br /&gt;
&amp;lt;math&amp;gt; c_A = 2.1402 \frac{mol}{l}, c_B = 1.0903\frac{mol}{l}, \theta = 114.19^\circ C, \theta_K = 112.91^\circ C &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{\dot{V}}{V_R} = 14.19 h^{-1}, \dot{Q}_K = -1113.5 \frac{kJ}{h} &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
&lt;br /&gt;
Model descriptions are available in&lt;br /&gt;
&lt;br /&gt;
* [[:Category:AMPL/TACO | AMPL/TACO code]] at [[Continuously Stirred Tank Reactor (TACO)]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--List of all categories this page is part of. List characterization of solution behavior, model properties, ore presence of implementation details (e.g., AMPL for AMPL model) here --&amp;gt;&lt;br /&gt;
[[Category:MIOCP]]&lt;br /&gt;
[[Category:ODE model]]&lt;br /&gt;
[[Category:Chemical engineering]]&lt;/div&gt;</summary>
		<author><name>ChristophHansknecht</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Continuously_Stirred_Tank_Reactor_problem&amp;diff=2291</id>
		<title>Continuously Stirred Tank Reactor problem</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Continuously_Stirred_Tank_Reactor_problem&amp;diff=2291"/>
		<updated>2019-08-28T23:05:13Z</updated>

		<summary type="html">&lt;p&gt;ChristophHansknecht: Fixed incorrect parameter&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Dimensions&lt;br /&gt;
|nd        = 1&lt;br /&gt;
|nx        = 4&lt;br /&gt;
|nu        = 2&lt;br /&gt;
|nre       = 2&lt;br /&gt;
}}&amp;lt;!-- Do not insert line break here or Dimensions Box moves up in the layout...&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;The Continuously Stirred Tank Reactor problem considers a chemical reaction that produces cyclopenthenol while using up cyclepentadiene &amp;quot;by an acid-catalyzed electrophilic hydration in aqueous solution&amp;quot;, an exothermal reaction which needs to be cooled. This problem can e.g. be found in &amp;lt;bib id=&amp;quot;Diehl2001&amp;quot; /&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The inflow into the tank contains only cyclopentadiene (substance &amp;lt;math&amp;gt; A &amp;lt;/math&amp;gt;) with temperature &amp;lt;math&amp;gt; \theta_0 &amp;lt;/math&amp;gt; and the flow rate &amp;lt;math&amp;gt; \dot{V} &amp;lt;/math&amp;gt; can be controlled. The outflow rate is the same as the inflow rate to keep the liquid level in the tank constant.&lt;br /&gt;
&amp;quot;The outflow contains a remainder of cyclopentadiene, the wanted product cyclepentenol (substance &amp;lt;math&amp;gt; B &amp;lt;/math&amp;gt;) and two unwated by-products, cyclopentanediol (substance &amp;lt;math&amp;gt; C &amp;lt;/math&amp;gt;) and dicyclopentadiene (substance &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt;) with concentrations &amp;lt;math&amp;gt; c_A, c_B, c_C, c_D &amp;lt;/math&amp;gt;.&amp;quot; The latter two are not tracked in the problem as the substances are not of use.&lt;br /&gt;
The reaction scheme is given as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{ccccc}&lt;br /&gt;
A &amp;amp; \overset{k_1}\rightarrow &amp;amp; B \overset{k_2}\rightarrow &amp;amp; C\\&lt;br /&gt;
2A &amp;amp; \overset{k_3}\rightarrow &amp;amp; D&lt;br /&gt;
\end{array}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the reaction rates &amp;lt;math&amp;gt; k_i &amp;lt;/math&amp;gt; are a function of the reactor temperature &amp;lt;math&amp;gt; \theta &amp;lt;/math&amp;gt; via an Arrhenius law&lt;br /&gt;
&amp;lt;math&amp;gt; k_i(\theta) = k_{i0} \cdot \exp ( \frac{E_i}{\theta / ^\circ C + 273.15} ), \quad i=1,2,3. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The temperature &amp;lt;math&amp;gt; \theta_K &amp;lt;/math&amp;gt; in the cooling jacket is held down by an external heat exchanger whose heat removal rate &amp;lt;math&amp;gt; \dot{Q}_K &amp;lt;/math&amp;gt; can be controlled.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mathematical formulation ==&lt;br /&gt;
The problem is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{llcl}&lt;br /&gt;
 \displaystyle \max_{\dot{V}, \dot{Q}_K} &amp;amp; c_B &amp;amp; &amp;amp; \text{ at the end of reaction}   \\[1.5ex]&lt;br /&gt;
 \mbox{s.t.} &lt;br /&gt;
 &amp;amp; \dot{c_A} &amp;amp; = &amp;amp;  \frac{\dot{V}}{V_R} (c_{A0} - c_A) -  k_1 c_A - k_3 c_A^2, \\[0.5cm]&lt;br /&gt;
 &amp;amp; \dot{c_B} &amp;amp; = &amp;amp; -\frac{\dot{V}}{V_R} c_B + k_1 c_A - k_2 c_B, \\[0.5cm]&lt;br /&gt;
 &amp;amp; \dot{\theta} &amp;amp; = &amp;amp; \frac{\dot{V}}{V_R} ( \theta_0 - \theta) + \frac{k_w A_R}{\rho C_p V_R} (\theta_K - \theta) - \frac{1}{\rho C_p} (k_1 c_A H_1 + k_2 c_B H_2 + k_3 c_A^2 H_3),  \\[0.5cm]&lt;br /&gt;
 &amp;amp; \dot{\theta_K} &amp;amp; = &amp;amp; \frac{1}{m_K C_{PK}} ( \dot{Q}_K + k_w A_R (\theta - \theta_K)),\\[0.7cm]&lt;br /&gt;
 &amp;amp; c_A(0) &amp;amp; = &amp;amp; c_{A0},\\&lt;br /&gt;
 &amp;amp; c_B(0) &amp;amp; = &amp;amp; 0.&lt;br /&gt;
\end{array} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
where the various values are given in the Parameters section.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Parameters&lt;br /&gt;
|-&lt;br /&gt;
|Name&lt;br /&gt;
|Symbol&lt;br /&gt;
|Value&lt;br /&gt;
|Unit&lt;br /&gt;
|-&lt;br /&gt;
|Arrhenius coefficient&lt;br /&gt;
|&amp;lt;math&amp;gt;k_{10}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; 1.287 \cdot 10^{13} &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; h^{-1} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Arrhenius coefficient&lt;br /&gt;
|&amp;lt;math&amp;gt;k_{20}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; 1.287 \cdot 10^{12} &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; h^{-1} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Arrhenius coefficient&lt;br /&gt;
|&amp;lt;math&amp;gt;k_{30}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; 9.043 \cdot 10^{9} &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; h^{-1} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Arrhenius coefficient&lt;br /&gt;
|&amp;lt;math&amp;gt;E_1&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; -9758.3&amp;lt;/math&amp;gt;&lt;br /&gt;
|[-]&lt;br /&gt;
|-&lt;br /&gt;
|Arrhenius coefficient&lt;br /&gt;
|&amp;lt;math&amp;gt;E_2&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;-9758.3&amp;lt;/math&amp;gt;&lt;br /&gt;
|[-]&lt;br /&gt;
|-&lt;br /&gt;
|Arrhenius coefficient&lt;br /&gt;
|&amp;lt;math&amp;gt;E_3&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;-8560&amp;lt;/math&amp;gt;&lt;br /&gt;
|[-]&lt;br /&gt;
|-&lt;br /&gt;
|Reaction enthalpy&lt;br /&gt;
|&amp;lt;math&amp;gt;H_1&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;4.2&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kJ}{mol} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Reaction enthalpy&lt;br /&gt;
|&amp;lt;math&amp;gt;H_2&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;-11.0&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kJ}{mol} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Reaction enthalpy&lt;br /&gt;
|&amp;lt;math&amp;gt;H_3&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;-41.85&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kJ}{mol} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Solution density&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;0.9342&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kg}{l} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Capacity of aqueous solution&lt;br /&gt;
|&amp;lt;math&amp;gt;C_p&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;3.01&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kJ}{kg \cdot K} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Heat transfer coefficient for cooling jacket&lt;br /&gt;
|&amp;lt;math&amp;gt;k_w&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;4032&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kJ}{h \cdot m^2 \cdot K} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Reactor surface area&lt;br /&gt;
|&amp;lt;math&amp;gt;A_R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;0.215&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; m^2 &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Reactor volume&lt;br /&gt;
|&amp;lt;math&amp;gt;V_R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;10&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; l &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Coolant mass&lt;br /&gt;
|&amp;lt;math&amp;gt;m_K&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; kg &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Capacity of coolant solution&lt;br /&gt;
|&amp;lt;math&amp;gt;C_{PK}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;2.0&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{kJ}{kg \cdot K} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Starting concentration of subs. &amp;lt;math&amp;gt; A &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;c_{A0}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;5.1&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; \frac{mol}{l} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Inflow temperature&lt;br /&gt;
|&amp;lt;math&amp;gt;\theta_0&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;104.9&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt; ^\circ C &amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Reference solution ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The result of a steady state optimization of the yield &amp;lt;math&amp;gt; = \frac{c_B |_S}{c_{A0}} &amp;lt;/math&amp;gt; with respect to the design parameter &amp;lt;math&amp;gt; \theta_0 &amp;lt;/math&amp;gt; (feed temperature) and the two controls yields the steady stae and controls&amp;quot;&lt;br /&gt;
&amp;lt;math&amp;gt; c_A = 2.1402 \frac{mol}{l}, c_B = 1.0903\frac{mol}{l}, \theta = 114.19^\circ C, \theta_K = 112.91^\circ C &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{\dot{V}}{V_R} = 14.19 h^{-1}, \dot{Q}_K = -1113.5 \frac{kJ}{h} &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
&lt;br /&gt;
Model descriptions are available in&lt;br /&gt;
&lt;br /&gt;
* [[:Category:AMPL/TACO | AMPL/TACO code]] at [[Continuously Stirred Tank Reactor (TACO)]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--List of all categories this page is part of. List characterization of solution behavior, model properties, ore presence of implementation details (e.g., AMPL for AMPL model) here --&amp;gt;&lt;br /&gt;
[[Category:MIOCP]]&lt;br /&gt;
[[Category:ODE model]]&lt;br /&gt;
[[Category:Chemical engineering]]&lt;/div&gt;</summary>
		<author><name>ChristophHansknecht</name></author>
	</entry>
</feed>