A teacher starts early

Started by stappix, November 14, 2021, 02:40:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stappix

Some teachers are early birds and prefer the 1st time slot of the day.
I'd like to allow that -- as often as possible.

It will not always be possible due to conflicts with other constraints (rooms / students not available etc.). Therefore, a "teacher's not available times" constraint (allowing e.g. only the morning slots) will be too restrictive and lead to impossible solutions.

What's the best way to achieve this?



Liviu Lalescu

Probably activities occupy min time slots from selection or an equivalent reversed-technique activities occupy max time slots from selection. Please see the Help button for these constraints. You can use them in a progressive approach. For instance, you could force that a teacher will work at least 3 first-hours of a 5-days week.

Or maybe teachers interval max days per week, interval = last hours (but this is not as nice).

stappix


stappix

It works this way:

Collect all activities of a teacher and create a "activities occupy min time slots from selection" constraint. "Selection" ist all 1st time slots of the days, and "Min occupied" is 5 (i. e. no. of days a week).
Generating a timetable will probably fail, e. g. because the teacher's "max days per week" is 4.
Just reduce "Min occupied" step by step until I get a feasible solution.

Thanks for the hint!

Regards,
  Friedhelm.

Liviu Lalescu

You are welcome, Friedhelm  :)

Liviu.