The program uses fminsearch to obtain the transfer function of a tank’s height. This tank is then controlled using a real PID controller. Controller’s tuning (determination of optimum controller’s parameters: gain and time constants) is achieved using the genetic algorithm toolbox. Finally, result are plotted using both matlab commands as well as simulink.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.