Changing interval granularity from minutes to hours: Worth for performance? #4913
Unanswered
derkleinegauss5050
asked this question in
CP-SAT questions
Replies: 2 comments 4 replies
-
|
I would go to 15 minutes granularity minimum. Performance will be improved but readability of the solution too, like you work until 11:03 on this, then 4 minutes break, then on something else for 7 minutes looks really bad. |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
don't go for 1 min. 15 minute is the bare minimum. At the month level,
maybe push to 30 minutes.
|
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.
-
Hello,
I am quite new in the field of Constraint Programming and CP-SAT (coming from MIP).
But I found out that for shift scheduling CP-SAT has nice modelling features (like non-overlap intervals for example..):
Right now I've got a model where (input) shifts and (input) employees can be allocated to each other.
Shifts are NOT "early", "late", "night" in buckets, but they all differ in length, start time and end time (in minutes from start of planning horizon).
For each employee, a shift is an optional interval with a presence variable.
Then each employee has some (optional) rest intervals. These are flexible in duration and start and end time. (But also in minutes again).
Then of course, the active rest intervals must not overlap with the active shifts for each employee..
This (minutes) is the "exact" modelling.
Now comes my question:
Is it worth to change from minutes to hours?
And what I mean is: Be on the safe side and round up and down such that each interval gets bigger (never smaller). Such that a solution for the hour model is always feasible for the minute model.
I would have thought, that this yields a (big?) performance boost. But my first tests do not confirm that. Perhaps I have still got some errors or some "minutes" left in the model, I will need to check.
But this leads me back to the "I am new in this field": Is this all really worth a try?
So: Its easier and more correct to model it with minutes. My hope was that restricting by using hours would lead to a significant perfomance boost by being a bit suboptimal.
Or are the decisions CP-SAT has to make still the same and the granularity does not hurt that much?
What would you say?
Thanks for your advice, I am happy to dig deeper into the CP-SAT world. ;)
Beta Was this translation helpful? Give feedback.
All reactions