reinterpretcat / vrp

A Vehicle Routing Problem solver
https://reinterpretcat.github.io/vrp/
Apache License 2.0
348 stars 69 forks source link

Dynamic costs #47

Closed tdeenes closed 2 years ago

tdeenes commented 2 years ago

First of all, thank you for the wonderful library, it works really great and produces high-quality solutions for our use cases.

I am wondering if it is possible to introduce dynamic costs in the optimization. In particular, I would like to take into account load-dependent transport costs. Especially if the weight of the goods is highly unequal in a tour, it might be worth visiting the clients with massive demands first, so that we can save the extra consumption and amortization costs. Can you give me a hint where to start with the implementation? Note that it might not be required to implement these variable costs at the global optimization level, which might slow down the whole optimization substantially - we could just add it as a post-processing step at the level of individual tours to optimize the order of visits.

reinterpretcat commented 2 years ago

Hi, thanks for feedback!

Regarding your question, few approaches possible:

tdeenes commented 2 years ago

Thank you for the quick reply and the tips!