-1

I have different service time for each location. how can i add these service time in time window solution?

I've already go through or-tools/ortools/constraint_solver/samples/cvrptw.py

but could not figure it out

  • What is service time? What's is time window solution? – Chetan Jan 17 '20 at 12:31
  • please visit https://developers.google.com/optimization/routing/vrptw – user12577393 Jan 17 '20 at 12:33
  • 2
    the same as Laurent Perron's answer here: https://stackoverflow.com/questions/59692546/how-to-add-delivery-service-time-in-google-ortools-vrp, you can increase the transit time matrix with the service time. – dhasson Jan 17 '20 at 15:13

1 Answers1

1

You should build your Transit matrix as follow.

Transit(A, B) == ServiceCost(A) + TravelCost(A, B)
Mizux
  • 8,222
  • 7
  • 32
  • 48