Skip to content

hardnp/vehicle_routing_problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vehicle Routing Problem (VRP) solver

Basic build

See documentation on how to build with CMake.

By default, cmake generates Unix Makefiles, if your system supports it (e.g. Linux), you can use it to build the code. Otherwise, see specific cmake command-line when building for Windows, OSX.

  • Release

    mkdir build
    cd build/
    cmake ..
    cmake --build .
  • Debug

    mkdir build
    cd build/
    cmake -DCMAKE_BUILD_TYPE=Debug ..
    cmake --build .
  • Built executable vrp_solver is located under build/ directory

    [Linux] ./build/vrp_solver test_data/sample_input.csv
    [Windows] build\\vrp_solver.exe test_data\\sample_input.csv

Cross Platform Specifics: cmake generators

  • Windows: change cmake .. to:

    cmake -G "Visual Studio <version> Win64" ..

    This will generate MSVC solution

  • OSX: change cmake .. to:

    cmake -G Xcode ..

    This will generate XCode project