> Not sure what you're asking.
> It already has a rule "minimumTotalAssignments" and a rule 
> "maximumTotalAssignments":
> https://github.com/droolsjbpm/optaplanner/blob/master/optaplanner-examples/src/main/resources/org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl#L92

So taking toy1.xml as basis;
1) start date = 2014-02-01 end date=2014-02-28
2) Adding 5 more nurses (same type of contract), so 10 total
3) MinNumAssignments to 20, MaxNumAssignments 25
4) Solver assigns about 14 assignments per nurse, not the minimum 20.

So the question goes; What would be the easiest route to make sure nurse gets 
assigned at least the minimum number of shifts?

And now this actually leads to bigger question;
Shift weight & minimum number of assignments.
What would be the easiest way to add more “weight” to night shifts (i.e. night 
shift = 2 morning/evening shifts). Example; So if minimum number of assignment 
would be 5, to satisfy you would need to do  2 night shifts and 1 day shifts 
(or 5 day shifts)



Thanks,
Karri
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to