| 1. Start |
| 2. timeLimit = 1000 ms |
| 3. solutionNumber = 10 |
| 4. bestGA = GA(timeLimit) |
| 5. bestACO = ACO(timeLimit) |
| 6. Xrb = [ ] |
| 7. bestSolution = NEGATIVE INFINITY |
| 8. If (bestGA < bestACO) |
| 9. For (i in solutionNumber) |
| 10. Xrb.add(GA) |
| 11. For(i = 0 to solutionNumber) |
| 12. addPheromone(Xrb[i]) |
| 13. solution = ACO( ) |
| 14. If (solution < bestSolution) |
| 15. bestSolution = solution |
| 16. Else |
| 17. For (i in solutionNumber) |
| 18. Xrb.add(KKO) |
| 19. For(i = 0 to solutionNumber) |
| 20. addChromosome(Xrb[i]) |
| 21. solution = GA( ) |
| 22. If (solution < bestSolution) |
| 23. bestSolution = solution |
| 24. print(bestSolution) |
| 25. End |
| 1. |
| 2. timeLimit = 1000 ms |
| 3. solutionNumber = 10 |
| 4. bestGA = GA(timeLimit) |
| 5. bestACO = ACO(timeLimit) |
| 6. Xrb = [ ] |
| 7. bestSolution = NEGATIVE INFINITY |
| 8. |
| 9. |
| 10. Xrb.add(GA) |
| 11. |
| 12. addPheromone(Xrb[i]) |
| 13. solution = ACO( ) |
| 14. |
| 15. bestSolution = solution |
| 16. |
| 17. |
| 18. Xrb.add(KKO) |
| 19. |
| 20. addChromosome(Xrb[i]) |
| 21. solution = GA( ) |
| 22. |
| 23. bestSolution = solution |
| 24. print(bestSolution) |
| 25. |
Sharing content requires targeting cookies to be enabled. Please update your cookie preferences to use this feature.