تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين

Started by jza3, August 01, 2022, 09:22:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jza3

Hi Liviu. I hope you're feeling good. We would like to limit the number of activities on a real day based on whether there is a certain tag among these activities or not.
For example, I have tagged certain activities with "tagX". I want the number of activities to be 6 or less during a real day if one of them is tagged with "tagx".
Let's say I tagged math activities with tag "ma". So, whenever there is a math activity (1 hour) on a certain day, I want 5 hours maximum from other subjects to go with that math activity, so the whole number of activities does not exceed 6 hours.
If there is a solution on the forum, please direct me to it. Otherwise, I hope you can create something new to help us.
Thank you so much.

Liviu Lalescu

Hello, jza3,

I am not sure if it can be achieved with FET as it is now (6.5.5). Let me think and I'll answer tomorrow or later.

fourat

بعد فائق التحية

 يمكنكم اضافة أستاذ وهمي لمجموعة الحصص المذكورة
مع قيد زمني خاص به اقصى ساعات يوميا


jza3

شكرا أخي على التفاعل. أنا غادي نوضح لك أكثر. عندي أقصى حصص بالنسبة للتلاميذ هي 7 ساعات في اليوم الحقيقي. أنا بغيت التلاميذ يقراو غير 6 ديال السوايع فالمجموع ملي كتكون عندهم الرياضة. بمعنى خمس ساعات زائد ساعة الرياضية. وملي ما تكونش عندهم الرياضية ماشي مشكل يقراو 7 ساعات. أتمنى أن يكون الأمر واضحا. بالنسبة للحل لي اقترحتيه علي لا أعتقد أنه يحل المشكل. وشكرا لك.

Thank you for the reply. Let's me explain better. The Moroccan students normally study maximum 7 hours per real day, not more. What I want is an additional contraint to make students study only 6 hours per real day when one of the hours is a sports activity. In other words, when students have sports, they should study 5 hours + the sports hour, which limits the number to 6 hours only, not the normal 7 hours. I hope I have been clearer.


Liviu Lalescu

Hello, @jza3 ,

I think I might have something for you: add n_activities_of_sport dummy activities for the students set (no teacher, a dummy subject), and then max (real) days between each such dummy activity and an activity of sport = 0. Then I am not sure it works perfectly for the other constraints like gaps, but you might force the dummy activities to be at the beginning or at the end of the day with preferred times, or end students (half) day.

Otherwise it is difficult to implement exactly what you suggest and I cannot think of a good name for a new constraint.

Please let me know.

jza3

Thank you for quick response dear Liviu. I'll try your suggested solution and see how well it works for me.

fourat

to solve the problem of the gaps I have a rather complicated solution you can add a dummy group which studies with your real group and insert only this dummy group in the dummy activity cited by Mr Liviu and you set the maximum number of gaps for the real students as you want

Liviu Lalescu

Quote from: fourat on August 03, 2022, 11:13:15 AMto solve the problem of the gaps I have a rather complicated solution you can add a dummy group which studies with your real group and insert only this dummy group in the dummy activity cited by Mr Liviu and you set the maximum number of gaps for the real students as you want

Interesting!

fourat

i'm using this trick with teacher when i want max hours per day for him with one or tow day exception

Liviu Lalescu


jza3

Quote from: fourat on August 03, 2022, 02:00:58 PMi'm using this trick with teacher when i want max hours per day for him with one or tow day exception

For your situation, there is already a constraint for this in Fet. "Max hours daily per real day for a teacher". This limits the max number of hours a teacher works every real day.
As for me, I'm afraid I couldn't figure out how to implement your solution or that of Mr Liviu.

Liviu Lalescu

Oh, please call me Liviu  :)

For each activity of sport, add an activity of "dummy", without teacher, and max (real) days between sport and dummy = 0. This way, on the day you have sport you will also have dummy, and total max 7 activities, so total max real activities 6.

fourat

Quote from: jza3 on August 03, 2022, 07:05:51 PM
Quote from: fourat on August 03, 2022, 02:00:58 PMi'm using this trick with teacher when i want max hours per day for him with one or tow day exception

For your situation, there is already a constraint for this in Fet. "Max hours daily per real day for a teacher". This limits the max number of hours a teacher works every real day.
As for me, I'm afraid I couldn't figure out how to implement your solution or that of Mr Liviu.

i'm talking about exception

jza3

Quote from: Liviu Lalescu on August 03, 2022, 07:28:43 PMOh, please call me Liviu  :)

For each activity of sport, add an activity of "dummy", without teacher, and max (real) days between sport and dummy = 0. This way, on the day you have sport you will also have dummy, and total max 7 activities, so total max real activities 6.


Wonderful. Now,there is something I can try. I'll get back to you. A million thanks Liviu.