-
Notifications
You must be signed in to change notification settings - Fork 75
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
Required break problems #81
Comments
Hi, required break is also scheduled during activity's service time to make sure that it is respected in any case. Have you tried to use optional break with time window like 17:00-18:00 instead? I guess you're trying to model multiple shifts with such breaks to allow vehicle to start at last job location next day. That's why you're not using multi shift feature instead. |
Yeah you are right i am trying to model mutitple shifts where the employee sleeps in his car so he starts at the last job next day. |
Got it. I would say it requires a new field to be exposed on the required break definition (e.g. policy) as I want to keep an existing logic too. Internally, this field can be used as a flag to disable behavior for activity or transport costs. Need to check how difficult it will be to add. The complex part is that if break time happens during activity's service time, then it skipped and new stop won't be scheduled according to existing logic.. Alternative way is to do post processing on the client side: detect such use cases and override last activity and break scheduled times. |
I will check if i can post process this case on client side. Thanks. |
Hey i tested some more cases with the required break feature but i am getting weird breaks.
Can you provide more details what happend here? I know sometimes the solution can have waiting times because there is no job that can be done before a break so maybe this logic is having a problem? I am mixing required and optinal breaks but that should be fine right? |
Actually, implementation assumes that breaks time windows (both, optional and required) don't intersect. I guess I need to add a validation rule to make this explicit. |
The break time windows of my problem dont intersect. I use optional breaks for lunch and required breaks for sleepovers. |
It seems like a bug: Stop with breaks has departure at 2022-07-13T12:00:00 "time": {
"arrival": "2022-07-12T09:30:31Z",
"departure": "2022-07-13T12:00:00Z"
}, But one of the stop activities for break has 2022-07-13T23:30:00 which is later: "time": {
"start": "2022-07-12T12:00:00Z",
"end": "2022-07-13T23:30:00Z"
} I would need to find a time to dig into the implementation details to find the problem. |
I tried to use only required breaks but still sometimes the solution is buggy. Can you estimated when you have time to fix the issue?
|
At the moment, I don't have plans to start working on it. |
Hey i recently started to work with required breaks and also facing the issue. Any updates on this topic? |
No updates. At the moment, I'm working on some internal refactoring |
Just to add a +1 on break issues (and also in context of multi-day routes), happy to provide examples too if it helps ❤️ |
I started to look into this issue. If you have a smallest possible problem to reproduce, this would help |
Great news, @reinterpretcat ! I'll try to provide an example as soon as possible if it helps contribute to what others are experiencing as well! |
I pushed a fix for some required breakk problems I've identified: You can try them in |
I tested the new required break feature and its not working like i except it. Here i provide you a example where the break is made inside a service. I thought the required break would always be done between two stops while driving.
]
Here is the full problem and solution:example.zip
The text was updated successfully, but these errors were encountered: