You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Home tab, you can set "Opening time" to 0 and "Closing time" to 24 and press Initialize. This will effectively create a 24/7 calendar. The problem is that almost all constraints are written on a "per day" basis which is a fundamental concept for us. A day always starts at 00:00h and ends at 24:00h. As an example, a contiguous shift from 22:00h to 06:00h would be treated as being two distinct shifts, from 22:00h to midnight and from midnight to 06:00h, and the concept of overnight rest would be meaningless, but "Hours per week" count would work well. You need to change the code in AspEasyScoreCalculator class, which is written in easy Java, the implementing method calculateScore. Keep in mind that in this app we are using a custom approach of over-provisioning shifts and we normalize the result at the end so that the solver can navigate more easily. We distinguish between the "internal" result, which can have overlapping shifts, and "normalized", which of course do not have them overlapping. Constraint streams score calculation should be used nowadays.
I am unable to find a way to utilize this for a 24/7 calendar - is it possible?
The text was updated successfully, but these errors were encountered: