FET Forum

FET Support (English) => General Stuff => Topic started by: TAHIR on August 22, 2026, 06:33:58 PM

Title: One of period 5 or 6 must be free .
Post by: TAHIR on August 22, 2026, 06:33:58 PM
For the selected teacher(s), at least one of Period 5 or Period 6 must be free.how we add constraint ?
Title: Re: One of period 5 or 6 must be free .
Post by: Liviu Lalescu on August 22, 2026, 07:15:35 PM
Very easy:

1) Teacher(s) pair of mutually exclusive time slots. Add n_days_per_week constraints;

or

2) Teacher(s) max hours daily in hourly interval.

I prefer (1).
Title: Re: One of period 5 or 6 must be free .
Post by: TAHIR on August 22, 2026, 07:54:53 PM
Please explain both of these methods.
Title: Re: One of period 5 or 6 must be free .
Post by: Liviu Lalescu on August 22, 2026, 08:02:45 PM
Please try finding these constraints in the menu and using them! If you still cannot succeed, I'll try to answer tomorrow.
Title: Re: One of period 5 or 6 must be free .
Post by: Liviu Lalescu on August 23, 2026, 11:31:28 AM
1) Add n_days_per_week constraints. Teacher(s) pair of mutually exclusive time slots. Select Monday, 5, as first slot, and Monday, 6, as second slot. Same Tuesday,..., Friday.

2) Teacher(s) max 1 hours per day in hourly interval [5, 7).

Did you succeed now?