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

or Create an Account

Close subscription notice
Close access options