Skip to content

No solution is found for simple CVRP problem #2306

Discussion options

You must be logged in to vote
  • All your callbacks must return value of type int i.e. fix your demand callback or update your data...
  • Try to allow nodes to be dropped to see what's happen
    ref: https://developers.google.com/optimization/routing/penalties#overview
  • you have demand of 23 for node 19, with a vehicle capacity of 22 without allowing node to be dropped -> your problem is infeasible...
  • since I use int() to round your demand you have demand of 0 so your counter of active vehicle didn't work so I replace it by route_distance since your start/end node is the same location i.e. 0
  • your vehicle capacity list contains 100 values while you specified 50 vehicles... -> data ill formed

here few fix to make it work, (you …

Replies: 1 comment 3 replies

Comment options

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

@Mizux
Comment options

Mizux Jan 1, 2021
Maintainer

@glazaridis
Comment options

Answer selected by Mizux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants