Skip to content

Theoretical question for CVRP #2327

Jan 8, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

I would say, in the first case you'll have a distance matrix of NxN while in the second part you'll have only (N/2)^2 cells which should reduce the memory footprint, improve locality and cache usage.

note: You can also:

  • forbid arcs by simply returning max_capacity for forbidden arc which should stop the solver earlier than checking the counter constraint etc and pick an other node.
  • Modify the routing.nextVar(any_delivery_point) to only allow end nodes thus solver should not even try to compute/test all possible nodes.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@glazaridis
Comment options

@Mizux
Comment options

Mizux Jan 8, 2021
Maintainer

Answer selected by glazaridis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants