Prohibiting teacher's consecutive activities at certain times

Started by pkzip, January 05, 2015, 05:20:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pkzip

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?

Liviu Lalescu

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.

pkzip