|
Algorithm 2: PCCGWO pseudo-code. |
| Master process |
| 1. |
Randomly initialize the grey wolf population. |
| 2. |
Decompose the population into sub-swarms denoted as . |
| 3. |
Initialize the buffer using randomly selected individuals from each sub-swarm. |
| 4. |
Send each sub-swarm to a slave. |
| 5. |
Cycle = 0 |
| 6. |
While termination criteria = false do
|
| 7. |
Parallel for slaves |
| 8. |
Send to slaves the buffer vector defined in Equation (14). |
| 9. |
Waiting for slaves. |
| 10. |
Receive all representatives of sub-swarms from slaves. |
| 11. |
End Parallel for
|
| 12. |
Update the buffer vector . |
| 13. |
Cycle = Cycle + 1 |
| 14. |
End While
|
| Slave [j] process |
| 15. |
While true do
|
| 16. |
Receive the buffer vector from Master process. |
| 17. |
Execute GWO on sub-swarm . |
| 18. |
Send the representative of sub-swarm to Master process. |
| 19. |
End While
|