It works this way:
Collect all activities of a teacher and create a "activities occupy min time slots from selection" constraint. "Selection" ist all 1st time slots of the days, and "Min occupied" is 5 (i. e. no. of days a week).
Generating a timetable will probably fail, e. g. because the teacher's "max days per week" is 4.
Just reduce "Min occupied" step by step until I get a feasible solution.
Thanks for the hint!
Regards,
Friedhelm.
Collect all activities of a teacher and create a "activities occupy min time slots from selection" constraint. "Selection" ist all 1st time slots of the days, and "Min occupied" is 5 (i. e. no. of days a week).
Generating a timetable will probably fail, e. g. because the teacher's "max days per week" is 4.
Just reduce "Min occupied" step by step until I get a feasible solution.
Thanks for the hint!
Regards,
Friedhelm.