Nurse scheduling based on calendars #4157
Unanswered
techhead2
asked this question in
CP-SAT questions
Replies: 3 comments 3 replies
-
same answer as on stack overflow. Please provide details, some code... |
Beta Was this translation helpful? Give feedback.
1 reply
-
This is not the way to ask a question.
1) look at the complete example:
https://github.com/google/or-tools/blob/stable/examples/python/shift_scheduling_sat.py
2) in this examples, days are numbered from 0.
3) the shift scheduling example includes both shift assignments and
requests.
Laurent Perron | Operations Research | ***@***.*** | (33) 1 42 68 53
00
Le lun. 25 mars 2024 à 19:25, techhead2 ***@***.***> a écrit :
… Can not write code without knowing what to add. I can see in the code that
it assigns shifts to employees, but somehow I need to first assign a given
shift to a date and then to someone with a given expertee.
—
Reply to this email directly, view it on GitHub
<#4157 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3JG42DXJRQDNZJU7PDY2BTZLAVCNFSM6AAAAABFHNFOGOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSMBWGQ2TM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
-
This is the request part of the model.
Le lun. 25 mars 2024, 20:04, techhead2 ***@***.***> a écrit :
… As the scheduler program is your brainchild I thought that you would have
an offhand answer to this question. Of course I could only write a very
stupid piece of code, but that would have nothing positive to my question.
—
Reply to this email directly, view it on GitHub
<#4157 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3JSVUBDQR2CE55LEJ3Y2BYKXAVCNFSM6AAAAABFHNFOGOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSMBWG43TI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
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
-
I had a look at the original nurse scheduling program - https://github.com/google/or-tools/blob/main/examples/python/shift_scheduling_sat.py. I want to modify it so, that shifts are not "allocated" in any random order. In my case E.g a certain operation happens only on Mondays. The shift which would assist this operation MUST be scheduled for Monday. I really don't know how to start. How can I bring this new dimension into the logic of the program? Any hint/help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions