Optimization of Controller Coefficients by Using Metaheuristic Algorithms