Teacher finishing early 2 days a week but can be any 2 days

Started by sasbland, November 21, 2025, 09:23:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sasbland

Hello,

I couldn't work out what constraints or a combination of constraints I can use here. A day is from 9-5 but a teacher will finish at 1 on one day and finish at 2 on one day. These can happen any days of the week. How can I set this so it gives fet the maximum flexibility when timetabling.

Many thanks

Liviu Lalescu

Hello,

I think it is easy, two constraints teacher interval max days per week: [1, end of day), max n_days-1 per week, and [2, end of day) max n_days-2 per week.

It is logical and should work. I am not sure about the efficiency, but I hope it is correct. A practical test is needed.

I am not sure I got the exact details above, but you can figure it out if I made a mistake.

sasbland

Thank you very much. I'll try that. It sounds correct so thanks again.

Liviu Lalescu