Minimum distance between first teaching hour and last teaching hour

Started by Wizard, October 09, 2015, 03:41:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Wizard

Hi!
Is there a way to set a minimum distance between first teaching hour and last teaching hour?
I have set maximum hours continuously to be 4, but sometimes the generated timetable contains a teacher that teaches 4 hours in a day and they become consecutive. What I would like is for him to be at school for at least 5 hours even if he has a gap.

Liviu Lalescu

Unfortunately, I think this is impossible. Would you like to add this in the TODO list? (but I am not sure it can be made with the FET algorithm).

Wizard


alex

Quote from: Wizard on October 09, 2015, 04:04:16 PM
That's ok, I also thought that it would be difficult  :)
I think that you can solve this problem in an "indirect way". Create a pseudo-lesson. For example if your school works for 5 days per week and 5 hours per day (if I understood correctly), i.e. 25 hours per week and your teacher has for example 22 hours per week, create a pseudo-activity (lesson->pseudo-lesson, split 3, min days=1, 100%. You should insert split 3 and not another number because 25-22=3. Then go to Time->Activities->A set of activities has a set of preferred time slots. Select teacher->(your teacher), subject->pseudo-lesson and put "X" (not allowed) for the 1st and 5th hour, weight percentage 100%). Then close all windows and generate your timetable. If you have more than one teachers with the same issue, you should do this for each one of them. Just be careful that you might need to insert a different number of pseudo-activities for each one of your teachers. The hours in the timetable with the "pseudo-lessons" will be their gaps!

Liviu Lalescu

Maybe, but it does not work if the teachers are constrained on gaps.

alex

Quote from: Liviu Lalescu on October 20, 2015, 07:18:50 PM
Maybe, but it does not work if the teachers are constrained on gaps.
Of course the gaps constraints should be removed. All the gaps should be replaced by these pseudo-lessons. I think that this works. All the hours will be teachings; and some of the teachings are going to be pseudo-lessons (pseudo-activities), which actually means gaps.

NOAH

Hello,

I am creating a timetable with ten teaching hours per day. How can I commands maximum consecutive hour for a teacher in a day. For example: a teacher to have a gap or two or more(depending on hours per day) after every two consecutive hours. As in no teacher should more than two consecutive hours.

Kindly assist

Liviu Lalescu

Hello!

It is very easy, teacher(s) max hours continuously.


NOAH

Greetings.

Are breaks inclusive? If yes, in a timetable with a short break after every two hours, how do I avoid the case of a teacher having six continuous hours? That is 2 hours + break + 2 hours + break + 2 hours.

Thanks

Liviu Lalescu

Hello!

I am not sure I understand correctly.

2h + b + 2h + b + 2h is accepted in the generation, if you inputted breaks as a constraint break.

In your case, a customization might be needed/possible.

NOAH

Hello!

Thanks for the response. I meant, when setting the maximum consecutive hours for teachers per day, are breaks included (considered as an hour)?

Liviu Lalescu

Breaks are considered as hours. If you have 2 hours, then break, then 2 hours, it is considered that it respects max 2 hours continuously.

NOAH


Liviu Lalescu