GithubHelp home page GithubHelp logo

parsakhavarinejad / tsp_optimization Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 236 KB

This repository contains a Python notebook implementing a class for solving multiple Traveling Salesman Problems (TSP) using Pyomo and the CPLEX solver. The class includes a solution for the simple TSP scenario when there is only one driver.

Jupyter Notebook 99.94% Python 0.06%
cplex integer-programming mtsp multiple-traveling-salesman operations-research optimization pyomo python travelling-salesman-problem tsp multi-tra

tsp_optimization's Introduction

TSP_optimization

Overview

This repository provides a Python notebook with a class for solving Traveling Salesman Problems (TSP) using Pyomo and the CPLEX solver. The implemented class handles multiple TSP instances, and in the case where there is only one driver, it efficiently solves a simple TSP problem.

Requirements

  • Pyomo
  • IBM CPLEX solver
  • Python 3.x

Usage

  1. Install the required dependencies.
    pip install pyomo
    # Ensure you have IBM CPLEX installed on your laptop
  2. Open the notebook and run the cells to see the TSP problem-solving in action.
  3. Customize the class and parameters based on your specific TSP scenarios.

Feel free to contribute, report issues, or suggest improvements!

tsp_optimization's People

Contributors

parsakhavarinejad avatar e-mehryar avatar

Stargazers

Bochen SHi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.