I tried using the optimPID function for a second-order system but I get the following error message: 'Error using fminusub (line 17)
Objective function is undefined at initial point. Fminunc cannot
Any help would be greatly appreciated.
Thanks for your submission. For anybody interested in this topic, we created a page with resources explaining how to do PID tuning in MATLAB and Simulink here:
We have tried this powerful tool at a University in Ecuador, where I come from. We would like to include the code applied for the Transfer Function of our Engineering Graduation Project, respecting all what says in the licensing file. But we also would like to know if there is more information behind the "optimPID" function development, so we can also include it as a reference.
Thank you very much!