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


Benahmed Abdelkrim

B.A/krim

Benahmed Abdelkrim

#272
I think we should take a closer look at this file. This file contains rooms not available, a constraint building max min 1 activity ... FET remains stuck at activity 347. But if we disable this last constraint (building max min 1 activity), FET successfully generates the timetable?! Is this normal? Isn't there a bug?!
The file is attached below ...
B.A/krim

Liviu Lalescu

You mean min, not max?

Unfortunately, it is not a bug. It is normal, because in B1/b1 you disabled those slots, but FET needs also min one activity in building B1. Only break slots are not considered.

Benahmed Abdelkrim

Yes, I meant min, not max.

Shouldn't we warn the user about this specific case? Not all users will understand this!
B.A/krim

Liviu Lalescu


Benahmed Abdelkrim

B.A/krim

Benahmed Abdelkrim

By the way, I forgot to mention that FET takes all buildings into account when using the constraint for each individual building? I tried to avoid this stuck by using a min 1 activity for each building, but unfortunately, FET warns me that this constraint must be used for all buildings!
B.A/krim

Liviu Lalescu

Yes, there is no other practical solution than to add this constraint for all buildings...

Benahmed Abdelkrim

#279
Don't we need something? An improvement or I don't know?
B.A/krim

Liviu Lalescu

Unfortunately, it seems very difficult. But I'll try to think.

What would you want? When a building is not available (all of its rooms have 100% not available in a slot), the min 1 hour should not be considered for this slot?

Benahmed Abdelkrim

Yes, this problem arises when a building is not available, meaning that all of its rooms are not available, in this case this constraint should not be considered.
B.A/krim

Liviu Lalescu

If I could make the constraint for only the set of selected buildings, would it be a good solution?

Benahmed Abdelkrim

Yes, that's one solution, but we should also consider the case where the user applies this constraint to all buildings...
B.A/krim

Liviu Lalescu

Dear Benahmed,

I hope I managed it: only available slots, and for any building. Could you please test intensively with these new changes?

https://lalescu.ro/liviu/fet/download/test/