|
Algorithm 1 Pseudocode of HHAOA technique. |
-
Input:
Random WMN routers positions and manually calculated FOPPI controller parameters.
-
Output:
Optimal WMN connection and FOPPI parameters
-
1:
Initialize the search agents positions (j = 1, 2, 3, ..., N)
-
2:
Check search space boundary and initiate the case
-
3:
while ( T) do
-
4:
Attain the initial solution
-
5:
for (All hawks ()) do
-
6:
Amend the position update
-
7:
Use (4) to update the E
-
8:
Phase: Exploration
-
9:
if & then
-
10:
if then
-
11:
Update the solution using Equation (1) condition 1
-
12:
else if
then
-
13:
Update the solution using Equation (1) condition 2
-
14:
end if
-
15:
else if & then
-
16:
Update the solution using Equation (1) condition 3
-
17:
end if
-
18:
Phase: Exploitation
-
19:
if < 1 then
-
20:
if ( 0.5 and r ≥ 0.5) then
-
21:
if then
-
22:
Solution update using Equation (5) condition 1
-
23:
else if
then
-
24:
Solution update using Equation (5) condition 2
-
25:
end if
-
26:
else if ( 0.5 and r < 0.5) then
-
27:
if or then
-
28:
Solution update using Equation (7) condition 1
-
29:
else if or
then
-
30:
Solution update using Equation (7) condition 2
-
31:
end if
-
32:
else if ( & r ≥ 0.5) then
-
33:
if then
-
34:
Solution update using Equation (8) condition 1
-
35:
else if
then
-
36:
Solution update using Equation (8) condition 2
-
37:
end if
-
38:
else if ( 0.5 & r < 0.5) then
-
39:
if or then
-
40:
Solution update using Equation (9) condition 1
-
41:
else if or
then
-
42:
Solution update using Equation (9) condition 2
-
43:
end if
-
44:
end if
-
45:
end if
-
46:
end for
-
47:
t = t + 1
-
48:
end while
-
49:
Return for optimal WMN connectivity with all the routers and optimal FOPPI controller parameters for real-time pressure process plant.
|