Replies: 2 comments 2 replies
-
|
Hi, Out of box this is not supported, but you can extend https://github.com/reinterpretcat/vrp/blob/master/vrp-core/src/models/problem/costs.rs#L56-L125 You would need to think about your internal data structure to represent a sparse matrix and modify the code to pass it from outside. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I have a follow-up question regarding the sparse matrix discussion. Given that implementing a custom My situation:
Proposed workaround: Since the algorithm would still process a full dense matrix (just with penalty values), would this approach provide any meaningful performance improvement over a standard dense matrix? Or does the real performance gain only come from the memory/computational savings of a true sparse implementation? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
we have a short question whether it would be possible to feed VRP a sparse matrix for very large computations.
Background
We have a very large location-allocation problem with 300k jobs and like 100 depots in all of Germany, where each depot has a max radius of e.g. 2h or 200km.
Problem
With 300k distinct addresses, OSRM expectedly gives us OOM errors on our machine.
Solution Idea
As the depots radii are limited, a full matrix is not needed. A depot in Munich will not serve addresses in Berlin.
Hence our idea was to "glue together" smaller matrices (depot + addresses in 2h radius + buffer) from the single depots to a big sparse matrix.
Can VRP use such a sparse matrix and e.g. just assume an arbitrarily high value for missing distances?
Beta Was this translation helpful? Give feedback.
All reactions