Giter VIP home page Giter VIP logo

hgs-tdcarp's Introduction

Description

This is the source code of the hybrid genetic search (HGS) for the TDCARP, described in "Vidal, T., Martinelli, R., Pham, T. A., & Ha, M. H. (2020). Arc routing with time-dependent travel times and paths"

The code permits to perform the calculations from a known network. At this point, it does not include data acquisition routines, geocoding routines, and interfaces. It is entirely in C++. For convenience, the calculation of the continuous quickest path is done in a separate folder named Program-SP whereas the metaheuristic is located in the Program folder. The metaheuristic is an extension of the HGS for capacitated arc routing problems available at "https://github.com/vidalt/HGS-CARP", with new route evaluation operations and lower-bounds for move evaluations.

Using the Metaheuristic

  • Building
cd Program
make
  • Running:
Usage:
   ./gencarp file_path.tdsp [options]
Available options:
  -t             CPU time in seconds (defaults to 300s).
  -sol           File where to output the solution statistics (defaults to the instance file name prepended with 'sol-').
  -seed          Seed for initialization of the RNG

Example: ./gencarp ../Instances/TDCARP-withSP/Type_M/C01.tdsp -sol solution.txt -t 300 -seed 1

Using the Quickest Path algorithm

  • Building
cd Program-SP
make
  • Running:
Usage:
./TDSPGenerator file_path.dat

Example: ./TDSPGenerator ../Instances/TDCARP-withoutSP/Type_H/C01.dat This command creates a new tdsp file named ./C01.tdsp

hgs-tdcarp's People

Contributors

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