|
Algorithm 2 Pseudocode of BBFGO |
-
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 the position under binary conditions of each search agent by Equations (11)–(21)
-
12:
Calculate
-
13:
end for
-
14:
Update , , and
-
15:
for each bamboo whip do
-
16:
Update using Equation (1)
-
17:
Update the using Equations (7)–(10)
-
18:
Calculate the position under binary conditions of each search agent by Equations (11)–(21)
-
19:
Calculate
-
20:
end for
-
21:
Update , , and
-
22:
-
23:
Repeat step 4
-
24:
end while
|