FET Forum

FET Support (English) => Get Help => Topic started by: sasbland on November 21, 2025, 09:23:05 AM

Title: Teacher finishing early 2 days a week but can be any 2 days
Post by: sasbland on November 21, 2025, 09:23:05 AM
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
Title: Re: Teacher finishing early 2 days a week but can be any 2 days
Post by: Liviu Lalescu on November 21, 2025, 11:30:10 AM
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.
Title: Re: Teacher finishing early 2 days a week but can be any 2 days
Post by: sasbland on November 21, 2025, 02:20:52 PM
Thank you very much. I'll try that. It sounds correct so thanks again.
Title: Re: Teacher finishing early 2 days a week but can be any 2 days
Post by: Liviu Lalescu on November 21, 2025, 02:21:46 PM
You are welcome!  :)