An Improved Grey Wolf Optimizer Based on Attention Mechanism for Solving Engineering Design Problems
Yuming Zhang, Yuelin Gao, Liming Huang, Xiaofeng Xie · Symmetry · 2024
The grey wolf optimization (GWO) algorithm is a simple and effective meta-heuristic algorithm that mimics the leadership of grey wolves and the social behavior of wolves in nature. However, the updating of GWO population positions only relies on the guidance of α-wolf, β-wolf, and δ-wolf, and individuals are updated with equal weights. This results in the GWO search process being unable to utilize the knowledge of superior wolves better. Therefore, in this study, we propose for the first time an attention mechanism-based GWO (AtGWO). Firstly, when each position is updated, the attention strategy can adaptively assign the weight of the corresponding leader wolf to improve the global exploration ability. Second, with the introduction of omega-wolves, each position update is not only guided by the three leader wolves but also learns from their current optimal values. Finally, a hyperbolic tangent nonlinear function is used to control the convergence factor to better balance exploration and exploitation. To validate its effectiveness, AtGWO is compared with the latest GWO variant with other popular algorithms on the CEC-2014 (dim 30, 50) and CEC-2017 (dim 30, 50, 100) benchmark function sets. The experimental results indicate that AtGWO outperforms the GWO-related variants almost all the time in terms of mean, variance, and best value, which indicates its superior ability and robustness to find optimal solutions. And it is also competitive when compared to other algorithms in multimodal functions. AtGWO outperforms the comparison algorithms in terms of the mean and best value in six real-world engineering optimization problems.