Giter Site home page Giter Site logo

c4v4 / sph Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 0.0 174.95 MB

Set Partitioning Heuristic (SPH) based on CPLEX MILP solver and created starting from the CFT Heuristic implemented by Accorsi Luca and Cavaliere Francesco

License: GNU General Public License v3.0

CMake 1.62% C++ 98.38%

sph's Introduction

SPH

Set Partitioning Heuristic (SPH) based on CPLEX MILP solver and created starting from the CFT [1] Heuristic implemented by Accorsi Luca and Cavaliere Francesco (available soon).

[1] Caprara, A., Fischetti, M., & Toth, P. (1999). A Heuristic Method for the Set Covering Problem. Operations Research, 47(5), 730โ€“743. doi:10.1287/opre.47.5.730

It took part to DIMACS 12th Implementation Challenge on Vehicle Routing Problems in conjuction with:

  1. Improved version of Helsgaun's LKH-3.
    Team name: Vavavuma!
    Team members: F. Cavaliere, M. Fischetti, K. Helsgaun
    Algorithm name: LKHSP
    Repository: https://github.com/c4v4/LKH-SP)

  2. L. Accorsi and D. Vigo FILO algorithm.
    Team name: Route2Bo
    Team members: L. Accorsi, F. Cavaliere, D. Vigo
    Algorithm name: FSP4D
    Repository: https://github.com/falcopt/f4d

Build

  1. Create a target binary target directory:

     [sph]$ mkdir build
    
  2. Create Makefile using Cmake

     [sph]$ cd build
     [build]$ cmake ..
    

    The current build options are available:

     [build]$ cmake .. [-DCMAKE_BUILD_TYPE=[Release|Debug]] # Build type
     [build]$ cmake .. [-DENABLE_VERBOSE=[ON|OFF]]  # Switch on/off prints
    
  3. Build the binary and the single-header with make

     [build]$ make -j
    

The binary will be placed inside the chosen directory. The merged header file containing all the project will be placed in "sph/one_header_only/SPH.hpp".

Use as library

To use the algorithm in other C++ project, just include generated header (SPH.hpp) in your project.

The SPHeuristic class can be used as high-level interface to the algorithm.

sph's People

Contributors

acco93 avatar c4v4 avatar

Stargazers

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