Jump to content

LinearMetabolic

From mintOC
Revision as of 11:33, 19 October 2023 by SebastianSager (talk | contribs) (Created page with "{{Dimensions |nd = 1 |nx = 4 |nw = 1 |nc = 2 |nri = 2 |nre = 5 }}<!-- Do not insert line break here or Dimensions Box moves up in the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
LinearMetabolic
State dimension: 1
Differential states: 4
Discrete control functions: 1
Path constraints: 2
Interior point inequalities: 2
Interior point equalities: 5


Under construction...

The Linear Metabolic problem is a generalized inverse optimal control problem. It tries to identify an a priori unknown objective function from data. The control unction u(t) is ...

The problem is discussed in detail in [Sager2015]Author: Sager, S.; M. Claeys; F. Messine
Journal: Journal of Global Optimization
Number: 4
Pages: 721--743
Title: Efficient upper and lower bounds for global mixed-integer optimal control
Volume: 61
Year: 2015
Link to Google Scholar
.

Mathematical formulation

The mixed-integer optimal control problem is given by

minx,ux3(tf)s.t.x˙0=(ValimuRmx0Kmx1)/Lm,x˙1=Kr2Mr2(Kmx0rKr(MgKf+12ρSCxr2Kr2x12)),x˙2=rKrx1,x˙3=Valimux0+Rbatx02,x(t0)=(0,0,0,0)T,x(tf)𝒯4,x0(t)[imax,imax],u(t){1,1}.

Here the four differential states stand for the electrical current (x0), the angular velocity (x1), the position of the car (x2), and the consumed energy (x3). The objective function x3(tf)is just a reformulation of the Lagrange-type objective function tracking the used energy over time.

Parameters

These fixed values are used within the model.

Parameters
Name Symbol Value Unit
Coefficient of reduction Kr 10 [-]
Air density ρ 1.293 kg/m3
Aerodynamic coefficient Cx 0.4 [-]
Area in the front of the vehicle S 2 m2
Radius of the wheel r 0.33 m
Constant representing the friction of the wheels on the road Kf 0.03 [-]
Coefficient of the motor torque Km 0.27 [-]
Inductor resistance Rm 0.03 Ohms
inductance of the rotor Lm 0.05 [-]
Mass M 250 kg
Gravity constant g 9,81 [-]
Battery voltage Valim 150 V
Resistance of the battery Rbat 0.05 Ohms

Reference Solutions

We look at the particular instance of our problem with tf=10sand target set 𝒯=××{100}×, 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[1,1]instead of u{1,1}) for N=1000,Nbeing the number of time discretization points. The current x0increases 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 x0that 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 x3(tf)=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, 𝒯=×{50Kr3.6r}×{100}×,tf=10s
  • bounded velocity, 𝒯=××{100}×,tf=10s,x2(t)45Kr3.6rt
  • fixed final velocity, bounded velocity, longer time horizon, x2(t)30Kr3.6rt,𝒯=×{30Kr3.6r}×{100}×,tf=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