Lotka Shared OED: Difference between revisions
RobertLampel (talk | contribs) |
RobertLampel (talk | contribs) |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Dimensions | {{Dimensions | ||
|nd = 1 | |nd = 1 | ||
|nx = | |nx = 21 | ||
|nw | |nw = 4}} | ||
}} | |||
The '''Lotka Shared Experimental Design problem''' looks for an optimal strategy to be performed on a fixed time horizon to control the biomasses multiple species as described in [[:LV Shared Resource]]. The goal here, however, is to minimize the uncertainty of a follow-up parameter estimation problem. When measurements of the three state variables are performed becomes a degree of freedom. | The '''Lotka Shared Experimental Design problem''' looks for an optimal strategy to be performed on a fixed time horizon to control the biomasses multiple species as described in [[:LV Shared Resource]]. The goal here, however, is to minimize the uncertainty of a follow-up parameter estimation problem. When measurements of the three state variables are performed becomes a degree of freedom. | ||
| Line 15: | Line 12: | ||
== Mathematical formulation == | == Mathematical formulation == | ||
We are interested in estimating the parameters <math> | We are interested in estimating the parameters <math>\alpha_0, \alpha_1,</math> and <math>\alpha_2</math> of the Lotka-Volterra type predator-prey initial value problem | ||
<p> | <p> | ||
<math> | <math> | ||
\begin{array}{rcl} | \begin{array}{rcl} | ||
\dot{x}_0(t) & = & x_0(t) - x_0(t) x_1(t) - x_0(t) x_2(t), \\ | \dot{x}_0(t) & = & x_0(t) - \alpha_0 x_0(t) x_1(t) - x_0(t) x_2(t), && t \in [0,t_f], \quad x_0(0) = 1.5, \\ | ||
\dot{x}_1(t) & = & - x_1(t) + x_0(t) x_1(t) - c_1 x_1(t) u(t), | \dot{x}_1(t) & = & - x_1(t) + \alpha_1 x_0(t) x_1(t) - c_1 x_1(t) u(t), && t \in [0,t_f], \quad x_1(0) = 0.5, \\ | ||
\dot{x}_2(t) & = & -x_2(t) + \ | \dot{x}_2(t) & = & -x_2(t) + \alpha_2 x_0(t) x_2(t) - c_2 x_2(t) u(t), && t \in [0,t_f], \quad x_2(0) = 1, | ||
\end{array} | \end{array} | ||
</math> | </math> | ||
</p> | </p> | ||
where <math>u(\cdot)</math> is a control that may or may not be fixed. The other parameters, the initial values and <math>t_f = | where <math>u(\cdot)</math> is a control that may or may not be fixed. The other parameters, the initial values and <math>t_f = 20</math> are fixed. We are interested in how to choose <math>u</math> and when to measure, with an upper bound <math>M</math> on the measuring time. We can measure the states directly, i.e., <math>h^i(x(t)) = x_i(t), \ i=0,1,2</math>. We use three different sampling functions, <math>w_i(\cdot), i=0,1,2,</math> in the same experimental setting. This can be seen either as a three-dimensional measurement function <math>h(x(t))</math>, or as a special case of a multiple experiment, in which <math>u(\cdot), x(\cdot)</math>, and <math>G(\cdot)</math> are identical. | ||
Now we formulate the OED problem with <math>\theta := (\alpha_0, \alpha_1, \alpha_2)</math>: | |||
<p> | <p> | ||
<math> | <math> | ||
\begin{array}{lll} | \begin{array}{lll} | ||
\displaystyle \min_{x,G,F,z | \displaystyle \min_{x,G,F,z,w,u} && \text{trace} \; \left( F^{-1}(t_f) \right) \\ | ||
\text{subject to} \\ | \text{subject to} \\ | ||
\quad \dot{ | \quad \dot{x}(t) & = & f(x(t),u(t),\theta) \\ | ||
\quad \dot{ | \quad \dot{G}(t) & = & f_x(x(t),u(t),\theta) G(t) + f_\theta(x(t),u(t),\theta) \\ | ||
\quad \dot{F}(t) & = & \sum_{i=0}^{2} w_i(t)(h^i_x(x(t))G(t))^T(h^i_x(x(t))G(t)) \\ | |||
\quad \dot{z}(t) & = & w(t) \\ | |||
\quad \dot{ | \quad x(0) & = & (1.5, 0.5, 1)^T \\ | ||
\ | \quad G(0) & = & \frac{\partial x(0)}{\partial \theta} \\ | ||
\quad F(0) & = & I \cdot \varepsilon_{\mathrm{reg}}, \\ | |||
\quad z(0) & = & 0 \\ | |||
\quad u(t) & \in & \mathcal{U} \\ | |||
\quad w(t) & \in & \mathcal{W} \\ | |||
\quad \dot{z | \quad z_i(t_f) & \leq & M_i | ||
\quad x(0) &=& ( | |||
\quad G(0) &=& | |||
\quad | |||
\quad u(t) & \in & \mathcal{U} | |||
\quad | |||
\end{array} | \end{array} | ||
</math> | </math> | ||
</p> | </p> | ||
The evolution of the symmetric matrix <math>F: \left[0,t_f \right] \rightarrow \mathbb{R}^{3 \times 3}</math> is given by the weighted sum of observability Gramians | |||
<math>h^i_x (x(t)) G(t), \ i = 0,1,2,</math> for each observed function of states. | |||
<math> | |||
\ | |||
</math> | |||
== Parameters == | == Parameters == | ||
| Line 89: | Line 70: | ||
| align=center | <math>\varepsilon_\mathrm{reg}</math> || align=right | 0.1 || Regularization of Fisher matrix | | align=center | <math>\varepsilon_\mathrm{reg}</math> || align=right | 0.1 || Regularization of Fisher matrix | ||
|- | |- | ||
| align=center | <math>\mathcal{U}</math> || align=right | [0,1] || Bounds of control function | | align=center | <math>\mathcal{U}</math> || align=right | <math>[0,1]^3</math> || Bounds of control function | ||
|- | |- | ||
| align=center | <math>\mathcal{W}</math> || align=right | [0,1] || Bounds of measurement function | | align=center | <math>\mathcal{W}</math> || align=right | <math>[0,1]^3</math> || Bounds of measurement function | ||
|- | |- | ||
| align=center | <math>M_1, M_2 | | align=center | <math>M_0, M_1, M_2</math> || align=right | 4 || Maximum measurement time | ||
|} | |} | ||
| Line 100: | Line 81: | ||
Here is one local solution to the above control problem. | Here is one local solution to the above control problem. | ||
<gallery caption="Reference solution plots" widths=" | <gallery caption="Reference solution plots" widths="500px" heights="300px" perrow="1"> | ||
Image: | Image:Lotka_Shared_OED.png| States, control, and sampling functions for a local optimum. | ||
</gallery> | </gallery> | ||
| Line 111: | Line 89: | ||
Model descriptions are available in | Model descriptions are available in | ||
* [[:Category: | * [[:Category:Casadi | CasADi]] at https://github.com/rlampel/PySHeRLOC | ||
== Miscellaneous and Further Reading == | == Miscellaneous and Further Reading == | ||
Latest revision as of 10:16, 26 March 2026
| Lotka Shared OED | |
|---|---|
| State dimension: | 1 |
| Differential states: | 21 |
| Discrete control functions: | 4 |
The Lotka Shared Experimental Design problem looks for an optimal strategy to be performed on a fixed time horizon to control the biomasses multiple species as described in LV Shared Resource. The goal here, however, is to minimize the uncertainty of a follow-up parameter estimation problem. When measurements of the three state variables are performed becomes a degree of freedom.
The mathematical equations form a small-scale ODE model. The ODE from LV Shared Resource is extended such that it also includes state sensitivities, the Fisher information matrix entries and integrated sampling states.
The optimal integer control functions shows bang bang behavior.
Mathematical formulation
We are interested in estimating the parameters and of the Lotka-Volterra type predator-prey initial value problem
where is a control that may or may not be fixed. The other parameters, the initial values and are fixed. We are interested in how to choose and when to measure, with an upper bound on the measuring time. We can measure the states directly, i.e., . We use three different sampling functions, in the same experimental setting. This can be seen either as a three-dimensional measurement function , or as a special case of a multiple experiment, in which , and are identical.
Now we formulate the OED problem with :
The evolution of the symmetric matrix is given by the weighted sum of observability Gramians for each observed function of states.
Parameters
These fixed values are used within the model:
| Symbol | Value | Description |
|---|---|---|
| 1.0 | ||
| 1.0 | ||
| 1.2 | ||
| 0.1 | ||
| 0.4 | ||
| 20 | Horizon of the control problem | |
| 0.1 | Regularization of Fisher matrix | |
| Bounds of control function | ||
| Bounds of measurement function | ||
| 4 | Maximum measurement time |
Reference Solutions
Here is one local solution to the above control problem.
- Reference solution plots
-
States, control, and sampling functions for a local optimum.
Source Code
Model descriptions are available in
Miscellaneous and Further Reading
The Lotka Volterra fishing problem was introduced by Sebastian Sager in a proceedings paper [Sager2006]Address: Heidelberg
Author: S. Sager; H.G. Bock; M. Diehl; G. Reinelt; J.P. Schl\"oder
Booktitle: Recent Advances in Optimization
Editor: A. Seeger
Note: ISBN 978-3-5402-8257-0
Pages: 269--289
Publisher: Springer
Series: Lectures Notes in Economics and Mathematical Systems
Title: Numerical methods for optimal control with binary control functions applied to a Lotka-Volterra type fishing problem
Volume: 563
Year: 2009
and revisited in his PhD thesis [Sager2005]Address: Tönning, Lübeck, Marburg
Author: S. Sager
Editor: ISBN 3-89959-416-9
Publisher: Der andere Verlag
Title: Numerical methods for mixed--integer optimal control problems
Url: http://mathopt.de/PUBLICATIONS/Sager2005.pdf
Year: 2005
. These are also the references to look for more details. The experimental design problem has been described in the habilitation thesis of Sager, [Sager2011d]Author: S. Sager
How published: University of Heidelberg
Month: August
Note: Habilitation
Title: On the Integration of Optimization Approaches for Mixed-Integer Nonlinear Optimal Control
Url: http://mathopt.de/PUBLICATIONS/Sager2011d.pdf
Year: 2011
.
References
| [Sager2005] | S. Sager (2005): Numerical methods for mixed--integer optimal control problems. (%edition%). Der andere Verlag, Tönning, Lübeck, Marburg, %pages% | ![]() |
| [Sager2006] | S. Sager; H.G. Bock; M. Diehl; G. Reinelt; J.P. Schl\"oder (2009): Numerical methods for optimal control with binary control functions applied to a Lotka-Volterra type fishing problem. Springer, Recent Advances in Optimization | ![]() |
| [Sager2011d] | S. Sager: On the Integration of Optimization Approaches for Mixed-Integer Nonlinear Optimal Control, 2011 | ![]() |