In this paper, an optimization method based on the foraging behavior of a colony of honey bees in nature was proposed. An optimized model for Proportional Integral Derivative (PID)speed controller of 3-phase IM drives was introduced to adapt the constant gains of this classical controller. To enhance robustness of this controller, an online algorithm for self-tuning of PID controller-parameters...