Algorithm 3 BSO-II |
-
1:
Initialization: Randomly generate an individual based on uniform distribution;
-
2:
while stopping criterion is not satisfied do
-
3:
Randomly generate a value from 0 to 1 based on uniform distribution;
-
4:
if is smaller than a pre-determined probability then
-
5:
replace with a randomly generated individual based on uniform distribution;
-
6:
end if
-
7:
if then
-
8:
, where is a mutation operator;
-
9:
else
-
10:
;
-
11:
end if
-
12:
if has better fitness than then
-
13:
replace with
-
14:
end if
-
15:
end while
-
Output:
|