C Code Generation Applied to Nonlinear Model Predictive Control for an Artificial Pancreas

被引:0
|
作者
Boiroux, Dimitri [1 ,2 ]
Jorgensen, John Bagterp [1 ]
机构
[1] Tech Univ Denmark, Dept Appl Math & Comp Sci, DK-2800 Lyngby, Denmark
[2] Danish Diabet Acad, DK-5000 Odense, Denmark
关键词
OPTIMIZATION; OIL;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页码:327 / 332
页数:6
相关论文
共 50 条
  • [31] Nonlinear Model Predictive Control applied to Concentrated Solar Power Plants
    Dettmer, Ramon Jesuino
    Mendes, Paulo Renato da Costa
    Normey-Rico, Julio Elias
    [J]. IFAC PAPERSONLINE, 2020, 53 (02): : 12745 - 12750
  • [32] Model-based predictive control applied to a distributed generation unit
    Munoz, Pablo
    Mantz, Ricardo
    Gonzalez, Segio
    [J]. 2018 ARGENTINE CONFERENCE ON AUTOMATIC CONTROL (AADECA), 2018,
  • [33] Evaluation of model complexity in model predictive control within an exercise-enabled artificial pancreas
    Resalat, Navid
    El Youssef, Joseph
    Reddy, Ravi
    Jacobs, Peter G.
    [J]. IFAC PAPERSONLINE, 2017, 50 (01): : 7756 - 7761
  • [34] Plasma Insulin Cognizant Predictive Control for Artificial Pancreas
    Rashid, Mudassir
    Hajizadeh, Iman
    Cinar, Ali
    [J]. 2018 ANNUAL AMERICAN CONTROL CONFERENCE (ACC), 2018, : 3589 - 3594
  • [35] Nonlinear predictive control applied to spacecraft attitude control
    Wen, JT
    Seereeram, S
    Bayard, DS
    [J]. PROCEEDINGS OF THE 1997 AMERICAN CONTROL CONFERENCE, VOLS 1-6, 1997, : 1899 - 1903
  • [36] Considering Plasma Insulin Concentrations in Adaptive Model Predictive Control for Artificial Pancreas Systems
    Hajizadeh, Iman
    Rashid, Mudassir
    Cinar, Ali
    [J]. 2018 40TH ANNUAL INTERNATIONAL CONFERENCE OF THE IEEE ENGINEERING IN MEDICINE AND BIOLOGY SOCIETY (EMBC), 2018, : 4452 - 4455
  • [37] Incorporating Prior Information in Adaptive Model Predictive Control for Multivariable Artificial Pancreas Systems
    Sun, Xiaoyu
    Rashid, Mudassir
    Hobbs, Nicole
    Brandt, Rachel
    Askari, Mohammad Reza
    Cinar, Ali
    [J]. JOURNAL OF DIABETES SCIENCE AND TECHNOLOGY, 2022, 16 (01): : 19 - 28
  • [38] Plasma-insulin-cognizant adaptive model predictive control for artificial pancreas systems
    Hajizadeh, Iman
    Rashid, Mudassir
    Cinar, Ali
    [J]. JOURNAL OF PROCESS CONTROL, 2019, 77 : 97 - 113
  • [39] An Effort towards Offset-free Model Predictive Control of Artificial Pancreas Systems
    Wu, Wenjing
    Cai, Deheng
    Liu, Wei
    Ji, Linong
    Shi, Dawei
    [J]. IFAC PAPERSONLINE, 2023, 56 (02): : 11515 - 11520
  • [40] Automatic Code Generation of MIMO Model Predictive Control Algorithms using Transcompiler
    Chaber, Patryk
    Lawrynczuk, Maciej
    [J]. TRENDS IN ADVANCED INTELLIGENT CONTROL, OPTIMIZATION AND AUTOMATION, 2017, 577 : 315 - 324