Giter VIP home page Giter VIP logo

Comments (3)

vidalt avatar vidalt commented on August 11, 2024 2

You are right, depending on the number of routes, a specific approach designed for the "multi-trip" VRP could perform better. The code of "A Memetic Algorithm for the Multi-Trip Vehicle Routing Problem" was actually implemented by Diego Cattaruzza, I would suggest contacting him directly regarding this code (his contact information seems to be available on his website: https://sites.google.com/site/cattaruzzaxdiego/). Regarding this specific issue, I will now mark it as closed. Thank you very much for your feedback!

from hgs-cvrp.

vidalt avatar vidalt commented on August 11, 2024

Thank you very much for your contribution.

The setting that you describe is typical of the "multi-trip" vehicle routing problem. See, for example, the following references for surveys on classic vehicle routing problem variants and a multi-trip algorithm:
https://www.sciencedirect.com/science/article/abs/pii/S0377221713002026
https://www.sciencedirect.com/science/article/abs/pii/S0377221719308422
https://www.sciencedirect.com/science/article/abs/pii/S0377221713005006

The HGS-CVRP code has been designed to be extremely compact, simple to read and use, and therefore it covers only the canonical variant of the vehicle routing problem (the capacitated vehicle routing problem) which does not allow multiple trips per vehicle. A quick question: do you have a total resource constraint on the trips assigned to a given vehicle (like a duration, or time constraint?). If this is not the case, you could simply generate more routes than there are vehicles (by setting a large enough number of vehicles in the code), and a-posteriori assign several routes to each vehicle.

from hgs-cvrp.

tdeenes avatar tdeenes commented on August 11, 2024

Thanks for the references! Yes, the total duration of a route is fixed. You are right, otherwise I could just increase the nr of vehicles. Given the duration constraint, however, we could improve the solution even more (which is pretty astonishing either in its current form, by the way) by having multi-trip routes. I could see you implemented the "A Memetic Algorithm for the Multi Trip Vehicle Routing Problem" in c++. Can you maybe make it public or share it with me? Of course I know it will not be pluggable to this repository out-of-the-box, but it could probably help us with the implementation. (I already extended the current implementation with a second demand/capacity dimension.)

from hgs-cvrp.

Related Issues (17)

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.