PID controller tuning for insulin regulation system
Show older comments
Hello there,
I am working on a project related to BioSystems, I have the attached model for the system, I am wondering what is the best way to tune the PID controllers in order to get the desired glucose level.
How should I select the P I D to get the best results.
I have attacehd the model in earlier version of Matlab aswell 2015b.
Thanks.
5 Comments
Mathieu NOE
on 8 Jan 2021
Hi
pls share also the script to initiaze the data inside the simulink file
it the simulink model up to date - it is a bit different from the screen shot (I saw the display of blood glucose with the two limits lines are not present)
tx
Abdulrahman Odhah
on 8 Jan 2021
Edited: Abdulrahman Odhah
on 8 Jan 2021
Mathieu NOE
on 8 Jan 2021
ok
got this
but I stll miss the script that initialize all constants in your simulink file
Mathieu NOE
on 8 Jan 2021
okso I tried to tune the PID
Integral term is not needed, mostly P and a lot of D (10x more D than P) to keep things stable;
but it seems the "process" after the PID is unable to apply fast enough the corrections so that the bumps are still there
I went up to P = -100 and D = -800 , and even after removing the saturation block, still no visible effect on the error.
Abdulrahman Odhah
on 14 Jan 2021
Edited: Abdulrahman Odhah
on 14 Jan 2021
Answers (1)
Abhiroop Rastogi
on 15 Feb 2022
0 votes
Hi Abdulrahman,
I am not sure if you have gotten your answer to this question yet, but just in case it did not happen, I want to mention that there are PID tuner tools available in Simulink that can be utilized for the purpose you are looking for.
You can follow the section on PID Controller tuning in Simulink which will let you adjust the type of responce you need in terms of "Response Time" or "Transient Behaviour" also.
Categories
Find more on PID Controller Tuning in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!