Research Article
A Modified Whale Optimization Algorithm and Its Application in Seismic Inversion Problem
| | Input: Population size N | | | The halting criterion | | | Output: The best solution | | | Generate the initial population Xi (i = 1, 2, …, N) | | (1) | Calculate the fitness for each solution in the population | | (2) | Find the best solution with the best fitness | | (3) | while the halting criterion is not satisfied do | | (4) | Update a | | (5) | for i = 1 to N do | | (6) | Update A, C, l and p | | (7) | for j = 1 to m do | | (8) | ifthen | | (9) | if (|A| < 1) then | | (10) | | | (11) | | | (12) | else if (|A| ≥ 1) then | | (13) | Select a random solution Xrand | | (14) | | | (15) | | | (16) | end if | | (17) | ifthen | | (18) | | | (19) | | | (20) | end if | | (21) | end for | | (22) | Evaluate the fitness for Xi | | (23) | end for | | (24) | Find the best solution | | (25) | end while |
|