google / or-tools

Google's Operations Research tools:
https://developers.google.com/optimization/
Apache License 2.0
10.84k stars 2.09k forks source link

VRP with Time Windows and Capacity Constraints #4198

Closed GanHY97 closed 3 months ago

GanHY97 commented 3 months ago

What language and solver does this apply to? Python

Describe the problem you are trying to solve. in the problem of vrp which has Time Windows and Capacity Constraints, i want to convert capacity constraints into unloading duration. and add it to the cost of travel, but i don't know which function can have from_index, to_index and time dimension, such as SetArcCostEvaluatorOfAllVehicles imported function needs two parameter from_index and to_index .

Describe the solution you'd like Please provide examples of incorporating multiple dimensions of data into the cost of travel.

lperron commented 3 months ago

This is not a bug.

Read the examples, there are plenty of those. This question is asked repeatedly, search The discussions, on r the or-tools-discuss mailing list.

And please use github discussions. The issue part is not for modeling questions.

GanHY97 commented 2 months ago

Got it, thank you