Coder Social home page Coder Social logo

pigna90 / pctsptw Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 6.0 1.21 MB

Prize-Collecting Traveling Salesman Problem with Time Windows

License: MIT License

Python 100.00%
model salesman-problem time-windows optimization-algorithms prize-collecting pulp python gurobi cbc pandas

pctsptw's Introduction

Prize-Collecting Traveling Salesman Problem with Time Windows (PCTSPTW)

This project has been made for educational purposes during the lecture of Model-Driven Decision Methods a.a 2015/16 (University Of Pisa). The goal is to implement a Linear Programming Model with PuLP and solve it with at least two different solvers: CBC and GUROBI (Academic License) (feel free to use whatever you want/need!). At last optimize one of these in order to improve time performance.

I wrote a simple report (in Italian) as a description of the work I've done. If you need it please contact me.

Requirements

  • Python 3.x
  • PuLP - as Python module
  • Pandas - as Python module
  • Numpy - as Python module
  • CBC
  • GUROBI

Files and directories description

A brief description of project contents:

  • module. py - implementation of PCTSPTW problem and solver call
  • instance_utility. py - instances generators and other utility functions
  • data/ - contains all instances
  • src/ - source files

Examples usage

Solve one instance using CBC with max_time=600s:

$ python3 src/model.py instance.dat CBC 600

Solve a set of instances using GUROBI with max_time=10s:

$ python3 src/model.py /path/to/instances_folder/ GUROBI 10

pctsptw's People

Contributors

brank53 avatar pigna90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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