|
Algorithm 1: MOWOA
|
| 1: Initialize the whale’s population and set it as Ppopulation |
| 2: Hpopulation ← [], set size of Hpopulation as capacity // Hpopulation represents the external archives |
| 3: While t < maximum number of iterations do
|
| 4: Normalize the boundary values when search agents are out of the preset bound value |
| 5:
|
| 6: For each search agent do
|
| 7:
|
| 8:
|
| 9: Update the position of the current search agent by using (10) |
| 10:
|
| 11: Select a random search agent (Xrand) |
| 12: Update the position of the current search agent by using (13) |
| 13: Else if w ≥ 0.5 then
|
| 14: Update the position of the current search by using (11) |
| 15: End if
|
| 16: End for
|
| 17: t = t + 1 |
| 18: End while
|
| 19: Return Hpopulation
|