"Max gaps per week for all teachers" vs "Max gaps per week for a teacher"

Started by y, January 29, 2012, 08:47:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

y

If I understand correctly how FET works here, if I use both "Max gaps per week for all teachers" and "Max gaps per week for a teacher", then for the specific teacher the smaller number will be taken into consideration. I.e. if I use
Max gaps per week for teacher A = 4
Max gaps per week for all teachers = 3
then teacher A will have up to 3 gaps per week.
Am I correct?

In my school we have 27 teachers. For the 25 of them I want to put "max gaps per week" = 3 and for the rest 2 of them =4. How can I do that? Is there any easier solution than this:
Put "Max gaps per week for all teachers" = 4, then put for each one of the remaining 25 teachers "Max gaps per week for a teacher" = 3 ??

Volker Dirr

You are right. Even Teacher A will have max 3 gaps.

easy solution:
if teacher T1 and T2 need 4 gaps instead of 3, then:
- add a subject "gap"
- add an activity with subject "gap" and no students to teacher T1
- do it similar with T2
- add constraint all teachers max 3 gaps

y

Quote from: Volker Dirr on January 29, 2012, 12:49:40 PM
easy solution:
if teacher T1 and T2 need 4 gaps instead of 3, then:
- add a subject "gap"
- add an activity with subject "gap" and no students to teacher T1
- do it similar with T2
- add constraint all teachers max 3 gaps

Thanks for your idea!
The only drawback is that "gap" could be at the start/end of the teaching period for this teacher, or it could be followed by a real gap, so that this teacher would have 2 consecutive gaps. That would not be nice...

An extra feature for FET could be to have an exception rule for gaps. I.e. have max 3 gaps for all teachers, except teacher A and B that they could have 4. The same thing could apply to other rules, such as consecutive hours for a teacher etc. If it is not too complicated it could be added to a future version of FET.

Thanks anyway!

Liviu Lalescu

Thank you for your suggestion! It is already in the TODO list. But I don't know if and when I'll do it. It belongs to the interface, which is not my primary concern on the program.

y

Quote from: Liviu Lalescu on January 29, 2012, 05:07:04 PM
Thank you for your suggestion! It is already in the TODO list. But I don't know if and when I'll do it. It belongs to the interface, which is not my primary concern on the program.

That is understandable. Thanks for your efforts on improving FET!

Christian Kemmer

Hello,

I have  a similiar problem for about 70 teachers. What I do is the following: I add the max gap for one teacher and do this for all teachers. (Use arrow down and ENTER on the keyboard). So I add 70 constraints max gaps with the same number of gaps.
If the timetable is solvable, I open the fet-file (using a XML-editor) and search for "Gaps>4<" if I've entered "4" gaps before. Now I can replace some or replace all of these entries by "Gaps>3<" or something like that. This works fine for me and is very fast.

Regards,

Christian

y