FET Forum

FET Support (English) => Get Help => Topic started by: pkzip on January 05, 2015, 05:20:12 AM

Title: Prohibiting teacher's consecutive activities at certain times
Post by: pkzip on January 05, 2015, 05:20:12 AM
Thank you for your great program.

Our school has hour 1~4, lunchtime and hour 5~7 per day.

To provide teachers enough lunchtime if a teacher has an activity at hour 4, he should not have an activity at hour 5. (If he has activities at both hour 4 and hour 5, he can't have enough time to have lunch)

Is it possible to implement this using FET?
Title: Re: Prohibiting teacher's consecutive activities at certain times
Post by: Liviu Lalescu on January 05, 2015, 06:47:48 AM
For each teacher, n_days_per_week constraints activities occupy max time slots from selection, all activities of the teacher, each constraint for a different day, max occupied = 1, selected slots = 4 and 5. It involves some work. The best solution.

Or:

For each teacher, add a dummy activity split into n_days_per_week, duration 1 each, preferred time slots 4 and 5 by constraint activities preferred time slots. But this one is not good if you care about teachers' gaps or hours per day/continuously.
Title: Re: Prohibiting teacher's consecutive activities at certain times
Post by: pkzip on January 05, 2015, 09:11:39 AM
The first solution looks good.

Thank you.