An optimization app for the Traveling Salesman Problem.
To run locally, please install Python libraries included in the file requirements.txt
pip install -r requirements.txt
And include separately google ortools
lib, which has conflicting dependencies with streamlit
.
pip install --no-deps ortools==9.7.2996
Then, exexcute streamlit via command line:
streamlit run app.py
To build an image locally, make sure you have docker installed in your computer and run the following command:
docker build -t tsp_app:latest .
You can replace tsp_app
by any repository name you would like and latest
by any version.
Then you can run your app by running
docker run -p 8501:8501 tsp_app:latest
The heuristic strategies for the TSP provided in google ortools
are unlikely to prove optimality, but can provide good quality solutions for large instances in a short time. They are based on a greedy constructive phase + local search.
The model adopted considers a directed graph
You can reach out to me at bruscalia12@gmail.com