A demo of an Ant System algorithm solving classical Traveling Salesman Problems.
To run, type:
The code should be pretty self-explanatory.
I use above command to run prgm.But didn't work gives error .
Hi, Jon may get the main program ?
where is the main program all the files its function file
Hi Zhang, I incorporated the change that you suggested. This was a bug.
Hi, Johannes, thanks for uploading the code. It seems that there is a bug in the program.
"curnode = startnode(m)" in "ant_system_tsp.m" should be "curnode = startnode(k)". Because an ant should be put on a randomly vertex each time.
Hi Chetak, I don't have a point set for Portugal. However, you could construct it yourself using, e.g., the data from
Thank you. Is it possible to get the Map of Portugal to try.
Bugfix suggested by ZHANG.