NOSNOC: A Software Package for Numerical Optimal Control of Nonsmooth Systems

Armin Nurkanović, Moritz Diehl
3/22/2022
math.OCeess.SY

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

Abstract

This letter introduces the NOnSmooth Numerical Optimal Control (NOSNOC) open-source software package. It is a modular MATLAB tool based on CasADi and IPOPT for numerically solving Optimal Control Problems (OCP) with piecewise smooth systems (PSS).

Show full abstract

The tool supports: 1) automatic reformulation of systems with state jumps into PSS (via the time-freezing reformulation [Nurkanović et al., 2021]) and of PSS into computationally more convenient forms, 2) automatic discretization of the OCP via, e.g., the recently introduced Finite Elements with Switch Detection [Nurkanović et al., 2022] which enables high accuracy optimal control and simulation of PSS, 3) solution methods for the resulting discrete-time OCP. The nonsmooth discrete-time OCP are solved with techniques of continuous optimization in a homotopy procedure, without the use of integer variables. This enables the treatment of a broad class of nonsmooth systems in a unified way. Two tutorial examples are given. A benchmark shows that NOSNOC provides both faster and more accurate solutions than conventional approaches, including mixed-integer formulations.

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{nurkanovi2022nosnoc,
  title  = {NOSNOC: A Software Package for Numerical Optimal Control of Nonsmooth Systems},
  author = {Armin Nurkanović and Moritz Diehl},
  year   = {2022},
  eprint = {2203.11516},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.11516}
}

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/2203.11516.svg)](https://codeofpaper.com/paper/2203.11516)

Discussion