How to add constraint "Teacher does not teach end of day and start of next day"

Started by thanhnambkhn, November 10, 2016, 02:25:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thanhnambkhn

Dear Luviu,
I want to constraint a teacher as example below:
- If he/she has an hour at end of day (ex: Monday) so he/she should not teach at start of next day (ex: Tuesday).
Is there any way to make FET do that?

Liviu Lalescu

I think activities occupy max time slots from selection. For each teacher, n_days_per_week-1 constraints, all teacher's activities, selected slots = Monday last, Tuesday first, etc., max occupied = 1.