 The paper proposes a new method for controlling frequency deviations in standalone hybrid marine microgrids. It uses a combination of particle swarm optimization, gray wolf optimization, and hybrid particle swarm optimization algorithms to optimize the frequency response of the system. The proposed controller outperforms existing controllers in terms of rise time, fall time, slew rate, and overshoot. This shows that the proposed controller is more efficient and reliable than existing controllers. This article was authored by Sonnet Alahakun, Rajee Baran Roy, and Shanta J. Sinha Arachchilij.