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.

Liviu Lalescu

I added these last two examples on my hard disk to add as official examples in future NSRT versions. I did not test them - I am too lazy.  :)  If really needed, I can test them.

I will think.

PS: In the Custom versions section of the FET homepage, I made NSRT the first one. Please check the links!

Benahmed Abdelkrim

Yes, I checked, that's very kind of you. Thank you so much dear Liviu!
B.A/krim

Liviu Lalescu

#107
Dear Benahmed,

The constraint building(s) have min one activity in each non-break slot - if we add it to official FET, the whole file should respect:

1) Each activity has duration 1.
2) Each activity can go to each building.
3) Each building should have at least an activity in each non-break slot.
4) No virtual rooms in the data.

and maybe other conditions I don't remember now.

Are these OK if we add to the official FET? We cannot make them more general.

We might add them now (the two custom constraints, rooms max repetitions and buildings min one activity) to the official FET. I am so excited about the latest results!  :)

Benahmed Abdelkrim

Quote from: Liviu Lalescu on March 14, 2026, 11:07:33 AMThe constraint building(s) have min one activity in each non-break slot - if we add it to official FET, the whole file should respect:

1) Each activity has duration 1.
2) Each activity can go to each building.
3) Each building should have at least an activity in each non-break slot.
4) No virtual rooms in the data.

and maybe other conditions I don't remember now.

Yes, absolutely, these are the essential conditions to be met in order to use this building constraint.

Quote from: Liviu Lalescu on March 14, 2026, 11:07:33 AMAre these OK if we add to the official FET? We cannot make them more general.
For the moment, we must be satisfied with these positive results, and leave the question of generalization to the future, depending on user needs.

Quote from: Liviu Lalescu on March 14, 2026, 11:07:33 AMWe might add them now (the two custom constraints, rooms max repetitions and buildings min one activity) to the official FET. I am so excited about the latest results!
Yes, I absolutely support it.  :)
B.A/krim

Benahmed Abdelkrim

Hmm ... maybe a generalization is possible in order to avoid future errors(crashes Bug).
B.A/krim

Liviu Lalescu

No, it is not possible. Actually, I had in mind to add additional checks, and generation cannot start without these conditions.

Benahmed Abdelkrim

Very good! These checks before generation prevent many errors...
B.A/krim

Liviu Lalescu

I worked on it. I integrated in the engine, now I have interface remaining.

https://lalescu.ro/liviu/Backup-fet/ (not working).

Benahmed, a surprise: if you remove activities min/max simult., your file solves much faster!

Benahmed, please tell me: what means MTR=x and how can I check it? For each room, I must assure that it has at most x+1 teacher, for each slot?

Benahmed Abdelkrim

#113
Quote from: Liviu Lalescu on March 14, 2026, 03:44:53 PMBenahmed, please tell me: what means MTR=x and how can I check it? For each room, I must assure that it has at most x+1 teacher, for each slot?


mtr=x means that in the timetable of a room the number of repetitions of each teacher must not exceed the variable x, and vice versa in the timetable of the teachers; that is to say the number of repetitions of each room must not exceed the variable x.

In other words, in each room timetable we must find a number of times for each teacher that does not exceed x+1, and vice versa for the teachers' timetables.
B.A/krim

Benahmed Abdelkrim

I've changed my last answer. Please refresh the page.
B.A/krim

Liviu Lalescu

OK, I saw the refreshed post.

I will only check for each room's timetable, because the reciprocal will be respected, is that right?

Liviu Lalescu

Please prepare me, if you want, examples for NSRT! As I said, please remove or comment the max/min simultaneous, they are slowing much.

Benahmed Abdelkrim

I'm preparing them, please wait...
B.A/krim

Liviu Lalescu

OK!

The new code is ready!  :)  I need now to add some instructions for the users. Maybe tonight we'll have a snapshot.

We did a nice thing!

Benahmed Abdelkrim

I attach below 3 examples of fet-nsrt
B.A/krim