I have put a snapshot for FET-7.4.5. From the ChangeLog:
- Added a new type of constraint: teacher(s)/students (set) occupy max sets of time slots from selection (suggested by Sérgio Augusto Dias Castro). The maximum value can be chosen by the user to be 1 or 2. This constraint might be useful for instance to constrain the teachers to work only maximum 2 shifts out of 3 per day.
I really like this new constraint and just wait to release the final version! :)
Download link, as usual: https://lalescu.ro/liviu/fet/download/test/
Please let me know your opinion.
Hi liviu
I just tried the new version, and I really liked the idea of simplifying the selection of sets of time slots by replacing the X marks with the time group number.
Keep up the creativity!
Thanks, Youssef! I am glad you like it! :)
Yes, indeed, if there were 2 or say 3 sets of selected time slots, things could have been made with 2 or 3 tables with X-s. But for more, it is much easier to use the current spin box table. And the code is much easier and nicer.
Hi
I have an idea to help the user input sets of time slots by using colors for the fields, all the fields of the same group having the same color.
كنت قد طرحتها نت قبل
@GUEFFAZ ABDELKRIM , do you mean you suggested it in the past? I will add your name as a person who suggested, as well (GUEFFAZ REDA?)
@YOUSSEF HOUIET , I will think about it in the morning. Now I am very tired. I am not sure I can do this. If I cannot do it, I'll add your suggestion in the TODO.
Can we say that this new constraint is not really new in the proper sense of the term since it is a generalization of the previous constraint (mutually exclusive)?
Why is the choice of max occupancy limited to only 2 in this new constraint?
Why not leave the user the freedom to select the max number of occupancy according to their needs?
Yes, it is a generalization. It is an update of both "mutually exclusive" and "max activity tags per day/real day".
Unfortunately, as the "max activity tags per day/real day", allowing 3 or more as a limit is too complicated. But I hope it is not really needed.
I added a new snapshot, minor improvements.
Quote from: Liviu Lalescu on August 19, 2025, 05:39:46 AMYes, it is a generalization. It is an update of both "mutually exclusive" and "max activity tags per day/real day".
Unfortunately, as the "max activity tags per day/real day", allowing 3 or more as a limit is too complicated. But I hope it is not really needed.
Thank you for this explanation!
You are welcome! :)
Well, it is not exactly an update for max activity tags per day/real day, but more like something similar and complementing it.
في حال استعملنا هذا القيد الجديد ماهي القيود التي يمكننا الاستغناء عنها
Teacher(s)/students (set) pair of mutually exclusive time slots and pair of mutually exclusive sets of time slots. But for clarity it is better to use this mentioned constraints when they are enough.
Also, the new constraint is similar to teacher(s)/students (set) max activity tags per day/real day. But the operation is different.
Hello, forum,
I plan and hope to release FET-7.4.5 final tomorrow very early, around 4-6 in the morning, in about 12-14 hours from now. I hope everything will be good.
Thanking the FET community for a great outcome! :)
Hi liviu
After some test, the new constraint give the result without problems
Great, Youssef! Will you and your institution use it, or you just tested? The other Moroccan users, do they need it?
Hi liviu
I tested the new constraint in a real case.
For Moroccan users, the last constraint, "pair of mutually exclusive sets of time slots," is usually sufficient.
Using the new constraint in the form "1 out of 3 sets of time slots" is only needed in some cases, for example when the day is divided into three periods and each lesson lasts 45 minutes, usually because of an insufficient number of rooms.
However, possible uses of this constraint might also appear in the future for both students and teachers.
Thanks for the details, Youssef!