Research Article
Improving the Performance of Whale Optimization Algorithm through OpenCL-Based FPGA Accelerator
| 1 | Generate initial population | | 2 | Evaluate the fitness of each search agent | | 3 | = the best search agent | | 4 | whiledo | | 5 | for 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 | | 17 | end 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 | | | 22 | end while | | 23 | return |
|