Replies: 2 comments 2 replies
-
Hi @magick93, welcome. We've got an employee rostering quickstart - going through the code, I think it answers most of your questions. https://github.com/TimefoldAI/timefold-quickstarts/tree/stable/use-cases/employee-scheduling
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hello
I'm trying (a) get some practical experience with Timefold and (b) write a constraint for the employee roster example, that will optimize based on contract min and max time, eg, work no more than n hours, no less than m hours.
I'm reviewing a similar question on SO - https://stackoverflow.com/questions/67085636/optaplanner-custom-employee-rostering-issues-with-weeklyhourslimit-in-the-cons
The following questions are probably very basic - I am doing a lot of reading on Optaplanner / Timefold, and really appreciate any help.
This uses a
sumDuration()
function. Is this included in Timefold?I'm working of the Timefold nursing roster example. In this, is the
org.acme.employeescheduling.domain.EmployeeSchedule
class appropriate to use in the constraint to query for the weekly allocated work time for an employee? This model is annotated with@PlanningSolution
.If this is the most appropriate model, then I'm assuming this will need to be populated from historical data, too.
What is the name for planning that involves loading historical facts (such as the last month of shifts)? Are there any similar examples I can use to study?
Assuming I need to load historically assigned shifts, should I also add a hard constraint to prevent re-planning of historical shifts? Or is there a more native way of ignoring already assigned shifts? should I use:
entitySelector
orvalueSelectot
orPinningFilter
or --- this looks to be the way historical shifts are filtered inai.timefold.solver.examples.nurserostering.domain.solver.ShiftAssignmentPinningFilter
filteredSelection
?Thanks
Beta Was this translation helpful? Give feedback.
All reactions