|
Algorithm 1. Pseudocode of POA. |
| Start POA. |
| 1: |
Input problem information: variables, objective function, and constraints. |
| 2: |
Set POA population size (N) and iterations (T). |
| 3: |
Generate the initial population matrix at random using Equation (2). . |
| 4: |
Evaluate the objective function. |
| 5: |
|
For to T
|
| 6: |
|
For to
|
| 7: |
|
Phase 1: Predator attack towards pufferfish (exploration phase). |
| 8: |
|
|
Determine the candidate pufferfish set for the ith POA member using Equation (4). . |
| 9: |
|
|
Select the target pufferfish for the ith POA member at random. |
| 10: |
|
|
Calculate new position of ith POA member using Equation (5). . |
| 11: |
|
|
Update ith POA member using Equation (6).
|
| 12: |
|
Phase 2: Defense mechanism of pufferfish against predators (exploitation phase). |
| 13: |
|
|
Calculate new position of ith POA member using Equation (7). . |
| 14: |
|
|
Update ith POA member using Equation (8).
|
| 15: |
|
end |
| 16: |
|
|
Save the best candidate solution so far. |
| 17: |
|
end |
| 18: |
Output the best quasi-optimal solution obtained with the POA. |
| End POA. |