Skip to content

CVRP Reload (multi trip) with CVRP collect and deliver #4300

Discussion options

You must be logged in to vote

don't get it, I suggest to:

  • Set SlackVar to maximum vehicle capacity in addDimension() otherwise it is replaced by a constVar(0) and any subsequent call to SetRange() will be ignored also you can only reduce the range with set Range not increase it otherwise the solver will turn a fail flag to True which should instant kill the solve as infeasible...
  • Set SlackVar to 0 for all nodes except refill station nodes (ed maybe only refill_in node imho)
  • Add bunch of constraint on refill_out so CumulVar of both dimension (load and delivery) are the same.

Thus regular nodes will still have 0 slackVar as usual BUT refill_in will be allow to use it to simulate refill of delivery package.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@mohit-at-delhivery
Comment options

@Mizux
Comment options

Answer selected by mohit-at-delhivery
@mohit-at-delhivery
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants