Model Predictive Control by Hovorka et al. (2004)

This user interface is intended to illustrate how model predictive control (MPC) works.

Source code

https://github.com/hpeuscher/loopinsight1/blob/master/src/core/controllers/MPC_Hovorka2004.ts

References

[1] Hovorka, R. et al.
“Nonlinear model predictive control of glucose concentration in subjects with type 1 diabetes”
Physiological measurement, Volume 25, Number 4, 2004
https://doi.org/10.1088/0967-3334/25/4/010

[2] Hauser, L.; Jørgensen, J.B.; Peuscher, H.
“An Open-Source Browser-Based Nonlinear Model Predictive Controller for Type 1 Diabetes”
IFAC-PapersOnLine, 59(2), 143-148.
https://doi.org/10.1016/j.ifacol.2025.06.025