Skip to content
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

24 hour operation #2

Open
zenbane opened this issue Mar 2, 2023 · 1 comment
Open

24 hour operation #2

zenbane opened this issue Mar 2, 2023 · 1 comment

Comments

@zenbane
Copy link

zenbane commented Mar 2, 2023

I am unable to find a way to utilize this for a 24/7 calendar - is it possible?

@betaiotazeta
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants