An open API service indexing awesome lists of open source software.

https://github.com/ncordon/tsp

Different approaches for the Travelling Salesman Problem
https://github.com/ncordon/tsp

Last synced: about 1 year ago
JSON representation

Different approaches for the Travelling Salesman Problem

Awesome Lists containing this project

README

          

# Travelling Salesman Problem

Comparison between two different approaches for solving the Travelling Salesman Problem implemented from scratch:

* Simulaed Annealing
* Tabu Search

# License
GNU licensed

# Usage

```python
tsp.py
```
or
```python
tsp.ipynb
```

The comparison has been made taking the same number of iterations for each metaheuristic. The documentation is available in `tsp.tex`, and `presentacion.tex` contains a presentation of results, both in Spanish. The selected operator for getting new solutions has been 2-opt of edges.

![Simulated Annealing on Berlin52](https://github.com/NCordon/tsp/blob/master/images/berlin52sa.png)
![Tabu Search on Berlin52](https://github.com/NCordon/tsp/blob/master/images/berlin52ts.png)