The frequency of the system is related to the turbine speed. The rotor speed of the synchronous generators is equal to the speed of the turbine and its control is mainly done by the governor's speed control system. The purpose of this study was to take a positive step towards controlling the speed of the turbine by controlling the governor's input signal. For this purpose, a PID controller with performance capability was designed in both transient and lasting conditions of the system. Controller equations along with linear state equations of the power plant were located in the optimization process. In this way, proper and optimal coefficients were determined according to the objective functions. Optimization was done by the particle pool algorithm. System performance analysis and comparison of outputs were done by the simulation method. Simulation results showed the optimal efficiency of the proposed method.