A teacher must have at least X free hours before an activity in the other day

Started by rodolforg, September 28, 2016, 02:26:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rodolforg

In my school, there are three class periods (morning, afternoon and evening).
Teachers work in two different periods in a day - and it might be night on a day and (not early) morning in the following day.
However (phew), it must be at least 11 hours of difference form the end of a working day to the following.

Is there a way to do this in official FET?

Liviu Lalescu

Maybe you can devise some tricks, but it looks difficult. I cannot think of any trick right now.

It might be possible with a custom version, but this might also be difficult.

Vangelis Karafillidis

There is a similar problem here:
http://lalescu.ro/liviu/fet/forum/index.php?topic=2972.0


Your problem is the generalized form of the above described problem.

Let's say that you have an N-day week (N is 5 if you work in a typical school, Monday to Friday), and teacher TEACHER should not work either in the last Μ hours of each day or the first Μ hours of the next day (in order to achieve this X hours gap between his/her last lesson of the one day and his/her first lesson of the next day). For example, for your school you might want M=3 in order achieve this "gap".

Create a dummy teacher (DUMMY_TEACHER) and N-1 dummy activities (for this dummy teacher) with duration Μ for each one of them. For a typical school, with 5-days week, you should create 4 dummy activities for your DUMMY_TEACHER. If M=3 hours, each dummy activity should have duration = 3.

Go to "An activity has a set of selected time slots". (Time->Activities)
For each one of DUMMY_TEACHER's N-1 dummy activities enter as selected time slots the Μ last hours of the N day along with the Μ first time slots of the N+1 day. For example DUMMY_TEACHER's 1st dummy activity could have as a set selected time slots the last 3 hours of Monday along with the first 3 hours of Tuesday. DUMMY_TEACHERS 2nd dummy activity, should have as a set of selected time slots the last 3 hours of Tuesday along with the first 3 hours of Wednesday.

Then, go to "A set of activities are not overlapping" (Time->Activities).
Select all TEACHER's activities along with DUMMY_TEACHER's dummy activities.

If there are more teachers that want the same (this X hours "gap" between consecutive days), you should create for each one of them one dummy teacher (DUMMY_TEACHER2, DUMMY_TEACHER3, etc) with N-1 dummy activities for each one of your DUMMY_TEACHERS, as described above. Then you should go to "A set of activities are not overlapping" and select all the activities for each real teacher along with the dummy activities of his corresponding dummy teacher. BE CAREFUL!!! Do not select all the activities of all of your TEACHERS and DUMMY_TEACHERS in the same field!!! Do this step for each one of the TEACHERs separately. I think that this should work.