MATLAB: How to see the PID parameters when implementing Optimization app

genetic algorithm

Hi, I wrote the GA code for PID controller then, I use optimization app to run the Genetic Algorithm. But I can not see where are the PID parameters?

Best Answer

I'm not sure that I understand you. The PID parameters are your control variables, right? I mean, they are in the vector x that ga uses as the fitness function fun(x). So what do you want to see, the values changing as ga progresses? You can use 'gaplotbestindiv' as the PlotFcn option.
But maybe you mean something else. If so, please ask again.
Alan Weiss
MATLAB mathematical toolbox documentation