在本文中,我们介绍了一个基于 MATLAB 构建的开源软件 MATMPC,用于非线性模型预测控制(NMPC)。它旨在为广泛类别的 NMPC 应用提供建模、控制器设计和仿真便利。MATMPC 包含多个算法模块,包括自动微分、直接多阶段 shooting、压缩、线性二次规划(QP)求解器和全局优化。它还支持一种独特的非线性曲率测量(CMoN)MPC 算法。MATMPC 被设计为在提供最先进的性能的同时使原型设计变得容易,即使在有限的编程知识下也能实现。这通过直接在 MATLAB API for C 中编写每个模块来实现。因此,MATMPC 模块可以编译为 MEX 函数,其性能可与纯 C/C++ 求解器相媲美。MATMPC 已成功应用于包括 WINDOWS、LINUX 和 OS X 在内的操作系统。所选示例展示了 MATMPC 的有效性。
英文摘要:
In this paper we introduce MATMPC, an open source software built in MATLAB for nonlinear model predictive control (NMPC). It is designed to facilitate modelling, controller design and simulation for a wide class of NMPC applications. MATMPC has a number of algorithmic modules, including automatic differentiation, direct multiple shooting, condensing, linear quadratic program (QP) solver and globalization. It also supports a unique Curvature-like Measure of Nonlinearity (CMoN) MPC algorithm. MATMPC has been designed to provide state-of-the-art performance while making the prototyping easy, also with limited programming knowledge. This is achieved by writing each module directly in MATLAB API for C. As a result, MATMPC modules can be compiled into MEX functions with performance comparable to plain C/C++ solvers. MATMPC has been successfully used in operating systems including WINDOWS, LINUX AND OS X. Selected examples are shown to highlight the effectiveness of MATMPC.