|
Algorithm 2: Pseudocode of GAO |
| Start GAO. |
| 1. |
Input problem information: variables, objective function, and constraints. |
| 2. |
Set GAO 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: Attack on termite mounds (exploration phase) |
| 8. |
|
|
Determine the termite mounds set for the ith GAO member using Equation (4).
|
| 9. |
|
|
Select the termite mounds for the ith GAO member at random. |
| 10. |
|
|
Calculate new position of ith GAO member using Equation (5).
|
| 11. |
|
|
Update ith GAO member using Equation (6).
|
| 12. |
|
Phase 2: Digging in termite mounds (exploitation phase) |
| 13. |
|
|
Calculate new position of ith GAO member using Equation (7).
|
| 14. |
|
|
Update ith GAO 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 GAO. |
| End GAO. |