You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
A Jupyter Notebook implementation of the Traveling Salesman Problem (TSP) solver using Gurobi Optimizer, featuring both direct and iterative subtour elimination approaches.
Notifications You must be signed in to change notification settings
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go to fileThis repository contains a Jupyter Notebook that implements solutions to the Traveling Salesman Problem (TSP) using the Gurobi Optimizer. The notebook explores two approaches to solve the TSP, ensuring a comprehensive understanding of its solutions.
The TSP instances are provided in a text file named TSP_instance.txt . The file format is a square matrix where each row represents a city, and each column within that row represents the distance to every other city. Distances are separated by spaces or commas, and each row is on a new line.
Follow the Gurobi Documentation for installation instructions and license setup.
git clone https://github.com/your_username/Traveling-Salesman-Gurobi.git cd Traveling-Salesman-Gurobi
pip install -r requirements.txt
Launch Jupyter and open the TSP_Solver_Gurobi.ipynb notebook. Follow the instructions within the notebook to run the TSP solver.
Contributions are welcome. Please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
A Jupyter Notebook implementation of the Traveling Salesman Problem (TSP) solver using Gurobi Optimizer, featuring both direct and iterative subtour elimination approaches.