Teaching days on a continuum

Started by xalkis, September 05, 2014, 10:12:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xalkis

We are trying to schedule our extended  class schedule on your application. We managed to input  most of our rules so far. We are wondering if you be so kind and give us some feedback as to  how can
we state that the teaching DAYS of a professor would be a continuum( back-to-back or 3 days in a row)


Liviu Lalescu

To have 3 days in a row, you can use the constraint max 2 days between all activities of that teacher. (but Friday, Monday and Tuesday, for example, is not allowed).

Back-to-back means that also Friday, Monday and Tuesday is allowed? In that case we need to do this instead (five days week):

Add for the teacher two dummy activities A1 and A2, duration n_hours_per_day each.

To say that A1 and A2 cannot be A1 on Monday and A2 on Wednesday or vice versa, use a constraint activities occupy max time slots from selection. Time slots = Monday + Wednesday, max occupied = n_hours_per_day, activities = A1 and A2.

And so on, you need to add 10 constraints.