FET Forum

FET Support (English) => Programming Help => Topic started by: MOHAMED AIT ICHOU on July 22, 2019, 03:04:31 PM

Title: maximum one consecutive mornings
Post by: MOHAMED AIT ICHOU on July 22, 2019, 03:04:31 PM
Hello, can you add maximum one consecutive mornings
maximum one consecutive afternoons
To become as it is in the picture
Thank you for all the efforts
Title: Re: maximum one consecutive mornings
Post by: Liviu Lalescu on July 22, 2019, 04:44:10 PM
1) For FET-official or FET-Algeria and FET-Morocco?

2) For teachers or for students?

3) If you need exactly as in your picture, you could use some constraints teacher/students set not available times.
Title: Re: maximum one consecutive mornings
Post by: MOHAMED AIT ICHOU on July 22, 2019, 06:48:59 PM
1- for FET FET-Morocco
2-For teachers
3-I know, but I would like this limitation to facilitate the process
Thank you so much
Title: Re: maximum one consecutive mornings
Post by: Liviu Lalescu on July 22, 2019, 07:02:26 PM
Hello,

I do not understand your answer to (3). Could you detail?
Title: Re: maximum one consecutive mornings
Post by: MOHAMED AIT ICHOU on July 22, 2019, 07:14:17 PM
I mean this condition (maximum one consecutive mornings) would be better then  use some constraints teacher/students
Title: Re: maximum one consecutive mornings
Post by: Liviu Lalescu on July 22, 2019, 07:46:24 PM
Do you mean you don't want to constrain the timetable so much? So that the teacher can teach for instance Monday either morning or afternoon. If he teaches morning, he cannot teach Tuesday morning? if he teaches afternoon, he cannot teach Tuesday afternoon?
Title: Re: maximum one consecutive mornings
Post by: MOHAMED AIT ICHOU on July 22, 2019, 07:55:59 PM


I want the teacher not to work more than a consecutive morning and consecutive afternoons  as in the picture
Title: Re: maximum one consecutive mornings
Post by: Volker Dirr on July 22, 2019, 07:57:12 PM
hmm. i think a modified version of "teachers works in an hourly max" can do it (of course that version must care about single days only, not the whole week).

one the other hand: Why do you need such a consraint? in my opinion it look only like you want to huff the teachers. Where is the advanatge for you, the teachers or the students? I can see only disadvanatges if you add such a rule.
Title: Re: maximum one consecutive mornings
Post by: Liviu Lalescu on July 22, 2019, 08:07:12 PM
Are you aware that there are in FET-Morocco constraints teacher(s) max two consecutive mornings/afternoons?

Please let me know if you need this for all the teachers. I could in this case make an easier code, a custom version just for you, with the hard-coded constraint max one consecutive mornings/afternoons for teachers (not modifiable from the interface, but working invisibly in the code, with visible results).
Title: Re: maximum one consecutive mornings
Post by: MOHAMED AIT ICHOU on July 22, 2019, 10:29:15 PM
Yes I know there are max two consecutive mornings / afternoons? But I would like to experience maximum one consecutive mornings if it is not stressful for you
yes i  need this for all the teachers
Title: Re: maximum one consecutive mornings
Post by: Liviu Lalescu on July 22, 2019, 10:32:58 PM
Quote from: profsim on July 22, 2019, 10:29:15 PM
Yes I know there are max two consecutive mornings / afternoons? But I would like to experience maximum one consecutive mornings if it is not stressful for you
yes i  need this for all the teachers

OK, I will try to do a custom version for you, for all teachers, max one consecutive mornings and max one consecutive afternoons.
Title: Re: maximum one consecutive mornings
Post by: MOHAMED AIT ICHOU on July 22, 2019, 10:38:23 PM
Thank you
Title: Re: maximum one consecutive mornings
Post by: MOHAMED AIT ICHOU on July 22, 2019, 10:58:55 PM
Quote from: Volker Dirr on July 22, 2019, 07:57:12 PM
hmm. i think a modified version of "teachers works in an hourly max" can do it (of course that version must care about single days only, not the whole week).

one the other hand: Why do you need such a consraint? in my opinion it look only like you want to huff the teachers. Where is the advanatge for you, the teachers or the students? I can see only disadvanatges if you add such a rule.

In Morocco, on the contrary, this strategy is preferred for it equally puts the educators on the same line; with two different shifts a day, a group of teachers works in the morning and the other in the afternoon and this routine continues in a reversed way the following day.
Title: Re: maximum one consecutive mornings
Post by: Liviu Lalescu on July 23, 2019, 12:20:30 PM
I made it, please get it from https://lalescu.ro/liviu/fet/download/custom/profsim/ and let me know if it works good for you.
Title: Re: maximum one consecutive mornings
Post by: MOHAMED AIT ICHOU on July 23, 2019, 07:23:36 PM
Thank you first, it works fine at first but after adding a Time constraint it stops the process

And to inform you Saturday afternoon there is no work
Title: Re: maximum one consecutive mornings
Post by: Liviu Lalescu on July 23, 2019, 07:25:02 PM
It is a too difficult constraint this max 1 consecutive mornings/aftenoons.

Stops: do you mean program crashes or timetable is impossible?
Title: Re: maximum one consecutive mornings
Post by: Benahmed Abdelkrim on July 23, 2019, 08:32:11 PM
I think timetable is impossible.
and this constraint for all teachers is bed and impossible to satisfy except for a few teachers.
Title: Re: maximum one consecutive mornings
Post by: Liviu Lalescu on July 23, 2019, 08:45:18 PM
Yes, this is what I think, also.
Title: Re: maximum one consecutive mornings
Post by: MOHAMED AIT ICHOU on July 23, 2019, 09:12:48 PM
Quote from: Benahmed Abdelkrim on July 23, 2019, 08:32:11 PM
I think timetable is impossible.
and this constraint for all teachers is bed and impossible to satisfy except for a few teachers.
سي عبد الكريم العملية جميلة لو تمت برمجتها لان أغلب المؤسسات الاعدادية في المغرب تعتمد هذا الشكل وتشتغل بتفريغ المدرسين من خلال خلق مجموعتين مجموعة تشتغل في الصباح ومجموعة ثانية تعمل في المساء وفي اليوم الموالي تعكس العملية
Title: Re: maximum one consecutive mornings
Post by: YOUSSEF HOUIET on July 24, 2019, 04:55:41 AM
اعتقد ان طريقة تقسيم الاساتذة إلى مجموعتيين وتفريغ أيام كل مجموعة 
طريقة متجاوزة وقديمة؛ الآن يمكنك الاعتماد على قيد صباحين /مساءين متتاليين كحد أقصى فهو يفي بالغرض ويسمح بانتاج جداول بشكل أفضل
البرنامج تطور وعليا أن نتطور معه وتجاوز الطرق القديمة التي تشبه الطريقة اليدوية
يومك سعيد