|
Algorithm 1 Pseudocode of ATOAcs |
-
1:
Initialize X, N, t, T, min, max, , , and .
-
2:
while t < T do
-
3:
Calculate the , and .
-
4:
for do
-
5:
for do
-
6:
Generate
-
7:
if ≤ MOA then
-
8:
Generate .
-
9:
if ≤ 0.5 then
-
10:
Compute the using the first case in (17).
-
11:
else
-
12:
Compute the using the second case in (17).
-
13:
end if
-
14:
else
-
15:
Generate .
-
16:
if ≤ 0.5 then
-
17:
Compute the using the first case in (18).
-
18:
else
-
19:
Compute the using the second case in (18).
-
20:
end if
-
21:
end if
-
22:
end for
-
23:
end for
-
24:
-
25:
end while
-
26:
return best(xj)
|