Ant System: TSP algorithm
set NC:= 0 {number of cycles}
For every edge (i,j) set an initial value Tij(t) for trail intensity and d Tij = 0. Place m ants on the n nodes.
2. Set s:= 1 { tabu list index)
Place starting town of the kth ant in tabuk(s).
3. Repeat until tabu list full
Choose the town j to move to with probability pijk (t)
Move the kth ant to the town j.
Insert town j in tabuk(s).
Compute the length Lk of the tour described by tabuk(s). Update the shortest tour found.
5. For every edge (i,j), compute
Tij(t+n) = e Tij(t) + ë Tij
For all edges(i,j), set ë Tij=0
empty tabu lists, go to 2
print shortest tour; stop