This implementation of the Ant System (a variation of Ant Colony Optimization) [1] aims to solve the Traveling Salesman Problem. The problem is to find the shortest tour distance given a list of cities represented by its x and y coordinates where each city is visited only once. This was tested using the berlin52
dataset found [here] (http://elib.zib.de/pub/mp-testdata/tsp/tsplib/tsp/berlin52.tsp).
- ant_colony.m
This is the main file for the algorithm implementation. This calls other functions (written in separate files) in order to achieve the optimization objective. - ant_tour_construction.m
For each ant in the colony, we make them traverse the whole map (tour
). They first start at a randomly generated starting area (start_places), and jump to each node. The jumps are controlled by the attractiveness of the node raised to beta, and the pheromone effect raised to alpha. - compute_cost.m
For each ant