min activities in a building

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

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Benahmed Abdelkrim

The "appearance" can be confusing; the term "repetition" is more appropriate in this regard. This constraint has been in place for over five years; users are used to it, and changing it now would be risky... I Think ...
B.A/krim

Liviu Lalescu

Indeed, Benahmed, you are so right!

Benahmed Abdelkrim

A significant improvement in generation speed and behavior; time flows normally, no jump. Thank you for this very good work!
B.A/krim

Liviu Lalescu

#168
You are welcome, dear Benahmed! I hope on 19 March early morning we'll release the new official version. We had a great collaboration!!!

I am so tired... but pleased!  :)

Benahmed Abdelkrim

#169
After the successful implementation of MTR in the official FET and the latest improvements regarding speed and behavior, I had an idea while consulting the teachers' schedules (see attached screenshot below), which consists of making a small improvement to MTR. since each real room is divided into 2 rooms named with the same name, and which in reality designate the same room. this division - let us remember - is to allow an activity to have 2 teachers.

If you look closely at the screenshot attached below, you can easily see that this constraint did not prevent the repetition. For this reason, I suggest adding a condition to this constraint that excludes rooms in the same building, and only assigns one room in the same building to the teacher.

Remembre, I accomplished this using tricks, but these tricks were rather manual (as you yourself described in this open topic); FET wasn't free in his choices...
B.A/krim

YOUSSEF HOUIET

This is exactly what I was trying to convey: adding a solution to this issue by  a constraint on the maximum number of occurrences of the building as a whole for a teacher. When this constraint is applied at the building level, FET will assign only one room from that building to the teacher, effectively avoiding repetitions across rooms that actually represent the same physical space.


Benahmed Abdelkrim

Quote from: YOUSSEF HOUIET on March 18, 2026, 04:58:45 AMThis is exactly what I was trying to convey: adding a solution to this issue by  a constraint on the maximum number of occurrences of the building as a whole for a teacher. When this constraint is applied at the building level, FET will assign only one room from that building to the teacher, effectively avoiding repetitions across rooms that actually represent the same physical space.



Applying this constraint to a building does not prevent the repetition of elements within that building. It is safer to add a condition to the MTR to guarantee non-repetition.
B.A/krim

Liviu Lalescu

Dear Benahmed:

1) Please give me the fet file for you screenshot.

2) Add an implicit condition to the room(s) max teachers repetitions? Meaning that all such constraints must respect as you said?

Benahmed Abdelkrim

#173
Quote from: Liviu Lalescu on March 18, 2026, 05:38:36 AM1) Please give me the fet file for you screenshot.
Attached...

Quote from: Liviu Lalescu on March 18, 2026, 05:38:36 AM2) Add an implicit condition to the room(s) max teachers repetitions? Meaning that all such constraints must respect as you said?
Not really an implicit condition, but rather a condition that can be chosen or not by the user through a selection box.
B.A/krim

Liviu Lalescu

How could we name that option?

I'll try to think, but I am not sure an efficient implementation is possible.

YOUSSEF HOUIET

Instead of adding an exception constraint to exclude building rooms from the current MTR constraint, why not introduce a new constraint at the building level? This constraint would allow assigning only one room from a given building to a teacher. In this way, we ensure that the building is allocated only once and that only one of its rooms is assigned, thereby satisfying the required condition.

Benahmed Abdelkrim

Quote from: Liviu Lalescu on March 18, 2026, 06:01:28 AMHow could we name that option?

For example: Exception rooms in the same building
B.A/krim

Benahmed Abdelkrim

If this condition is not selected, MTR affects only one room among the rooms in the building.
B.A/krim

Benahmed Abdelkrim

Quote from: Benahmed Abdelkrim on March 18, 2026, 06:11:34 AM
Quote from: Liviu Lalescu on March 18, 2026, 06:01:28 AMHow could we name that option?

For example: Exception rooms in the same building

Maybe another name: allow rooms in the same building
If this condition is not selected, MTR affects only one room among the rooms in the building.
B.A/krim

Liviu Lalescu

I am comparing in my mind both Benahmed's and Youssef's suggestions and I hope one will be successful.