FET Forum

FET Support (English) => Get Help => Topic started by: Wizard on October 09, 2015, 03:41:37 PM

Title: Minimum distance between first teaching hour and last teaching hour
Post by: Wizard on October 09, 2015, 03:41:37 PM
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.
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: Liviu Lalescu on October 09, 2015, 03:57:09 PM
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).
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: Wizard on October 09, 2015, 04:04:16 PM
That's ok, I also thought that it would be difficult  :)
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: alex on October 20, 2015, 05:55:44 PM
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!
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: Liviu Lalescu on October 20, 2015, 07:18:50 PM
Maybe, but it does not work if the teachers are constrained on gaps.
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: alex on October 22, 2015, 01:19:14 PM
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.
Title: Maximum consecutive hours for a teacher
Post by: NOAH on May 23, 2023, 03:25:27 PM
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
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: Liviu Lalescu on May 23, 2023, 03:36:27 PM
Hello!

It is very easy, teacher(s) max hours continuously.
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: NOAH on May 23, 2023, 04:04:51 PM
Ohoo, got it thanks.
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: NOAH on May 24, 2023, 07:27:04 AM
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
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: Liviu Lalescu on May 24, 2023, 08:24:24 AM
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.
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: NOAH on May 24, 2023, 09:43:26 AM
Hello!

Thanks for the response. I meant, when setting the maximum consecutive hours for teachers per day, are breaks included (considered as an hour)?
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: Liviu Lalescu on May 24, 2023, 09:45:41 AM
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.
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: NOAH on May 24, 2023, 10:57:03 AM
Thanks a lot for responding to my questions. 
Title: Re: Minimum distance between first teaching hour and last teaching hour
Post by: Liviu Lalescu on May 24, 2023, 10:57:42 AM
You are welcome! :)