Quote from: Liviu Lalescu on July 24, 2025, 09:00:48 AMGood afternoon,
I will add your suggestion in the TODO list. Also, for you a customization might be possible, not so difficult to implement. For the official FET, I am not sure if a new constraint - teacher(s) max (1 or 2) intervals between 3 or more intervals - could be done "perfectly" (I mean efficiently).
Thank you very much for the reply! I tried to follow Mr. Dirr's guidance, so I added the following restrictions:
Maximum gaps per day for all teachers (setting the maximum to 4 time slots, which within my schedule is equivalent to 2 hours)
Maximum span per day for all teachers (setting the maximum to 16 time slots, which within my schedule is equivalent to 8 hours)
I don't know if this was the most efficient way, but this way, besides not assigning three shifts to the same teacher, also ensured that the shifts worked were always continuous (morning and afternoon or afternoon and evening). The problem is that the schedule already has many class and teacher restrictions, so it's taking increasingly longer to generate the schedule. If I could also allow for the possibility of including morning and evening (although not ideal), it could help with the faster schedule generation.
I'm sending you the link to the current schedule again:https://gist.github.com/sergiocastro9/468427d4786fa9ea6e708858ccf543c6