Some school don't have the same lunchtime period for all years.  Junior classes might have lunch from 12:30 to 13:15 and the senior classes might have their lunch break from 13:15 to 14:00.

In this situation, we can have both periods available for lessons but we must first use restrictions to prevent the junior classes from being scheduled for a lesson during the 12:30 to 13:15 period and the senior classes being scheduled for lessons during the 13:15 to 14:00 period.  This is done in the Construction Screen under Action - Restrictions.

Please read the article from the button below on how you can present Teaching Groups from any year from being scheduled during a selected period.

The above article relates to Transition Year but this can be used for any year or indeed any combination of years.

This restriction will take care of the students' lessons but we must also remember that teachers will need to have a lunchtime too!!

To accommodate the teachers, we use a slightly different type of restriction.

On the Construction Screen, we go to Actions > Restrictions

The most common type of restriction used is 'Exclude teaching groups on periods' but in this case we use another restriction called 'Teacher Split Periods'.

When the popup box opens as in the screenshot below, you will need to click on the empty Teacher field box and the list of teachers will appear.  You can then select individual teachers and combinations of teachers or you can also 'Select All' 

You can then select the two periods, one of which the teacher must be kept free.  

Please Note: You must set up a separate restriction for each day so this will mean 4/5 restrictions for the full school week.

Now, when scheduling takes place, the solver will only schedule any selected teacher(s) for one of those two selected periods.  This will ensure that the teacher will have a lunch break.


Did this answer your question?