MATLAB provides tools for automatically choosing optimal PID gains which makes the trial and error process described ...
ctms.engin.umich.edu