FET Forum

FET Development => Suggestions => Topic started by: MOHAMED AIT ICHOU on July 31, 2022, 09:25:07 AM

Title: New constraint Saturday/Monday
Post by: MOHAMED AIT ICHOU on July 31, 2022, 09:25:07 AM
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
Title: Re: New constraint Saturday/Monday
Post by: Liviu Lalescu on July 31, 2022, 11:34:00 AM
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?
Title: Re: New constraint Saturday/Monday
Post by: MOHAMED AIT ICHOU on July 31, 2022, 12:09:55 PM
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
Title: Re: New constraint Saturday/Monday
Post by: Liviu Lalescu on July 31, 2022, 12:29:17 PM
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.
Title: Re: New constraint Saturday/Monday
Post by: MOHAMED AIT ICHOU on July 31, 2022, 12:47:49 PM
I sent you the file by e -mail
Title: Re: New constraint Saturday/Monday
Post by: Liviu Lalescu on July 31, 2022, 02:44:11 PM
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/
Title: Re: New constraint Saturday/Monday
Post by: Liviu Lalescu on July 31, 2022, 06:16:07 PM
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.
Title: Re: New constraint Saturday/Monday
Post by: MOHAMED AIT ICHOU on July 31, 2022, 06:36:34 PM
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
Title: Re: New constraint Saturday/Monday
Post by: Liviu Lalescu on July 31, 2022, 08:09:52 PM
You are welcome!  :)
Title: Re: New constraint Saturday/Monday
Post by: Liviu Lalescu on August 01, 2022, 05:26:04 PM
The new version is out now (FET-6.5.5). Thank you!