min activities in a building

Started by Benahmed Abdelkrim, February 28, 2026, 11:14:18 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Liviu Lalescu

OK, dear Benahmed, I added it.  :)

Benahmed Abdelkrim

B.A/krim

Liviu Lalescu


Liviu Lalescu

Dear Benahmed,

I really hope you will understand this problem: I received an email telling me that the new constraint is cumbersome to understand and use with "max repetitions". It would be much better to have something like: "room(s) max activities per teacher" or "room(s) max activities with each teacher", where simply the max is max repetitions+1.

We can use the old files (FET-7.8.1) and add 1 and report the change to the user.

It is more FET-notation.

Also, I invited that person who wrote me that email to participate in the forum discussion.

I will go on a walk now and reply maybe 2 hours later.

Benahmed Abdelkrim

I'll think about it and answer ...
B.A/krim

Benahmed Abdelkrim

I agree to change the name of this constraint, respecting FET's notation. The name, "Max activities in the room for each teacher," expresses this repetition more explicitly, making it easier to understand.

If we set max activities = 0 in a certain room, this means that the teacher will have no activities in that room. In this specific case, the constraint forbids the teacher from having activities in a certain room(s), which contradicts the MTR, unless of course we have to introduce modifications in the code. Remember, mtr=0 allows the teacher(s) to have only one activity in the room(s)...
B.A/krim

Benahmed Abdelkrim

Changing the name could generalize the application of this constraint and no longer limit it to exams only, This is interesting ... I think
B.A/krim

Liviu Lalescu

Thank you for your kind understanding, dear Benahmed! 0 becomes 1, and 1 is minimum allowed.

Benahmed Abdelkrim

Quote from: Liviu Lalescu on March 21, 2026, 08:16:45 AMThank you for your kind understanding, dear Benahmed! 0 becomes 1, and 1 is minimum allowed.

We can leave the 0 instead of the 1, that's very interesting, it means the teacher will have no activity in the room, it's very general
B.A/krim

Liviu Lalescu

All teachers, so equivalent with room not available.

Benahmed Abdelkrim

#205
Quote from: Liviu Lalescu on March 21, 2026, 08:25:05 AMAll teachers, so equivalent with room not available.
In this particular case, we can warn the user that 0 for all rooms(teachers) means no rooms at all...
B.A/krim

Liviu Lalescu


Benahmed Abdelkrim

Quote from: Liviu Lalescu on March 21, 2026, 08:34:35 AMI think we should deny 0.

Yes, I understand your concern, but this constraint could be used to forbid the teacher(s) from using certain room(s) if we put max activities =0 ... I think...
B.A/krim

Liviu Lalescu

Hmm... it is much more efficient the constraint room not available. It is for all teachers, so probably perfectly equivalent to room not available constraint?

Benahmed Abdelkrim

Ok! I agree with your approach; max 1 is more reasonable.
B.A/krim