max different rooms for a teacher/ all teachers

Started by YOUSSEF HOUIET, September 20, 2022, 02:39:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

YOUSSEF HOUIET

Hi livui,

Continuing an old discussion,

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

Liviu Lalescu

Hello, Youssef,

It is not good to add too many types of constraints in the code. Please try to use activities occupy max different rooms. It is not difficult.