2 consecutive real days?

Started by Benahmed Abdelkrim, September 24, 2021, 08:51:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Benahmed Abdelkrim

Hello!
can we avoid the succession of 2 real days/week in FET morning-afternoon mode? these two real days must be spaced either by a real empty day or by half a day

is there a trick which allows to realize this condition or it would be better to create a new constraint?
B.A/krim

Liviu Lalescu

Hello,

Do you mean 2 real days occupy 4 half days?

A new constraint might be possible, but not perfect. If you want, I could try as a custom version for you for now.

Trick which might work: add say 2 dummy activities with duration = duration of half day (4?), min say 2 days between them 100%, allowed times = middle of the week (not first or last days).

Benahmed Abdelkrim

#2
thank you for your answer,
yes I mean 2 real days occupy 4 half days (only for teachers of course)

for the trick it is GREAT!(but I am afraid it will not work for all databases due to constraints interactions)..  but I think a new constraint is preferable, so that all FET users benefit(and applicable for all databases).
thank you dear Liviu. :)
B.A/krim

Liviu Lalescu

You're welcome!

I would like to do for you a test custom version, to check it works. It cannot be implemented perfectly.

But are there really any users asking for this constraint?

How to name the new constraint? It is very difficult to come up with a good name. "Teacher(s) no two consecutive full days"? Or "Teacher(s) max one consecutive full day"?

Benahmed Abdelkrim

This constraint is desired by morning-afternoon FET users, but I admit that no one expressly expressed it.
for the name, I think the first one is GOOD; Teacher(s) no two consecutive full days
B.A/krim

Liviu Lalescu

Dear Benahmed,

I will consider it. Are you sure it is not too powerful and users will obtain an impossible timetable?

Unfortunately, it is not implementable in a way I would call "perfect", but it is implementable.

I saw on your Facebook post in your group that you obtained a timetable for a teacher with 4 full days in a row? (Facebook translate says "four (4) days off a week.").

Wouldn't it be much better to use Morocco-style teacher, with 3-day exception for that teacher? So that he works only max 3 full (morning+afternoon) days per week?

Benahmed Abdelkrim

QuoteI will consider it. Are you sure it is not too powerful and users will obtain an impossible timetable?
not at all unless the teacher (s) has a lot of working hours per week. therefore this constraint must be used with precaution and prior study for each teacher.

QuoteI saw on your Facebook post in your group that you obtained a timetable for a teacher with 4 full days in a row? (Facebook translate says "four (4) days off a week.").
no wrong translation, I meant 4 half rest day for the teacher.

QuoteWouldn't it be much better to use Morocco-style teacher, with 3-day exception for that teacher? So that he works only max 3 full (morning+afternoon) days per week?
I used FET -6.1.6 mode algeria, max 6 days per week, because I failed to get a solution with FET morocco(all teachers have one day exception was stronger (for my database)). it took a long time and I was in a hurry to get a solution, that's why I opted for FET-6.1.6 Algeria mode.
I got a better solution except for a teacher who complained about having 2 consecutive full days of work.

for my database, 4 hours inthe morning, and 4 hours in the afternoon. all teachers do not exceed 22 hours of work per week. which makes it easy to apply this new constraint without worries for all teachers.
B.A/krim

Liviu Lalescu

Quote
QuoteI saw on your Facebook post in your group that you obtained a timetable for a teacher with 4 full days in a row? (Facebook translate says "four (4) days off a week.").
no wrong translation, I meant 4 half rest day for the teacher.

So, a teacher has 4 half days rest? But this is not problematic.

Quote
QuoteWouldn't it be much better to use Morocco-style teacher, with 3-day exception for that teacher? So that he works only max 3 full (morning+afternoon) days per week?
I used FET -6.1.6 mode algeria, max 6 days per week, because I failed to get a solution with FET morocco(all teachers have one day exception was stronger (for my database)). it took a long time and I was in a hurry to get a solution, that's why I opted for FET-6.1.6 Algeria mode.
I got a better solution except for a teacher who complained about having 2 consecutive full days of work.

for my database, 4 hours inthe morning, and 4 hours in the afternoon. all teachers do not exceed 22 hours of work per week. which makes it easy to apply this new constraint without worries for all teachers.

Hmm, the name of the constraint is not good, because full days means full of activities, no free slot. We need a better name.

Benahmed Abdelkrim

QuoteHmm, the name of the constraint is not good, because full days means full of activities, no free slot. We need a better name.
I think that's a good name, if you think within the limits of the Max Hours Per real Day constraint( which allows to have empty hours during a real(full) day) . otherwise we could change the word "full" by the word "real" in the name sentence.
the name then becomes: Teacher(s) no two consecutive real days.
B.A/krim

Hiba Hadi

I confirm this new constraint is needed. 2 real days consecutive are very stressful for the teachers.
W.B

Liviu Lalescu

Great!

Or: Teacher(s) don't work in two consecutive real days. Hmm... but either your way (teacher(s) no two consecutive real days) or my way it is not clear. Because the user might understand that the teacher is allowed a real day and the two real days before and after must be both totally free.... :(

Please provide me with your file, for testing (when and if I'll do it). I would need also the solution with the teacher working in two consecutive real days. And if your file is too difficult (hours to solve), send me a modified one to solve in ~20 minutes.

OK, Hiba Hadi, I took notice of your comment!

Liviu Lalescu

#11
Benahmed, wouldn't it be better: "Teacher(s) max three consecutive days"? Because 4 consecutive half-days might be tiring, even if like this: RD1-evening, RD2-morning, RD2-afternoon, and RD3-morning?

Benahmed Abdelkrim

Quote from: Liviu Lalescu on September 24, 2021, 08:04:54 PM
Great!

Or: Teacher(s) don't work in two consecutive real days. Hmm... but either your way (teacher(s) no two consecutive real days) or my way it is not clear. Because the user might understand that the teacher is allowed a real day and the two real days before and after must be both totally free.... :(

Please provide me with your file, for testing (when and if I'll do it). I would need also the solution with the teacher working in two consecutive real days. And if your file is too difficult (hours to solve), send me a modified one to solve in ~20 minutes.

OK, Hiba Hadi, I took notice of your comment!
ok I will send it
B.A/krim

Benahmed Abdelkrim

B.A/krim

Liviu Lalescu

Email received.

What do you say about my proposal in my previous post?