Feature Proposal: Max Working Hours with Mandatory Breaks #192
shubham441996
started this conversation in
Ideas
Replies: 2 comments
-
|
@reinterpretcat, please suggest what will be the best approach for implementing it |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I haven't read entire LLM-generated text, but basically suggestions are:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Mandatory Work-Rest Breaks
Problem Statement
Drivers can't work indefinitely — regulations and safety policies require them to rest after working continuously for a set amount of time. Right now, the routing solver has no way to enforce this automatically.
The goal: add a rule that says "after a driver has been working for X hours straight, they must take a Y-minute break — and this repeats throughout their shift."
Everything after the driver leaves the depot counts as work — driving, waiting, and serving customers. Time at the depot before departure and the break itself do not count.
Example
A 12-hour shift with a 5-hour rule produces 2 mandatory breaks — at hours 5 and 10 of accumulated work.
Beta Was this translation helpful? Give feedback.
All reactions