-
Notifications
You must be signed in to change notification settings - Fork 2
Slot weights
By default, all the slots have a weight equal to 1. Slot weight measures the effort spent by a shifter doing that slot. When all the weights are equal, the engine aims at just assuring that slots are evenly distributed among the shifters. Setting different slot weights enables another metric to be considered: the engine will also try to equalize the overall efforts spent by each shifter within the workshift.
Slot weights can be set as follows.
var problem = ProblemBuilder.Configure()
...
.AssigningWeight(1.8F).ToSlots().From(10).To(13) // night shifts are heavier
...In this case, night shifts are set with a higher weight than the others: more precisely, nights are almost twice challenging than mornings and afternoons.
NaturalShift is a .NET library released under the terms of AGPL-3.0 license. esposito.marce@gmail.com
The author will not be held responsible for any damage or losses or for any implications whatsoever resulting from using this this source code or the program compiled out of this source code. Use it at your own risk.
Rest after an overnight shift: slot lengths
Employees must rest: MaxConsecutiveWorkingDays
Less items needed for certain days: slot closures
Items can be on vacation: unavailable items
Items do better or worse certain slots: items aptitudes
Shift Y is better after shift X: consecutive slots aptitude
People love and ate each other: cross item aptitudes
Not all shifts are equally important: slot values
Not all shifts are equally heavy: slot weights
How to cover shift X and Y simultaneously: compatible slots