Skip to content

A quick implementation of the ACS solution to the travelling salesman problem with animation

Notifications You must be signed in to change notification settings

Nicolivain/ant-colony-system-tsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ant Colony System for TSP

A quick implementation of the ACS solution to the travelling salesman problem with animation.
Agents will pick the path with the best utility depending on a combination of distance and amount of pheromones. In a RL fashion, the colony will converge to the optimal solution. Stability is however a bit difficult to reach and is highly depend on the parameters of the simulation, future work could try to improve this.

Example

In this particular example, the ACS algorithm struck a 20% improvement over the standard greedy algorithm. anim

References

[1] Ant colonies for the travelling salesman problem, Marco Dorigo, Luca Maria Gambardella
[2] C++ Ants Simulation 1, First approach

About

A quick implementation of the ACS solution to the travelling salesman problem with animation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages