About

Log in?

DTU users get better search results including licensed content and discounts on order fees.

Anyone can log in and get personalized features such as favorites, tags and feeds.

Log in as DTU user Log in as non-DTU user No thanks

DTU Findit

Conference paper

C code generation applied to nonlinear model predictive control for an artificial pancreas

In Proceedings of the 2017 21st International Conference on Process Control — 2017, pp. 327-332
From

Department of Applied Mathematics and Computer Science, Technical University of Denmark1

Scientific Computing, Department of Applied Mathematics and Computer Science, Technical University of Denmark2

This paper presents a method to generate C code from MATLAB code applied to a nonlinear model predictive control (NMPC) algorithm. The C code generation uses the MATLAB Coder Toolbox. It can drastically reduce the time required for development compared to a manual porting of code from MATLAB to C, while ensuring a reliable and fairly optimized code.

We present an application of code generation to the numerical solution of nonlinear optimal control problems (OCP). The OCP uses a sequential quadratic programming algorithm with multiple shooting and sensitivity computation. We consider the problem of glucose regulation for people with type 1 diabetes as a case study.

The average computation time when using generated C code is 0.21 s (MATLAB: 1.5 s), and the maximum computation time when using generated C code is 0.97 s (MATLAB: 5.7 s). Compared to the MATLAB implementation, generated C code can run in average more than 7 times faster.

Language: English
Publisher: IEEE
Year: 2017
Pages: 327-332
Proceedings: 21st International Conference on Process Control
ISBN: 1538640112 , 1538640120 , 9781538640111 and 9781538640128
Types: Conference paper
DOI: 10.1109/PC.2017.7976235
ORCIDs: Boiroux, Dimitri and Jørgensen, John Bagterp

DTU users get better search results including licensed content and discounts on order fees.

Log in as DTU user

Access

Analysis