Skip to main content
. 2021 Apr 8;21(8):2628. doi: 10.3390/s21082628
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:  
(Hpopulation, Pt) = ND-C_sort(Hpopulation, Ppopulation, capacity)
6:  For each search agent do
7:    
Update a, A, C, l and w
8:    
If w<0.5 and A1 then
9:      Update the position of the current search agent by using (10)
10:    
Else if w<0.5 and A>1 then
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