Research Article

Improving the Performance of Whale Optimization Algorithm through OpenCL-Based FPGA Accelerator

Algorithm 1

1Generate initial population
2Evaluate the fitness of each search agent
3 = the best search agent
4whiledo
5for each search agent do
6  Update and
7  ifthen
8   ifthen
9    Update the position of the current search agent by equation (2)
10   else ifthen
11    Select a random search agent ()
12    Update the position of the current search agent by equation (9)
13   end if
14  else ifthen
15   Update the position of the current search agent by equation (6)
16  end if
17end for
18 Amend search agents which go beyond the search space
19 Calculate the fitness of each search agent
20 Replace with a better solution (if found)
21
22end while
23return