Skip to main content
. 2023 Jul 5;23(13):6176. doi: 10.3390/s23136176
Algorithm 1: Improved binary grey wolf optimization algorithm.
Input: n Number of grey wolves in the pack,
   Iter Number of iterations for optimization.
Output: xα Optimal grey wolf binary position,
      fxα  Best fitness value.
1: Begin
2: Initialize the population according to Equation (13).
3: Calculate the fitness value of the group and find xα,xβ and xδ.
4: While (t < Iter):
5:  For each wolfi population:
6:  Update wolfi position to a binary position according to Equations (9) and (17)
7:  end for
8:  Update a according to Equations (14)–(16).
9:  Update A and C according to Equations (3) and (4).
10: Evaluate the positions of individual wolves according to Equation (11).
11: Update xα, xβ and xδ according to Equations (7) and (8)
12: t = t + 1
13: end while
14: return xα
15: End