Dynamic optimization with CasADi
Joel Andersson, Johan Åkesson, Moritz Diehl · 2012
We demonstrate how CasADi, a recently developed, free, open-source, general purpose software tool for nonlinear optimization, can be used for dynamic optimization in a flexible, interactive and numerically efficient way. CasADi is best described as a minimalistic computer algebra system (CAS) implementing automatic differentiation (AD) in eight different flavors. Similar to algebraic modeling languages like AMPL or GAMS, it includes high-level interfaces to state-of-the-art numerical codes for nonlinear programming, quadratic programming and integration of differentialalgebraic equations. CasADi is implemented in self-contained C++ code and contains full-featured front-ends to Python and Octave for rapid prototyping. In this paper, we discuss CasADi from the perspective of the developer or advanced user of algorithms for dynamic optimization for the first time, leaving out details on the implementation of the tool. We demonstrate how the tool can be used to model highly complex dynamical systems directly or import existing models formulated in the algebraic modeling language AMPL or the physical modeling language Modelica. Given this symbolic representation of the process models, the resulting optimal control problem can be solved using a variety of methods, including transcription methods (collocation), methods with embedded integrators (multiple shooting) as well as indirect methods.
Cited by 39 works. doi:10.1109/cdc.2012.6426534
Authors
References
- On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming
- A Multiple Shooting Algorithm for Direct Solution of Optimal Control Problems *
- SUNDIALS
- Evaluating Derivatives
- Knitro: An Integrated Package for Nonlinear Optimization
- Nonlinear Programming
- An auto-generated real-time iteration algorithm for nonlinear MPC in the microsecond range
- Automated scientific software scripting with SWIG
- Object-oriented software for quadratic programming
- Modeling and optimization with Optimica and JModelica.org—Languages and tools for solving large-scale dynamic optimization problems