Main Menu

NinhBinh-VietNam

Started by Thai Chi Phuong, August 21, 2025, 03:54:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Thai Chi Phuong

Hello LiViu!
First of all, thank you for the new constraint group in the August 21 update. I appreciate this constraint, but I think if possible, can you add an option for users to do a maximum of 1 or 2 for each day instead of the whole week as it is currently? I am seeing that if each day is divided into 3 shifts and the constraint is a maximum of 2 shifts, the teacher will do the whole week as shifts 1 and 3 or shifts 1 and 2 or shifts 2 and 3. I mean it is random to do 1 or 2 shifts per day, for example Monday is shifts 1 and 2; Tuesday is shifts 2 and 3; Wednesday is shifts 1 and 3, ...
Thank you very much!

Liviu Lalescu

Hello, Thai Chi,

You are welcome! Thank you!

The solution is very easy and in my tests I used it: add n_days constraints, one for each day! :)

YOUSSEF HOUIET


You need to add the constraint day by day,
that is, for each day of the week a separate constraint has to be added.

Thai Chi Phuong

Thanks YOUSSEF HOUIET!
I understand this, but what I mean is can I add an optional command button: "For all" or "For specific days"?

Liviu Lalescu

Thai Chi, in theory it is possible to create a new constraint, or add parameters to the current constraint. But I prefer to keep things in FET the most general and simple. I hope it is not that difficult to repeat this constraint 5 or 6 times, once for each day.

Thai Chi Phuong

Thanks for your reply, LiViu!
I mean can you add options in the notification panel so that users can choose to apply "For all school days" or "Apply for each school day"?
Sorry for my presentation and English skills.

Thai Chi Phuong

Quote from: Liviu Lalescu on August 21, 2025, 04:15:53 PMThai Chi, in theory it is possible to create a new constraint, or add parameters to the current constraint. But I prefer to keep things in FET the most general and simple. I hope it is not that difficult to repeat this constraint 5 or 6 times, once for each day.

LiViu! But if my school has 50 teachers and each teacher repeats 5 to 6 times, I see the constraints created are a lot.

Liviu Lalescu

#7
You are welcome, Thai Chi!

You select the teacher T (or all teachers), select the first day's shifts (1, 2, 3 - these numbers will appear only in the first day, Monday), max 2 of them. Then, for the same teacher(s), unselect Monday, and select 1, 2, or 3 on Tuesday, again max 2 of them, and so on, until Friday or Saturday.

Liviu Lalescu

Quote from: Thai Chi Phuong on August 21, 2025, 04:22:54 PMLiViu! But if my school has 50 teachers and each teacher repeats 5 to 6 times, I see the constraints created are a lot.

Can't you add the constraint for all teachers, I mean 5 or 6 constraints in total, not for individual teachers?

Or, if you click "Add constraints", FET will add for each teacher a constraint, and you only need to click 5 or 6 times, and then you can modify the individual constraints.

I prefer to have the general constraint, and simple, without extra options like "repeat for each day".

If you really need, I will add your suggestion in the TODO list - let me know if you want this.

Thai Chi Phuong

LiViu Thank you very much!

Liviu Lalescu

You are welcome! So, did you solve your problem? How?

Thai Chi Phuong

Quote from: Liviu Lalescu on August 21, 2025, 04:29:32 PMYou are welcome! So, did you solve your problem? How?

Before suggesting I did as You said, but I still like it to have a checkbox, for example: "Apply to all" or "Apply to each day" or have a range of checkboxes; "Monday"; "Tuesday"; "Wednesday"; ...

Liviu Lalescu

OK, I will add your suggestion in the TODO, but for now I don't agree with the idea.

Thai Chi Phuong

Thank you so much, LiViu!

Liviu Lalescu

You are welcome, Thai Chi! Thank you for your suggestions!