The objective of this project is to solve the problem of the traveling salesman. It is a
mathematical problem which consists, given a set of cities separated by given distances,
in finding the shortest path which connects all the cities.
We have implemented several methods to try to solve this problem :
an exact method
represented by dynamic programming as well as another metaheuristic method (GVNS).
The given instruction provides a user interface for selecting an approach from the sidebar to perform a task related to the Traveling Salesman Problem (TSP). To start with, the user needs to upload an Excel or CSV file. The provided dataset named "TSP Maroc Data" is recommended to test the approach.
Next, the user is required to enter the name of the sheet in the uploaded file and the name of the first city to initiate the computation. The approach then explores the minimum distance between different cities and generates the minimum path that the salesman should take to visit all the cities and return to the starting point.
The user can also generate a visualization graph to view the minimum path and the distance between cities. Once the visualization is generated, the user can download the graph for future reference. This approach can be helpful for businesses and organizations that require optimized route planning for efficient transportation and logistics.
- Pseudocode de TSP 💻
You can download the graph with the button below :)
pip install streamlit
pip install pandas
pip install streamlit_option_menu
pip install matplotlib
pip install numpy
pip install streamlit-lottie
Streamlit need to run for development mode.
streamlit run App.py