Hello,
here is my problem: several teachers can work max 5 hours daily, but only once a week; in the other days the maximum is 4.
At the moment if in the generated timetable there is a teacher with two 5-hour days I add the constraint that all his activities occupy max 9 hours in those days, but the problem presents again in other days or other teachers and it would be very laborious to add the constraints for all the possible pairs of days.
Is there any alternative solution?
Hello!
1) I think this is not the case: if you know the exact day with 5 hours, you can use constraints of type activities occupy max time slots from selection, with all the activities of that teachers. I think you can use n_days_per_week constraints, one with 5 max occupied slots from all the slots of a day and the others with max 4.
2) Maybe this: add a dummy activity, split into the number of days with max 4 hours, only this teacher (no students), min days between activities = 1 100%. But it might lead to more gaps for this teacher.
We may talk some more about this.
See also: https://lalescu.ro/liviu/fet/forum/index.php?topic=4177.0 . We'll continue the discussion on that newer page. I am interested in the opinion of other users and thinking of implementing this.