FET Forum

FET Support (International) => Moroccan Arabic / (العربية (المغربية => Topic started by: YOUSSEF HOUIET on September 20, 2022, 02:39:49 AM

Title: max different rooms for a teacher/ all teachers
Post by: YOUSSEF HOUIET on September 20, 2022, 02:39:49 AM
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
Title: Re: max different rooms for a teacher/ all teachers
Post by: Liviu Lalescu on September 20, 2022, 07:26:21 AM
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.