Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Ant Colony Optimization meta heuristic algorithm visualization + solving Travel Sales man problem.

License

Notifications You must be signed in to change notification settings

kariyum/ant_colony_optimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solving salesman problem using Ant colony optimization (ACO) metaheuristic

This is a simulation of ACO algorithm. The visualization is intented to demonstrate how ACO works and how to solve a particuler problem, Travelling salesman problem in this case.

Travelling salesman problem TSP description

Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the origin city?

It is a well known problem taking part in NP-hard category in combinatorial optimization, important in theoretical computer science and operations research.

This work

This is my way of implementing ACO algorithm and drawing its steps on a HTML canvas using JAVASCRIPT.

This project will guide you through understanding the algorithm

And also offering the possibility to run it with your own values

TODO

  • Compute the number of distinct paths found yet to calculate the exploration of the algorithm of the search space.
  • Plot more diversed graphs for a thorough analysis of the simulation.
  • Make use of parallel programming for a faster runtime.