|
Algorithm 7 FWA main steps |
: , a, b, m, , , T
randomically sites for fireworks detonation;
t: = 1
while () and (solution not yet found) do
the fireworks in the selected locations with sparks each
for i: = do
if then
else if
else
end if
location of sparks using the 5 steps:
a spark location
randomically z dimensions of
displacement
for each dimension do
if or then
%
end if
end for
end for
for k: = do
randomically firework .
one spark using the 5 steps:
a spark location
randomically z dimensions of
Gaussian explosion coefficient g
for each diemnsion do
if or then
end if
end for
end for
the best site and keep for the next iteration
randomically locations for 2 spark types
Current fireworks;
t: = t + 1
end while
best solution
|