How to take historical data into account in loadBalance collector. #1127
Closed
Boyankovachev
started this conversation in
General
Replies: 2 comments 1 reply
-
Hello @Boyankovachev - yes, there is. |
Beta Was this translation helpful? Give feedback.
1 reply
-
More generally, this is the "tally" design pattern, which the old tally (how many xmas's Ann had to work in the past 10 years, or weekends in the last 2 years) gets added in the dataset without the actual shifts of so long ago. |
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
-
Hello. I am trying to implement a fairness constraint for employees working night shifts. My constraint works great and is very similar to the one in the example in the docs here.
My problem is that I am generating a plan for a given month, but I need take into account historical data for the given employee, meaning I have a getter in the Employee, getPastNightShifts(), which returns me the number of night shifts he has worked in the previous X months. I would like to pass the data somehow into the loadBalance constraint collector, so they are also taken into consideration (added to the number of night shift in the month being generated).
Is there currently any way this can be achieved through the Timefold API? If not, I think it would be a nice new feature, and got any tips how I can implement it myself? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions