Jump to content

DOW Experimental Design: Difference between revisions

From mintOC
 
(19 intermediate revisions by 2 users not shown)
Line 47: Line 47:
</math>
</math>
</p>
</p>
Here <math>[ \ ]</math> denotes the concentration of the species in <math>\operatorname{gmol}/\operatorname{kg}</math>.
Here <math>[ \ ]</math> denotes the concentration of the species in <math>mol/kg</math>.
By assuming the rapid acid-base reactions are at equilibrium, the equilibrium constants <math>K_1,K_2,K_3</math> can be defined as
By assuming the rapid acid-base reactions are at equilibrium, the equilibrium constants <math>K_1,K_2,K_3</math> can be defined as
<p>
<p>
Line 85: Line 85:
<math>
<math>
\begin{align}
\begin{align}
  \frac{d[MBMH]}{dt} &= k_1 \left[ M^- \right] \left[ BM \right] + k_{-1} \left[ MBM^- \right]  &&  \quad (g)\\
  \frac{d[MBMH]}{dt} &= k_1 \left[ M^- \right] \left[ BM \right] - k_{-1} \left[ MBM^- \right]  &&  \quad (g)\\
  \frac{d[HA]}{dt} &= k_2 \left[ A^- \right] \left[ BM \right] &&  \quad (h)\\
  \frac{d[HA]}{dt} &= k_2 \left[ A^- \right] \left[ BM \right] &&  \quad (h)\\
  \frac{d[HABM]}{dt} &= k_2 \left[ A^- \right] \left[ BM \right] + k_3 \left[ M^- \right] \left[ AB \right] - k_{-3} \left[ ABM^- \right] &&  \quad (i)
  \frac{d[HABM]}{dt} &= k_2 \left[ A^- \right] \left[ BM \right] + k_3 \left[ M^- \right] \left[ AB \right] - k_{-3} \left[ ABM^- \right] &&  \quad (i)
Line 110: Line 110:
  </math>
  </math>
</p>
</p>
Here <math>R \approx 8.314462 \ J/(\operatorname{mol} K) </math> is the gas constant and <math>T</math> is reaction temperature in Kelvins. The parameter <math>\alpha_i</math>, given in <math>\operatorname{mol}/( \operatorname{kg} \cdot \operatorname{h})</math>, represent the pre-exponential factor and <math>E_i</math>, with unit <math>\operatorname{cal}/{\operatorname{mol}}</math>, is the activation energy.
Here <math>R \approx 1.98720425864083 \ cal/(K \cdot mol) </math> is the gas constant and <math>T</math> is the reaction temperature in Kelvins. The parameters <math>\alpha_i</math>, given in <math>mol/( kg \cdot h)</math>, represent the pre-exponential factors and the <math>E_i</math>, with unit <math>cal/mol</math>, are the activation energies.


== Mathematical formulation ==
== Mathematical formulation ==
Line 131: Line 131:
  </math>
  </math>
</p>
</p>
Here the letters in parentheses stand for the corresponding chemical process and the quantity <math>\left[Q^+\right]=0.00131</math> is a constant during the reaction.
Here the letters in parentheses stand for the corresponding chemical process and the quantity <math>\left[Q^+\right]=0.0131</math> is a constant during the reaction.
The nine parameters form the vector  
The nine parameters form the vector  
<p>
<p>
Line 146: Line 146:


Let <math>f_k(\cdot)</math> denote the right hand side of equation <math>(k)</math> for <math>k=1,\ldots,6</math>.  
Let <math>f_k(\cdot)</math> denote the right hand side of equation <math>(k)</math> for <math>k=1,\ldots,6</math>.  
We reformulate the last four algebraic equations as differential ones:
 
<p>
The right hand sides of <math>(1)-(10)</math> are summarized as the vector-valued function <math>f</math>.
<math>
  \begin{align}
  \dot{y}_7 &= f_7 = f_6 + f_8 + f_9 + f_{10} && \quad (7') \\
  \dot{y}_8 &= f_8 = \frac{\theta_8 f_1 \cdot (\theta_8 + y_7) - \theta_8 y_1 f_7}{(\theta_8 + y_7)^2} && \quad (8') \\
  \dot{y}_9 &= f_9 = \frac{\theta_9 f_3 \cdot (\theta_9 + y_7) - \theta_9 y_3 f_7}{(\theta_9 + y_7)^2}  && \quad (9')\\
  \dot{y}_{10} &= f_{10} = \frac{\theta_7 f_5 \cdot (\theta_7 + y_7) - \theta_7 y_5 f_7}{(\theta_7 + y_7)^2} && \quad (10')
  \end{align}
</math>
</p>
The right hand sides of <math>(1)-(6)</math> and <math>(7')-(9')</math> are summarized as the vector-valued function <math>f</math>.
Moreover, let
Moreover, let
<p>
<p>
Line 209: Line 199:
             </tr>
             </tr>
     </table>
     </table>
 
Note that for the calculations all temperatures given in<math>{\ }^{\circ}C</math> have to be rescaled to <math>K</math> by adding <math>273.15</math>.


There are three datasets for different temperatures <math>T</math>, with corresponding starting values
There are three datasets for different temperatures <math>T</math>, with corresponding starting values
Line 263: Line 253:
   \begin{array}{l}
   \begin{array}{l}
   y_5 = 0 \\
   y_5 = 0 \\
   y_6 = 0.0131 \\
   y_6 = [Q^+] \\
   y_7 = \frac{1}{2} \cdot \left( -K_2 + \sqrt{K_2^2 + 4K_2 y_1(0)} \right) \\
   y_7 = \frac{1}{2} \cdot \left( -K_2 + \sqrt{K_2^2 + 4K_2 y_1(0)} \right) \\
   y_8 = y_7 \\
   y_8 = y_7 \\
Line 271: Line 261:
  </math>
  </math>
</p>
</p>
To reduce the intercorrelation between the parameters in the rate constants, we apply the following reparametrization (cf. [[#Kristensen2004|[4]]].):
<p>
<math>
  \begin{align}
  k_i &= \alpha_i \cdot \exp \left( - \frac{E_i}{RT} \right) \\
      &= k_{0,i} \cdot \exp \left( - \frac{E_i}{R} \cdot \left( \frac{1}{T} - \frac{1}{T_0} \right) \right), \quad i=1,2,-1
\end{align}
</math>
</p>
in which <math>k_{0,i} = \alpha_i \cdot \exp\left( - \frac{E_i}{RT_0} \right)</math>. The reference temperature in <math>T_0</math> is chosen as the average over all performed experiments, i.e., <math>T_0 = 69^\circ C</math>. Additionally, we add a logarithmic transformation, which gives rise to the following transformed starting values:
<table style="border-collapse: collapse;" border="1.">
            <tr>
                <td style="text-align: center; padding:5pt"> <math> \ln k_{0,1} </math> </td>
                <td style="text-align: center; padding:5pt"> <math>1.194</math> </td>
            </tr>
            <tr>
                <td style="text-align: center; padding:5pt"><math>\ln k_{0,2}</math></td>
                <td style="text-align: center; padding:5pt"><math>1.194</math></td>
            </tr>
            <tr>
                <td style="text-align: center; padding:5pt"><math>\ln k_{0,-1}</math></td>
                <td style="text-align: center; padding:5pt"><math>6.565</math></td>
            </tr>
            <tr>
                <td style="text-align: center; padding:5pt"><math>E_1</math></td>
                <td style="text-align: center; padding:5pt"><math>2.0 \cdot 10^{4}</math></td>
            </tr>
            <tr>
                <td style="text-align: center; padding:5pt"><math>E_2</math></td>
                <td style="text-align: center; padding:5pt"><math>2.0 \cdot 10^{4} </math></td>
            </tr>
            <tr>
                <td style="text-align: center; padding:5pt"><math>E_{-1}</math></td>
                <td style="text-align: center; padding:5pt"><math>2.0 \cdot 10^{4}</math></td>
            </tr>
            <tr>
                <td style="text-align: center; padding:5pt"><math>\ln K_1</math></td>
                <td style="text-align: center; padding:5pt"><math>-34.54</math></td>
            </tr>
            <tr>
                <td style="text-align: center; padding:5pt"><math>\ln K_2</math></td>
                <td style="text-align: center; padding:5pt"><math>-25.33</math></td>
            </tr>
            <tr>
                <td style="text-align: center; padding:5pt"><math>\ln K_3</math></td>
                <td style="text-align: center; padding:5pt"><math>-39.14</math></td>
            </tr>
    </table>


== Optimal Experimental Design Problem ==
== Optimal Experimental Design Problem ==
Line 365: Line 405:
<span id="OEDUDE">[2]</span> "Optimal Experimental Design for Universal Differential Equations" by C. Plate, C.J. Martensen and S. Sager <br>
<span id="OEDUDE">[2]</span> "Optimal Experimental Design for Universal Differential Equations" by C. Plate, C.J. Martensen and S. Sager <br>
<span id="Stortelder1998">[3]</span> "Parameter estimation in nonlinear systems" by W.J.H. Stortelder <br>
<span id="Stortelder1998">[3]</span> "Parameter estimation in nonlinear systems" by W.J.H. Stortelder <br>
<span id="Kristensen2004">[4]</span> "Parameter Estimation in Nonlinear Dynamical Systems" by Morten Rode Kristensen <br>


<!--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 -->
<!--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 -->

Latest revision as of 06:19, 26 August 2025

DOW Experimental Design
State dimension: 1
Differential states: 11
Discrete control functions: 2
Path constraints: 4
Interior point equalities: 11


The DOW Experimental Design problem models the OED problem for the parameter estimation problem formulated by the DOW Chemical Co. in 1981. The following formulation is taken from [1].

Chemical background

The chemical species are disguised for proprietary reasons and the desired reaction is given by HA+2BM→AB+HBMH, where AB is the desired product. The reactions are described as follows:

Slow Kinetic Reactions:

M−+BM←k−1→k1MBM−A−+BM→k2ABM−M−+AB←k−3→k3ABM−

Acid-Base Reactions:

MBMH←K1→MBM−+H+HA←K2→A−+H+HABM←K3→ABM−+H+

In order to devise a model to account for these reactions, it is first necessary to distinguish between the overall concentration of a species and the concentration of its neutral form. Overall concentrations are defined for three components based on neutral and ionic species

[HBMH]=[(MBMH)N]+[MBM−][HA]=[(HA)N]+[A−][HABM]=[(HABM)N]+[ABM−]

Here [ ] denotes the concentration of the species in mol/kg. By assuming the rapid acid-base reactions are at equilibrium, the equilibrium constants K1,K2,K3 can be defined as

K1=[MBM−][H+][(MBMH)N]K2=[A−][H+][(HA)N]K3=[ABM−][H+][(HABM)N]

The anionic species may then be represented by

[MBM−]=K1[MBMH]K1+[H+](a)[A−]=K2[HA]K2+[H+](b)[ABM−]=K3[HABM]K3+[H+](c)

Material balance equations for the three reactants in the slow kinetic reactions yield:

d[M−]dt=−k1[M−][BM]+k−1[MBM−]−k3[M−][AB]+k−1[ABM−](d)d[BM]dt=−k1[M−][BM]+k−1[MBM−]−k2[A−][BM](e)d[AB]dt=−k3[M−][AB]+k−3[ABM−](f)

From stoichiometry, rate expressions can also be written for the total species:

d[MBMH]dt=k1[M−][BM]−k−1[MBM−](g)d[HA]dt=k2[A−][BM](h)d[HABM]dt=k2[A−][BM]+k3[M−][AB]−k−3[ABM−](i)

An electroneutrality constraint gives the hydrogen ion concentration [H+] as

[H+]+[Q+]=[M−]+[MBM−]+[A−]+[ABM−](j)

Based on similarities of reacting species, we assume

k3=k1,k−3=12k−1

With these assumptions, the three rate constants k1,k2 and k−1 must be estimated. Each of these can be fitted with two adjustable model parameters, assuming an Arrhenius temperature dependence. That is

ki=αiexp⁡(−Ei/(RT)),i∈{−1,1,2}

Here R≈1.98720425864083 cal/(K⋅mol) is the gas constant and T is the reaction temperature in Kelvins. The parameters αi, given in mol/(kg⋅h), represent the pre-exponential factors and the Ei, with unit cal/mol, are the activation energies.

Mathematical formulation

The chemical processes (a)−(j) can be expressed mathematically as six differential equations and four algebraic equations:

y˙1=−k2y8y2(1),(h)y˙2=−k1y6y2+k−1y10−k2y8y2(2),(e)y˙3=k2y8y2+k1y6y4−12k−1y9(3),(i)y˙4=−k1y6y4+12k−1y9(4),(f)y˙5=k1y6y2−k−1y10(5),(g)y˙6=−k1(y6y2+y6y4)+k−1(y10+12y9)(6),(d)y7=−[Q+]+y6+y8+y9+y10(7),(j)y8=θ8y1θ8+y7(8),(b)y9=θ9y3θ9+y7(9),(c)y10=θ7y5θ7+y7(10),(a)

Here the letters in parentheses stand for the corresponding chemical process and the quantity [Q+]=0.0131 is a constant during the reaction. The nine parameters form the vector

θ=(α1,E1,α2,E2,α−1,E−1,K1,K2,K3)

The predicted concentrations form the vector

y=(HA,BM,HABM,AB,MBMH,M−,H+,A−,ABM−,MBM−)

Let fk(⋅) denote the right hand side of equation (k) for k=1,…,6.

The right hand sides of (1)−(10) are summarized as the vector-valued function f. Moreover, let

fy,m,n(⋅)=∂fm(⋅)∂yn,m,n∈{1,…,10}fθ,m,n(⋅)=∂fm(⋅)∂θn,m∈{1,…,10}; n∈{1,…,9}

Parameters

The initial parameter estimates are:

α1 2.0⋅1013 mol/(kg⋅h)
α2 2.0⋅1013 mol/(kg⋅h)
α−1 4.3⋅1015 mol/(kg⋅h)
E1 2.0⋅104 cal/mol
E2 2.0⋅104 cal/mol
E−1 2.0⋅104 cal/mol
K1 1.0⋅10−17 mol/kg
K2 1.0⋅10−11 mol/kg
K3 1.0⋅10−17 mol/kg

Note that for the calculations all temperatures given in ∘C have to be rescaled to K by adding 273.15.

There are three datasets for different temperatures T, with corresponding starting values

40∘C 67∘C 100∘C
y1(0) 1.7066 1.6749 1.5608
y2(0) 8.32 8.2262 8.3546
y3(0) 0.01 0.0104 0.0082
y4(0) 0 0.0017 0.0086

The initial model conditions in addition to those given in the data sets are:

y5=0y6=[Q+]y7=12⋅(−K2+K22+4K2y1(0))y8=y7y9=0y10=0

To reduce the intercorrelation between the parameters in the rate constants, we apply the following reparametrization (cf. [4].):

ki=αi⋅exp⁡(−EiRT)=k0,i⋅exp⁡(−EiR⋅(1T−1T0)),i=1,2,−1

in which k0,i=αi⋅exp⁡(−EiRT0). The reference temperature in T0 is chosen as the average over all performed experiments, i.e., T0=69∘C. Additionally, we add a logarithmic transformation, which gives rise to the following transformed starting values:

ln⁡k0,1 1.194
ln⁡k0,2 1.194
ln⁡k0,−1 6.565
E1 2.0⋅104
E2 2.0⋅104
E−1 2.0⋅104
ln⁡K1 −34.54
ln⁡K2 −25.33
ln⁡K3 −39.14

Optimal Experimental Design Problem

To be specified.

We are interested in when to measure (with an upper bound Mi on the measuring time for each observable). We define

fy(⋅)∈ℝ10×10 with (fy)i,j=fy,i,j,fθ(⋅)∈ℝ10×9 with (fθ)i,j=fθ,i,j

In this approach, we add the so-called sensitivities G=dy/dθ. For the differential equations this means

G˙(t)=fy(y(t),θ)G(t)+fθ(y(t),θ),G(0)=∂y(0)∂θ

Now we formulate the OED problem as described in [2].

miny,G,F,z,wtrace(F−1(tf))subject toy˙(t)=f(y(t),θ)G˙(t)=fy(y(t),θ)G(t)+fθ(y(t),θ)F˙(t)=∑i=1nowi(t)(hyi(y(t))G(t))T(hyi(y(t))G(t))z˙(t)=w(t),y(0)=y0G(0)=∂y(0)∂θF(0)=0,z(0)=0w(t)∈𝒲zi(tf)≤Mi

Here h:ℝ10→ℝno is the observed function. The evolution of the symmetric matrix F:[0,tf]→ℝ9×9 is given by the weighted sum of observability Gramians hyi(y(t))G(t), i=1,…,no for each observed function of states. The weights wi(t)∈{0,1}, i=1,…,no are the (binary) sampling decisions, where wi(t)=1 denotes the decision to perform a measurement at time t.

Miscellaneous and Further Reading

To be specified.

References

[1] "Nonlinear Parameter Estimation: a Case Study Comparison" by L. T. Biegler and J. J. Damiano
[2] "Optimal Experimental Design for Universal Differential Equations" by C. Plate, C.J. Martensen and S. Sager
[3] "Parameter estimation in nonlinear systems" by W.J.H. Stortelder
[4] "Parameter Estimation in Nonlinear Dynamical Systems" by Morten Rode Kristensen