After creating a mathematical model of a nonlinear system through simulink, I want to use a PID controller to realize a better performance. As the transfer function of the system is too complicated to express, traditional PID tuing rules are not suitable here, I decide to use the Extremum Seeking Algorithm to tune the PID parameters. However, I have difficulties in how to achive this algorithm though matlab.
Anyone can suggest or provide me with an actual example on how to fulfill it?