|
Algorithm 1 Pseudocode of BFGO |
-
1:
Initialize the parameters of BFGO: N (number of search agents), T (maximum iteration), n (number of bamboo shoots) and K (number of bamboo whips)
-
2:
Initialize the positions of the search agents
-
3:
Calculate the fitness of each search agent
-
4:
The search agents are sorted in descending order of fitness and divided into K groups according to the uniform grouping in Figure 2
-
5:
Update , , and
-
6:
-
7:
whiledo
-
8:
for each bamboo whip do
-
9:
Update using Equation (1)
-
10:
Update the using Equations (2)–(6)
-
11:
Calculate
-
12:
end for
-
13:
Update , , and
-
14:
for each bamboo whip do
-
15:
Update using Equation (1)
-
16:
Update the using Equations (7)–(10)
-
17:
Calculate
-
18:
end for
-
19:
Update , , and
-
20:
-
21:
Repeat step 4
-
22:
end while
|