Algorithm 1 GWO pseudo-code |
1: Initialize the grey wolf population ; 2: Initialize , , and ; 3: Calculate the fitness value for each grey wolf; 4: the initial position of the leader wolf; 5: the initial position of the second-best wolf; 6: the initial position of the third-best wolf; 7: Calculate the initial position of prey () according to Equation (5); 8: While (t Max number of iterations) 9: For each grey wolf 10: Update the position of current grey wolf by Equation (1); 11: end For 12: Update , , and ; 13: Calculate the fitness value for each grey wolf; 14: Update , , and ; 15: Calculate the position of prey () according to Equation (5); 16: ; 17: End while 18: return . |