An implementation of an approximation to the solution of Traveling Salesman Problem using cross entropy approach on Python 3. This project was created in order to replicate the results presented in the following paper
This repository contains an .ipynb
in which you may find:
- A function (
read_atsp
) that returns anumpy
array that contains the costs of trips fromi
toj
cities given URL to one of the datasets from Zuse Institute Berlin. (The code has not been tested on other datasets). - A
Python
class
(CrossEntropyTSP
) that helps to optimize the costs of a traveling salesman. - An example of using both (with results).