-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimizing Makespan - the total duration vehicles are on the road #12
Comments
Oh right, so with the current implementation, vehicles may wait around at a location for any amount of time without incurring a cost? That seems like a big problem. Is my guess right that that your solution would only run after the main optimization is done, when the routes have already been decided? That could lead to a lot of wait time remaining if you're using small time windows. |
No - the time vehicles "wait" at a location is the service time (check the docs for The difference between the current implementation and minimizing the makespan as ticketed here is minimizing makespan minimizes the time the last vehicle will arrive back at the depot. Basically optimizing getting the full problem done as fast as possible. Simple example highlighting what's getting minimized:
|
Aah, got you! 👍 |
We optimize based on costs only. Costs are applied to ways not to locations. What you could do is you could add secondary objectives and then e.g. minimize the arrival time at each location. |
@daniel-j-h
and the objective function will be either the total cost or the total cost plus the weighted global spans of each dimension on which I called
Hence I can not simply define the objective function to be the max of all routes (instead of the sum). Following your suggestion above, I create a new dimension, called "time", that uses the same evaluator as the cost but on which I also call Here is a minimal example, followed by the output of the solution printer:
Here is the output:
|
At the moment users can pass in a durations matrix for costs and we will minimize the total number of vehicle driving hours. In contrast, this ticket is about minimizing the total duration vehicles are on the road.
Implementation:
Minimize the route's end cumul var. for the time dimension. This will minimize the overall completion time.
The text was updated successfully, but these errors were encountered: