Skip to content

Implementation of a Branch-and-Cut Algortihm for a Dial-a-Ride Problem with the CPLEX JAVA API.

Notifications You must be signed in to change notification settings

grthor/Branch-and-Cut-for-a-DARP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

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.

About

Implementation of a Branch-and-Cut Algortihm for a Dial-a-Ride Problem with the CPLEX JAVA API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages