Autogenerating microsecond solvers for nonlinear MPC: A tutorial using ACADO integrators

被引:104
作者
Quirynen, R. [1 ]
Vukov, M. [1 ]
Zanon, M. [1 ,2 ]
Diehl, M. [1 ,2 ]
机构
[1] Katholieke Univ Leuven, ESAT STADIUS, B-3001 Louvain, Belgium
[2] Univ Freiburg, IMTEK, D-79110 Freiburg, Germany
基金
比利时弗兰德研究基金会; 欧洲研究理事会;
关键词
NMPC; embedded optimization; Runge-Kutta methods; code generation; sensitivity analysis; PREDICTIVE CONTROL; ALGORITHM; NMPC;
D O I
10.1002/oca.2152
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Nonlinear model predictive control (NMPC) allows one to explicitly treat nonlinear dynamics and constraints. To apply NMPC in real time on embedded hardware, online algorithms as well as efficient code implementations are crucial. A tutorial-style approach is adopted in this article to present such algorithmic ideas and to show how they can efficiently be implemented based on the ACADO Toolkit from MATLAB (MathWorks, Natick, MA, USA). Using its code generation tool, one can export tailored Runge-Kutta methods-explicit and implicit ones-with efficient propagation of their sensitivities. The article summarizes recent research results on autogenerated integrators for NMPC and shows how they allow to formulate and solve practically relevant problems in only a few tens of microseconds. Several common NMPC formulations can be treated by these methods, including those with stiff ordinary differential equations, fully implicit differential algebraic equations, linear input and output models, and continuous output independent of the integration grid. One of the new algorithmic contributions is an efficient implementation of infinite horizon closed-loop costing. As a guiding example, a full swing-up of an inverted pendulum is considered. Copyright (C) 2014 John Wiley & Sons, Ltd.
引用
收藏
页码:685 / 704
页数:20
相关论文
共 44 条
[1]  
Albersmeyer J, 2010, THESIS
[2]   THE LIFTED NEWTON METHOD AND ITS APPLICATION IN OPTIMIZATION [J].
Albersmeyer, Jan ;
Diehl, Moritz .
SIAM JOURNAL ON OPTIMIZATION, 2010, 20 (03) :1655-1684
[3]  
Allgower F., 1999, Advances in Control. Highlights of ECC'99, P391
[4]  
Andersson J., 2013, A General-Purpose Software Framework for Dynamic Optimization
[5]  
[Anonymous], 2012, IFAC P
[6]  
[Anonymous], 2009, Springer Series in Computational Mathematics, DOI DOI 10.1016/j.avsg.2006.10.009
[7]  
[Anonymous], 1985, IFAC Proceedings Series
[8]  
Bock Hans Georg, 1983, Numerical treatment of inverse problems in differential and integral equations, P95, DOI [10. 1007/978-1-4684-7324-7_7, DOI 10.1007/978-1-4684-7324-7_7, DOI 10.1007/978-1-4684-7324-77]
[9]   Stabilizing receding-horizon control of nonlinear time-varying systems [J].
De Nicolao, G ;
Magni, L ;
Scattolini, R .
IEEE TRANSACTIONS ON AUTOMATIC CONTROL, 1998, 43 (07) :1030-1036
[10]  
Debrouwere F., 2014, IFAC Proc Vol, V47, P9617, DOI [10.3182/20140824-6-ZA-1003.01674, DOI 10.3182/20140824-6-ZA-1003.01674]