Difference between revisions of "LinearMetabolic"

From mintOC
Jump to: navigation, search
(Mathematical formulation)
Line 2: Line 2:
 
|nd        = 1
 
|nd        = 1
 
|nx        = 4
 
|nx        = 4
|nw        = 1
+
|nw        = 3
 
|nc        = 2
 
|nc        = 2
 
|nri        = 2
 
|nri        = 2
Line 46: Line 46:
 
</p>
 
</p>
 
Here the four differential states and three control functions stand for the metabolite concentrations (<math> x_1, x_2, x_3, x_4 </math>) and the enzyme concentrations (<math> u_1, u_2, u_3 </math>). The objective function candidates are the sum of intermediate metabolite concentrations and the transition time. The parameters (<math> k_1, k_2, k_3 </math>) are kinetic parameters in mass action expressions.
 
Here the four differential states and three control functions stand for the metabolite concentrations (<math> x_1, x_2, x_3, x_4 </math>) and the enzyme concentrations (<math> u_1, u_2, u_3 </math>). The objective function candidates are the sum of intermediate metabolite concentrations and the transition time. The parameters (<math> k_1, k_2, k_3 </math>) are kinetic parameters in mass action expressions.
 +
 +
== Data ==
 +
several cases
 +
 +
== Examples ==
 +
<gallery caption="Reference solution plots" widths="180px" heights="140px" perrow="3">
 +
Image:ElectricCar PrimalStates Plot.PNG| Primal states of an optimal trajectory for the relaxed problem on a control discretization grid with <math> N = 1,000 </math>.
 +
Image:ElectricCar Control PathConstraints SwitchingFunction Plot.PNG| The optimal control and switching function. The dotted vertical lines show the switching times <math> \tau_i </math> where transitions between different kinds of arcs occur.
 +
</gallery>
  
 
== Parameters ==
 
== Parameters ==

Revision as of 07:39, 20 October 2023

LinearMetabolic
State dimension: 1
Differential states: 4
Discrete control functions: 3
Path constraints: 2
Interior point inequalities: 2
Interior point equalities: 5


The Linear Metabolic problem is a generalized inverse optimal control problem formulated and investigated in [Tsiantis2018]Author: Tsiantis, Nikolaos; Balsa-Canto, Eva; Banga, Julio R
Journal: Bioinformatics
Number: 14
Pages: 2433-2440
Title: Optimality and identification of dynamic models in systems biology: an inverse optimal control framework
Volume: 34
Year: 2018
Link to Google Scholar
. It tries to identify an a priori unknown objective function from data.

The problem is a generalization of the one studied by de Hijas-Liste et al. (2014), where it was considered as a standard optimal control problem (OCP). Here, we take the solution reference of the inner problem as the multi-objective OCP described in de Hijas-Liste et al. (2014), selecting a specific point of the resulting Pareto front. This case study is interesting, because it includes path constraints on the states and the inputs.

A 3-step linear metabolic pathway with mass action kinetics is considered. The differential states x are metabolite concentrations, the time-dependent control functions u are enzyme concentrations, and the model parameters p are kinetic parameters in mass action expressions. Candidate objective functionals \phi are the final time and the time-integral of the intermediate metabolite concentrations. The measurement function is a map to the values of the differential states and comprises measurements of metabolite concentrations. The differential equations are assumed to be fully known as standard mass action kinetics. An inequality path constraint is present (but potentially unknown in such settings) on the inner level and critical from a biological point of view: limitations due to molecular crowding impose an upper bound on the maximum total concentration of enzymes (controls) at any given time. Boundary conditions are fixed initial and terminal values of the metabolite concentrations.

Mathematical formulation

Under construction...

The gIOC is given by


   \displaystyle \min_{(p, w, x^*, u^*, T^*)} \; \| x^* - \eta \|
   subject to 
      (x^*,u^*, T^*) \in \displaystyle \arg \min_{x, u, T}  w_1 \cdot \int_{0}^{T} (x_2 + x_3) \, dt + w_2 \cdot \int_{0}^{T} 1 \,dt 
      subject to 
                 \begin{array}{rcl}
                 \dot{x_1}(t) &=& \displaystyle 0 \\
                 \dot{x_2}(t) &=& \displaystyle p_1 \cdot x_1 \cdot u_1 - p_2 \cdot x_2 \cdot u_2 \\
                 \dot{x_3}(t) &=& \displaystyle p_2 \cdot x_2 \cdot u_2 - p_3 \cdot x_3 \cdot u_3 \\
                 \dot{x_4}(t) &=& \displaystyle p_3 \cdot x_3 \cdot u_3 \\
                 x(0) &=& (1, 0, 0, 0) \\
                 x_4(T) &=& 0.9 \\
                 x_i(t) &\ge& 0 \; \forall \; i \in \{1,2,3,4\} \\                 
                 u_i(t) &\in& [0,1] \; \forall \; i \in \{1,2,3\} \\
                 w_1, w_2 \in [0,1] \\
                 w_1 + w_2 = 1
                 \end{array}

Here the four differential states and three control functions stand for the metabolite concentrations ( x_1, x_2, x_3, x_4 ) and the enzyme concentrations ( u_1, u_2, u_3 ). The objective function candidates are the sum of intermediate metabolite concentrations and the transition time. The parameters ( k_1, k_2, k_3 ) are kinetic parameters in mass action expressions.

Data

several cases

Examples

Parameters

These fixed values are used within the model.

Parameters
Name Symbol Value Unit
Coefficient of reduction K_r 10 [-]
Air density \rho 1.293  kg/m^3
Aerodynamic coefficient C_x 0.4 [-]
Area in the front of the vehicle S 2  m^2
Radius of the wheel r 0.33  m
Constant representing the friction of the wheels on the road K_f 0.03 [-]
Coefficient of the motor torque K_m 0.27 [-]
Inductor resistance R_m 0.03  Ohms
inductance of the rotor L_m 0.05 [-]
Mass M 250  kg
Gravity constant g 9,81 [-]
Battery voltage V_{alim} 150  V
Resistance of the battery R_{bat} 0.05  Ohms

Reference Solutions

We look at the particular instance of our problem with  t_f = 10s and target set  \mathcal{T} = \mathbb{R} \times \mathbb{R}  \times \{100\} \times \mathbb{R} , in which the car needs to cover 100m in 10s. Figure 1 shows a plot of the differential states of the optimal trajectory of the relaxed problem (i.e.  u \in [-1,1] instead of  u \in \{-1,1\} ) for  N = 1000, N being the number of time discretization points. The current   x_0 increases to its maximal value of 150A, stays there for a certain time, decreases on its minimal value of -150A, stays on this value and eventually increases slightly. This behavior corresponds to the different arcs bang, path-constrained, singular, path-constrained, bang and can be observed also in Figure 2. It shows the corresponding switching function and the optimal control. Note that the plots show data from the solution with the indirect approach.

Applying the sum up rounding strategy results in an integer-feasible chattering solution. The resulting primal states are shown in Figure 3. One observes the high-frequency zig-zagging of the current  x_0 that results from the fast switches in the control.

The direct and indirect approaches are local optimization techniques and only provide upper bounds for the relaxed problem and hence for the original problem. Here the indirect solution of the relaxed problem gives us a bound of  x_3(t_f) = 22777.2 .


Source Code

Model descriptions are available in

Variants

There are several alternative formulations and variants of the above problem, in particular

  • fixed final velocity,  \mathcal{T} = \mathbb{R} \times \{ 50 \frac{K_r}{3.6r} \} \times \{100\} \times \mathbb{R}, t_f = 10s
  • bounded velocity,  \mathcal{T} = \mathbb{R} \times \mathbb{R} \times \{100\} \times \mathbb{R}, t_f = 10s, x_2(t) \leq 45 \frac{K_r}{3.6r} \forall t
  • fixed final velocity, bounded velocity, longer time horizon,  x_2(t) \leq 30 \frac{K_r}{3.6r} \forall t, \mathcal{T} = \mathbb{R} \times \{ 30 \frac{K_r}{3.6r} \} \times \{100\} \times \mathbb{R}, t_f = 15s .

References

[Tsiantis2018]Tsiantis, Nikolaos; Balsa-Canto, Eva; Banga, Julio R (2018): Optimality and identification of dynamic models in systems biology: an inverse optimal control framework. Bioinformatics, 34, 2433-2440Link to Google Scholar