Replies: 1 comment 5 replies
-
This is likely a problem with generic moves. Let's assume you have Shifts S1, S2, S3. It will take one shift, and reassign it. Say it takes S2, and sets it to Ann. S1 and S2 are now on the same person, but S3 still isn't - the hard constraint is still broken! And it will be, until the solver stumbles upon another move which finally sets S3 to Ann. You may find some luck with enabling pillar moves. |
Beta Was this translation helpful? Give feedback.
-
I've got something very much like the Employee Scheduling problem in the quickstart. One of the wrinkles is that there's a hard constraint that certain shifts be done by the same person - my initial attempt at modelling it was correct in a sense, but it generally didn't find a solution that didn't break some hard constraint. I added a soft constraint that penalised partial pattern matches by the number of shifts that were missed, as well as the hard constraint that they be completely filled, and that seemed to help it gradient-climb its way to a better solution, but I can't help feeling that I'm hammering screws here. Is there a better design pattern to use here? Should the Patterns be planning variables rather than just data?
Beta Was this translation helpful? Give feedback.
All reactions