Coder Social home page Coder Social logo

branch-and-cut-for-a-darp's Introduction

Branch and Cut Algorithm for a Dial-a-Ride Problem

This is the implementation of the paper "A Branch-and-Cut Algorithm for the Dial-a-Ride Problem" from Jean-Francois Cordeau. The paper can be found here.

The algorithm is implemented using the CPLEX JAVA API.

The main part of the implementation is in located in model.java. This file contains all the constraints. The classes Truck.java contains the code for a vehicle and Node.java contains the code for a node in the graph.

The code is fully commented and works.

How to use

  1. Download the src/logic folder.
  2. Open Eclipse IDE and then open the project via 'File' -> 'Open Projects From File System' and select the downloaded folder.
  3. Add the cplex.jar to the referenced libraries. You need Cplex being installed on your PC. How you add cplex.jar to the project you can read in the official documentation of IBM on how to add cplex.jar to Eclipse IDE.
  4. Simply run model.java via 'right click on the file' and 'Run As' -> '1 Java Application'. The model can be solved with the default settings.

branch-and-cut-for-a-darp's People

Contributors

andyyaor avatar

Stargazers

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

Watchers

 avatar

branch-and-cut-for-a-darp's Issues

File not found

I can't find the Benchmark instance file path : "C:/Users/thorb/Documents/1-34.txt" in the folders

Cutting plane generation

Hi Thorben,

I would like to know how did you generate cutting planes as described in the paper. I did not see it in your code, or maybe you handle it through cplex?

Best, Rui

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.