Designing PID controller using intelligent algorithms in MATLAB