Heating, Ventilating, and Air Conditioning (HVAC) systems often suffer from significant energy wastage due to their inability to adapt to real-time environmental changes, leading to high operational costs. Although Proportional-Integral-Derivative (PID) controllers are widely used for their simplicity and reliability, they struggle to handle the complex dynamics of modern environments, requiring advanced optimization to enhance efficiency. This study aims to optimize PID controllers by integrating the Queen Honey Bee Migration (QHBM) algorithm to improve HVAC performance, energy efficiency, and adaptability. The research method employs an experimental approach that compares the performance of conventional PID controllers with PID controllers optimized using the QHBM algorithm under dynamic environmental conditions. The results show that the PID-QHBM system significantly outperforms the conventional PID system, achieving a rise time of 0.2649 seconds and a settling time of 1.6874 seconds with an almost negligible steady-state error of 9.4991e-08. Although it experiences a slight overshoot of 16.3810%, the system stabilizes quickly and maintains the target temperature efficiently. In contrast, the conventional PID controller exhibits slower response characteristics, with a rise time of 1.3730 seconds, a settling time of 2.5144 seconds, and a larger steady-state error of 0.0361. This study demonstrates that integrating the QHBM algorithm into PID controllers provides a more effective solution for real-time temperature control, offering substantial improvements in energy efficiency and system performance. The findings contribute to advancing intelligent HVAC control systems that can better adapt to environmental variations while minimizing operational costs.
Copyrights © 2026