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 条
  • [21] Nonlinear Model Predictive Control Applied to an Autonomous Underwater Vehicle
    Saback, Rafael Meireles
    Scolari Conceicao, Andre Gustavo
    Maia Santos, Tito Luis
    Albiez, Jan
    Reis, Marco
    [J]. IEEE JOURNAL OF OCEANIC ENGINEERING, 2020, 45 (03) : 799 - 812
  • [22] Design of a Dual-Hormone Model Predictive Control for Artificial Pancreas with Exercise Model
    Resalat, Navid
    El Youssef, Joseph
    Reddy, Ravi
    Jacobs, Peter G.
    [J]. 2016 38TH ANNUAL INTERNATIONAL CONFERENCE OF THE IEEE ENGINEERING IN MEDICINE AND BIOLOGY SOCIETY (EMBC), 2016, : 2270 - 2273
  • [23] Simulation Studies Comparing Feedback Predictive Control to Model Predictive Control for Unmeasured Disturbances in the Artificial Pancreas Application
    Mei, Yong
    Huynh, Trinh
    Khor, Rachel
    Rollins, Derrick K., Sr.
    [J]. JOURNAL OF DYNAMIC SYSTEMS MEASUREMENT AND CONTROL-TRANSACTIONS OF THE ASME, 2019, 141 (09):
  • [24] Nonlinear Control and Model Predictive Control Applied to a Multi - Cell AFE Rectifier
    Espinosa, Eduardo
    Espinoza, Jose
    Rohten, Jaime
    Melin, Pedro
    Munoz, Javier
    Baier, Carlos
    [J]. 2015 IEEE ENERGY CONVERSION CONGRESS AND EXPOSITION (ECCE), 2015, : 210 - 216
  • [25] Development of a Model Predictive Controller for an Artificial Pancreas
    El Hachimi, M.
    Ballouk, A.
    Khelafa, I.
    Baghdad, A.
    [J]. PROCEEDINGS OF 2017 INTERNATIONAL CONFERENCE ON ELECTRICAL AND INFORMATION TECHNOLOGIES (ICEIT 2017), 2017,
  • [26] Accelerated model predictive controller for artificial pancreas
    El Hachimi, Mohamed
    Ballouk, Abdelhakim
    Khelafa, Ilyass
    Baghdad, Abdennaceur
    [J]. INTERNATIONAL JOURNAL OF MODELLING IDENTIFICATION AND CONTROL, 2018, 30 (03) : 229 - 238
  • [27] Model Predictive Control with Event-Triggered Communication for an Embedded Artificial Pancreas
    Chakrabarty, Ankush
    Zavitsanou, Stamatina
    Doyle, Francis J., III
    Dassau, Eyal
    [J]. 2017 IEEE CONFERENCE ON CONTROL TECHNOLOGY AND APPLICATIONS (CCTA 2017), 2017, : 536 - 541
  • [28] CONSTRAINED MODEL PREDICTIVE CONTROL FOR ARTIFICIAL PANCREAS: DESIGN BASED ON CLINICAL DATA
    Messori, M.
    Fornasiero, E.
    Toffanin, C.
    Di Palma, F.
    Cobelli, C.
    Magni, L.
    [J]. DIABETES TECHNOLOGY & THERAPEUTICS, 2014, 16 : A105 - A105
  • [29] Event-Triggered Model Predictive Control for Embedded Artificial Pancreas Systems
    Chakrabarty, Ankush
    Zavitsanou, Stamatina
    Doyle, Francis J., III
    Dassau, Eyal
    [J]. IEEE TRANSACTIONS ON BIOMEDICAL ENGINEERING, 2018, 65 (03) : 575 - 586
  • [30] Nonlinear Model Predictive Control applied to Transient Operation of a Gas Turbine
    Pires, Thiago S.
    Cruz, Manuel E.
    Colaco, Marcelo J.
    Alves, Marco A. C.
    [J]. JOURNAL OF SUSTAINABLE DEVELOPMENT OF ENERGY WATER AND ENVIRONMENT SYSTEMS-JSDEWES, 2018, 6 (04): : 770 - 783