Finite Elements with Switch Detection for Direct Optimal Control of Nonsmooth Systems

Armin Nurkanović, Mario Sperl, Sebastian Albrecht, Moritz Diehl
5/11/2022
27 citations
math.OC

Official code: nosnoc/nosnoc (84 stars, MATLAB, BSD-2-Clause, last commit 2026-08-19).

Abstract

This paper introduces Finite Elements with Switch Detection (FESD), a numerical discretization method for nonsmooth differential equations. We consider the Filippov convexification of these systems and a transformation into dynamic complementarity systems introduced by [Stewart, 1990].

Show full abstract

FESD is based on solving nonlinear complementarity problems and can automatically detect nonsmooth events in time. If standard time-stepping Runge-Kutta (RK) methods are naively applied to a nonsmooth ODE, the accuracy is at best of order one. In FESD, we let the integrator step size be a degree of freedom. Additional complementarity conditions, which we call cross complementarities, enable exact switch detection, hence FESD can recover the high order accuracy that the RK methods enjoy for smooth ODE. Additional conditions called step equilibration allow the step size to change only when switches occur and thus avoid spurious degrees of freedom. Convergence results for the FESD method are derived, local uniqueness of the solution and convergence of numerical sensitivities are proven. The efficacy of FESD is demonstrated in several simulation and optimal control examples. In an optimal control problem benchmark with FESD, we achieve up to five orders of magnitude more accurate solutions than a standard time-stepping approach for the same computational time.

View on arXivView PDF

Code Implementations(1)

nosnoc/nosnocOfficial100%
BSD-2-Clause

nosnoc is an open source software package for NOnSmooth Numerical Optimal Control.

8412MATLAB, C++Mar 15, 20223 months agoBSD-2-Clause
hybrid-systemsnonsmooth-dynamical-systemsnonsmooth-mechanicsnonsmooth-optimizationnumerical-methods+4 more

Similar Papers

Cite this paper

@article{nurkanovi2022finite,
  title  = {Finite Elements with Switch Detection for Direct Optimal Control of Nonsmooth Systems},
  author = {Armin Nurkanović and Mario Sperl and Sebastian Albrecht and Moritz Diehl},
  year   = {2022},
  eprint = {2205.05337},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.05337}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.05337.svg)](https://codeofpaper.com/paper/2205.05337)

Discussion