New constraint Saturday/Monday

Started by MOHAMED AIT ICHOU, July 31, 2022, 09:25:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MOHAMED AIT ICHOU

Is it possible to add  a constraint that prevents work on Saturday evening and Monday morning, meaning that work must be done only once, meaning that whoever works on Saturday evening should not work on Monday morning and vice versa.Because it is not reasonable for the teacher to work on Saturday evening and directly on Monday morning

Liviu Lalescu

#1
Hello,

You could add a dummy activity for each teacher, duration n_hours_per_day, allowed time only Saturday evening and Monday morning.

But the best would be with a new constraint, max half days between activities, so you can add n_teachers constraints of this type, and each constraint has all the activities of a teacher, max half days = 10.

Please let me know if this last approach would be good for you, and I'll begin working. Please also send me an example file.

Please let me know as soon as possible, because I would like to solve this soon.

Edit: Please let me know, Monday is the first real day and Saturday the last real day? Do you mean Mornings-Afternoons mode, with Sunday free?

MOHAMED AIT ICHOU

#2
Quote from: Liviu Lalescu on July 31, 2022, 11:34:00 AMHello,


Please let me know if this last approach would be good for you, and I'll begin working. Please also send me an example file.

Please let me know as soon as possible, because I would like to solve this soon.

Edit: Please let me know, Monday is the first real day and Saturday the last real day? Do you mean Mornings-Afternoons mode, with Sunday free?

Yes Monday is the first real and Saturday is the last real day; Yes i mean Mornings-Afternoons mode, with Sunday free

Liviu Lalescu

Could you please send me your file, here (archived), or by email? I want to check.

The new constraint max half days between activities is almost ready.

MOHAMED AIT ICHOU


Liviu Lalescu

#5
It is done. Please let me know as soon as possible if it works OK. I will send now your updated file by email, for you to see how to use the new constraint (I removed your break from Saturday afternoon). I hope to release tomorrow FET-6.5.5-official.

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

Liviu Lalescu

I apologize, because sometimes the Windows executable was not available. I kept on changing some strings. Now it is there: https://lalescu.ro/liviu/fet/download/test/ . Please test and let me know. I hope to release tomorrow afternoon, so please let me know before that.

MOHAMED AIT ICHOU

Thanks for the quick response, I tried the new constraint in the trial version of fet and it works fine and gives positive results. Thank you again

Liviu Lalescu


Liviu Lalescu

The new version is out now (FET-6.5.5). Thank you!