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.
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.
بعد فائق التحية
يمكنكم اضافة أستاذ وهمي لمجموعة الحصص المذكورة
مع قيد زمني خاص به اقصى ساعات يوميا
شكرا أخي على التفاعل. أنا غادي نوضح لك أكثر. عندي أقصى حصص بالنسبة للتلاميذ هي 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.
Thank you so much liviu for your help.
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.
Thank you for quick response dear Liviu. I'll try your suggested solution and see how well it works for me.
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
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!
i'm using this trick with teacher when i want max hours per day for him with one or tow day exception
Very interesting! :)
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.
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.
Quote from: jza3 on August 03, 2022, 07:05:51 PMQuote 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
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.
You might get unwanted gaps, if the dummy is in the middle. So either use preferred times for dummy activities, or try to use fourat's method.
Quote from: fourat on August 03, 2022, 10:51:07 PMQuote from: jza3 on August 03, 2022, 07:05:51 PMQuote 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
Exception is what I'm talking about. For example, if you limit the number of hours per real day for a teacher to say 5, they can't exceed that number in any circumstances, whether there is an exception or not. If there is no exception, the max is strictly 4 hours, but when there is an exception, the possible max is 8 if you don't use the constraint "max hours ... for a teacher"
أ لا يفي القيد الزماني أقصى حصص يومية قصى حصص في يوم حقيقي مع وسم النشاط ...بالغرض؟
Quote from: ZINEDDINE18 on August 04, 2022, 01:10:59 PMأ لا يفي القيد الزماني أقصى حصص يومية قصى حصص في يوم حقيقي مع وسم النشاط ...بالغرض؟
هذا القيد يشتغل على الأنشطة التي تم وسمها بنفس الوسم، ولا يشمل الانشطة التي ليست موسومة به. مثلا إذا وسمت التربية البدنية بوسم معين، يمكنك التحكم في عدد الحصص اليومية بالمؤسسة من خلال القيد الذي ذكرته. لكنك لا تستطيع أن تتحكم بأنشطة المواد الأخرى.
على ما فهمت لديكم مادة الرياضة -على سبيل المثال و تريدون تخفيض عدد الساعات القصوى بساعة في اليوم الذي يدرسها فصل لنسميه (ف)
لنفترض أن العدد الأقصى للساعات اليومية للفصل (ف) هو 6 ساعات و أنكم تودون أن يكون 5 ساعات يوم وجود حصة الرياضة
الحل المقترح هو إحداث قصل وهمي لنسميه (ف و) يدرس جميع المواد مع الفصل الحقيقي (ف) و وضع قيد أقصى ساعات يوميا 6 للفصل الوهمي ووضع قيد الساعات الجوفاء للفصل الحقيقي حسب الرغبة ثم إضافة حصة وهمية بمادة وهمية دون مدرس يدرسها الفصل الوهمي و مدتها ساعة و تحدد لها قيد الإنطلاق في نفس اليوم مع حصة الرياضة
و بالتالي لن يتجاوز عدد الساعات بالنسبة للفصل الوهمي 6 يوم حصة الرياضة و 5 بالنسبة للفصل الحقيقي
للمزيد من التوضيح جميع الحصص الحقيقية للفصل الحقيقي تكون بمعية الفصل الوهمي
طريقة السيد جد ذكية
Quote from: fourat on August 06, 2022, 10:00:35 AMللمزيد من التوضيح جميع الحصص الحقيقية للفصل الحقيقي تكون بمعية الفصل الوهمي
السلام عليكم. هذه هي الطريقة التي أنجزت بها حصص المواكبة. وعوض أن تكون المواكبة في الحصتين الثالثة أوالرابعة دائما، أصبح بإمكان حصص المواكبة أن تكون في أي حصة 1، 2، 3، أو 4 بدون أن يكون هناك فجوات للأستاذ أو للتلميذ.
نعم طريقة الاستاذ الوهمي والقسم الوهمي هي التي تمكن من جعل المواكبة في اطراف الحصص الدراسية.