Skip to main content
. 2024 Sep 4;24(17):5749. doi: 10.3390/s24175749

Figure 2.

Figure 2

Position updating algorithm for the wolves in the grey wolf optimizer. Three leader/subleader wolves, α, β, and δ, surround the prey, and the position of the prey is inferred from the positions of these three leader wolves, assuming that they surround it. Vectors A and C are coefficient vectors and are calculated for each coordinate. The other wolves in the pack, ω, locate the leader wolves’ positions, which are initially adjusted with a coefficient C and then gradually adjusted in each loop to better approximate the leader wolves’ positions. A random coefficient D is then applied to their distance, allowing them to approach the leader wolves within a range of −1 to +1. As a result, wolves that are closer to the prey than the leader wolves may replace them as the new leaders, enabling the pack to surround the prey more closely. The algorithm specifies three leader wolves and divides the obtained average position by the number of leaders. If the positions of α, β, and δ are 6, 8, and 3, respectively, then the position of the prey would be the midpoint, calculated as (6 + 8 + 3)/3 = 5.7, and the integer 5 becomes the updated position for the prey. The new position of the ω1 wolf is adjusted according to the leaders’ positions, taking into account its current position.