This document presents a study on optimizing a PID controller for marine engine rotational speed control, utilizing a hybrid IWOPSO algorithm to enhance performance against environmental and internal disturbances. The authors compare the effectiveness of this algorithm with traditional methods by simulating the system in MATLAB and evaluating the step response characteristics. The findings indicate that the hybrid approach yields superior results in maintaining engine speed stability and efficiency.