max gap for a particular day

Started by Benahmed Abdelkrim, May 23, 2017, 07:59:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Benahmed Abdelkrim

It is possible to add this constraint: max gap for a particular day. In order to control the random phenomenon of gaps for a particular day.
In the official version we can use the constraint: max span per day for teacher, which can limit the gaps on a particular day, but in the customized versions of FET it is impossible.
B.A/krim

Liviu Lalescu

I am afraid I do not understand. Maybe you could use a constraint activities occupy max time slots from selection?

Benahmed Abdelkrim

#2
Maybe I have to give an example:
Let's say for the day of Wednesday, the teacher T1 has 7 activities and one gap which gives 8h (which exceeds the maximum working time per day for each teacher).

The data of hours per day are:
1   2    Break     3   4     Break lunch     pm1   pm2   pm3   pm4

Among the possible distributions of the activities the followings is bad:

A1    A2    B     Gap    A3    Lu     A4   A5    A6    A7
or
A1    Gap    B     A2    A3    Lu     A4   A5    A6    A7

The best distributions are:

A1    A2    B     A3  Gap    Lu     A4     A5     A6    A7
  or
A1    A2      B      A3    A4   Lu      Gap    A5   A6    A7
or
Gap    A1   B    A2     A3    Lu    A4    A5     A6     A7

The activity A7 is fixed in this last interval of time because it is a pseudo activity.

So the best solution is to have the gap around the break lunch to allow teachers a longer rest time.
Is it possible to realize these last distributions? If there is a trick, which one?
B.A/krim

Benahmed Abdelkrim

#3
I can use the constraint not available times for a teacher. But I am afraid it is not a good solution for the speed of generation? Do it automatically I think is better.
B.A/krim

Benahmed Abdelkrim

#4
The constraint: max span for a teacher can help in this situation.
Or this new constraint: max gap for a particular day(=0), but I'm afraid it's difficult to implement?
B.A/krim

Liviu Lalescu

I still don't understand completely. How would max span per day for a teacher help?

Max gaps in a certain day - might be possible to implement.