Use the constraint : a set of activities occupe max time slots, select all activities of the 2 or more teacher, then select all time solts of week, in the field of max occupe, type : The maximum number of weekly working hours from among the teachers
As you know, to limit the number of different rooms allocated to a teacher per week, we use the constraint: activities occupy max different rooms. To simplify the entry of this constraint , is it possible to add a constraint based on the previous constraint, with which we can choose the teacher/all teaches and the maximum number of different rooms allocated to him. By this constraint we will guarantee that the teacher works in a limited number of rooms per week, for example 2,
And to make him works in one of these 2 rooms per day we will use the constraint, teacher's max room's change per day.
Thanks in advance and sorry for the many complicated requests