15
15
import static choco.Choco.*
19
19
static TimeSlotService timeSlotService = new TimeSlotService()
22
23
IntegerVariable [] slotIndices
23
24
IntegerVariable [] slotDistances
31
void setup(Site [] sites, Shift [] shifts, Worker [] workers, int daysInMonth) {
36
new ShiftVars(id++, siteIds, workerIds, daysInMonth)
30
40
void bestTimeSlots(TimeSlot [] emptySlots, TimeSlot [] preferredSlots) {
31
41
int NB_SLOTS = emptySlots.size()