FET Forum

FET Support (English) => General Stuff => Topic started by: limesanoj on June 18, 2019, 07:42:56 AM

Title: Conditional 5th and 6th Period Assignment
Post by: limesanoj on June 18, 2019, 07:42:56 AM
What is the approach or solution if we have a constraint that a teacher should not be assigned both the 5th period and 6th period. In other words, if he has a class in the 5th period already, he should be free during the 6th period. Or if he has been assigned the 6th period, he should be free during the 5th period. But it is OK if he is free in both the 5th and 6th periods. Thank you.
Title: Re: Conditional 5th and 6th Period Assignment
Post by: Nagendra on June 18, 2019, 08:23:29 AM
Add a dummy activity to the teacher with no student set. Now add a constraint "Activity has preferred starting times" and select 5th and 6th hour for this dummy activity.
Title: Re: Conditional 5th and 6th Period Assignment
Post by: limesanoj on June 18, 2019, 09:57:08 AM
Thank you so much @Nagendra for your solution. It was able to generate the desired timetable.  :)
Title: Re: Conditional 5th and 6th Period Assignment
Post by: Liviu Lalescu on June 18, 2019, 10:17:10 AM
Yes, and also this is possible:

- Add for each teacher for each day a constraint activities occupy max time slots from selection, all activities of that teacher, selected slots = 5 and 6 of that day, max occupied = 1. You need to update if you add/remove activities for a teacher.