Best (not finished yet) solution using SAT solver
Teacher t cannot give lessons in a day d, a period p
The condition that two groups g1 and g2 (or teachers t1 and t2) are not allowed to attend lessons in the
same time.
The condition that a teacher t teaches maximum for n days in a week.
- The requirement that idle periods of length
kare not allowed for the teachert. - The requirement that a teacher
tis not allowed to have more than one idle period per day. - The requirement that a teacher
tis allowed to have at mostnidle periods per week.