In this M-file, the implementation of ACO Algorithm is given with the support of reference papers listed. You can easily use it as following command to see the pictures of result and the playing iterative course.
filename.tsp is the problem file of the Symmetrical or Asymmetrical TSP problem which you can download from the following site: http://elib.zib.de/pub/mp-testdata/tsp/tsplib/tsp/index.html
As there is several type of ACO algorithm, the basic one Ant System(AS) is given, which is original. For more problems or other ACO algorithms, you can contact me by the email email@example.com. plealse make me known if you want to use it commercially.
And many thanks for Doug Hull's advice!
wang h (2021). Solving Symmetrical and DisSymmetrical TSP base on Ant Colony Algorithm (https://www.mathworks.com/matlabcentral/fileexchange/14543-solving-symmetrical-and-dissymmetrical-tsp-base-on-ant-colony-algorithm), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Cluster Analysis > Nearest Neighbors >
- MATLAB > Mathematics > Graph and Network Algorithms > Shortest Path > Traveling Salesman (TSP) >
- Mathematics and Optimization > Optimization Toolbox > Linear Programming and Mixed-Integer Linear Programming > Solver-Based Linear Programming >
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!