Aug 12 – 16, 2024
Von-Melle-Park 8
Europe/Berlin timezone

IFDIFF - A Matlab Toolkit for ODEs with State˗Dependent Switches

Aug 16, 2024, 9:30 AM
30m
Seminarraum 206 (Von-Melle-Park 8)

Seminarraum 206

Von-Melle-Park 8

Minisymposium Contribution MS 02: Robust Optimization of hybrid / nonsmooth systems MS 02: Robust Optimization of hybrid / nonsmooth systems

Speaker

Andreas Sommer (IWR - Uni Heidelberg)

Description

Several formulations for robustified optimization problems incorporate first-order derivatives of the original objective. In dynamic optimization settings, this usually involves the computation of sensitivities w.r.t. initial values and parameters of the underlying differential model.
We present the toolkit IFDIFF [1] for integration and sensitivity generation in parameterized implicitly (state-dependent) switched ODEs whose right-hand side is given as Matlab code containing non-differentiable operators (max, abs, etc.) and conditionals (if).
Naive implementations using IF-THEN-ELSE branching give unreliable simulation results without warning, as switching events are undetectable by standard integrators. The widespread belief that this can be countered using more stringent integration tolerances is wrong: We give a simple example where the integrator’s error estimation always delivers zero.
Correct treatment of switched systems requires elaborate formulation of switching functions and tailored integrators, placing high mathematical demands on modelers. Even small model changes often imply considerable reformulation effort. Further, n switches generate up to $2^n$ possible program flows and switching functions, rendering a-priori formulations infeasible already in medium-sized models.
IFDIFF programmatically handles switching events, auto-generating only required switching functions. It determines switching times up to machine precision, and ensures accurate simulation and sensitivity results. Transparently extending the Matlab integrators (ode45, ode15s, etc.), IFDIFF is applicable to existing code with state- and parameter-dependent conditionals, thus enabling fast prototyping and relieving modelers of mathematical-technical effort.

[1] IFDIFF - A Matlab Toolkit for ODEs with State˗Dependent Switches, https://andreassommer.github.io/ifdiff/

Author

Andreas Sommer (IWR - Uni Heidelberg)

Presentation materials

There are no materials yet.