The integration of nonconventional energy sources such as solar, wind, and fuel cells into electrical power networks introduces significant challenges in maintaining frequency stability and consistent tie-line power flows. These fluctuations can adversely affect the quality and reliability of power supplied to consumers. This paper addresses this issue by proposing a Proportional–Integral–Derivative (PID) controller optimized through a hybrid Particle Swarm Optimization–Artificial Hummingbird Algorithm (PSO-AHA) approach. The PID controller is tuned using the Integral Time Absolute Error (ITAE) as a fitness function to enhance control performance. The PSO-AHA-PID controller’s effectiveness is evaluated in two networks: a two-area thermal tie-line interconnected power system (IPS) and a one-area multi-source power network incorporating thermal, solar, wind, and fuel cell sources. Comparative analyses under various operational conditions, including parameter variations and load changes, demonstrate the superior performance of the PSO-AHA-PID controller over the conventional PSO-PID controller. Statistical results indicate that in the one-area multi-source network, the PSO-AHA-PID controller achieves a 76.6% reduction in overshoot, an 88.9% reduction in undershoot, and a 97.5% reduction in settling time compared to the PSO-PID controller. In the dual-area system, the PSO-AHA-PID controller reduces the overshoot by 75.2%, reduces the undershoot by 85.7%, and improves the fall time by 71.6%. These improvements provide a robust and reliable solution for enhancing the stability of interconnected power systems in the presence of diverse and variable energy sources.