Skip to content

The traveling salesman problem (TSP) is a well-known problem in theoretical computer science and operations research. The standard version of the TSP is a hard problem and belongs to the NP-Hard class. In this project, I build an application to implement the TSP by the dynamic approach and the GVNS approach .

Notifications You must be signed in to change notification settings

BoutainaELYAZIJI/TSP_project

Repository files navigation

Web application for solving traveling salesman problems by dynamic programming and GVNS 🐧

Streamlit App

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).

Demo click on the link below : 💯

Description : 😎

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 💻

🌝 Dynammic Approach

🌚 Metaheuristic Approach (GVNS)

🎈 Graph succesfuly generated

You can download the graph with the button below :)

Mobile view 📳

Install ⬇️

pip install streamlit
pip install pandas 
pip install streamlit_option_menu
pip install matplotlib
pip install numpy
pip install streamlit-lottie

Run 🏃

Streamlit need to run for development mode.

streamlit run App.py

🔗 Links

portfolio linkedin

About

The traveling salesman problem (TSP) is a well-known problem in theoretical computer science and operations research. The standard version of the TSP is a hard problem and belongs to the NP-Hard class. In this project, I build an application to implement the TSP by the dynamic approach and the GVNS approach .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published