FET Forum

FET Support (International) => Moroccan Arabic / (العربية (المغربية => Topic started by: jza3 on August 01, 2022, 09:22:25 PM

Title: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: jza3 on August 01, 2022, 09:22:25 PM
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.
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: Liviu Lalescu on August 01, 2022, 09:43:22 PM
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.
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: fourat on August 02, 2022, 09:29:50 AM
بعد فائق التحية

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

Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: jza3 on August 02, 2022, 01:16:11 PM
شكرا أخي على التفاعل. أنا غادي نوضح لك أكثر. عندي أقصى حصص بالنسبة للتلاميذ هي 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.
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: jza3 on August 02, 2022, 01:23:29 PM
Thank you so much liviu for your help.
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: Liviu Lalescu on August 02, 2022, 03:42:18 PM
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.
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: jza3 on August 02, 2022, 11:32:00 PM
Thank you for quick response dear Liviu. I'll try your suggested solution and see how well it works for me.
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: fourat on August 03, 2022, 11:13:15 AM
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
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: Liviu Lalescu on August 03, 2022, 01:35:59 PM
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!
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: fourat on August 03, 2022, 02:00:58 PM
i'm using this trick with teacher when i want max hours per day for him with one or tow day exception
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: Liviu Lalescu on August 03, 2022, 02:05:37 PM
Very interesting!  :)
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: 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.
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: Liviu Lalescu on August 03, 2022, 07:28:43 PM
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.
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: fourat on August 03, 2022, 10:51:07 PM
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
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: jza3 on August 04, 2022, 12:36:45 AM
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.
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: Liviu Lalescu on August 04, 2022, 12:44:33 AM
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.
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: jza3 on August 04, 2022, 12:52:25 AM
Quote from: fourat on August 03, 2022, 10:51:07 PM
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

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"
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: ZINEDDINE18 on August 04, 2022, 01:10:59 PM
أ لا يفي القيد الزماني أقصى حصص يومية قصى حصص في يوم حقيقي مع وسم النشاط ...بالغرض؟
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: jza3 on August 05, 2022, 06:40:38 PM
Quote from: ZINEDDINE18 on August 04, 2022, 01:10:59 PMأ لا يفي القيد الزماني أقصى حصص يومية قصى حصص في يوم حقيقي مع وسم النشاط ...بالغرض؟


هذا القيد يشتغل على الأنشطة التي تم وسمها بنفس الوسم، ولا يشمل الانشطة التي ليست موسومة به. مثلا إذا وسمت التربية البدنية بوسم معين، يمكنك التحكم في عدد الحصص اليومية بالمؤسسة من خلال القيد الذي ذكرته. لكنك لا تستطيع أن تتحكم بأنشطة المواد الأخرى.

Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: fourat on August 06, 2022, 09:46:06 AM
على ما فهمت لديكم مادة الرياضة -على سبيل المثال  و تريدون تخفيض عدد الساعات القصوى بساعة في اليوم الذي يدرسها فصل لنسميه (ف)
 لنفترض أن العدد الأقصى للساعات اليومية للفصل (ف) هو 6 ساعات  و أنكم تودون أن يكون 5 ساعات يوم وجود حصة الرياضة
الحل المقترح هو إحداث قصل وهمي لنسميه (ف و) يدرس جميع المواد مع الفصل الحقيقي (ف) و وضع قيد أقصى ساعات يوميا   6 للفصل الوهمي ووضع قيد الساعات الجوفاء للفصل الحقيقي حسب الرغبة ثم إضافة حصة وهمية بمادة وهمية  دون مدرس  يدرسها الفصل الوهمي و مدتها ساعة  و تحدد لها قيد الإنطلاق في نفس اليوم مع حصة الرياضة
و بالتالي لن يتجاوز عدد الساعات بالنسبة للفصل الوهمي 6 يوم حصة الرياضة و 5 بالنسبة للفصل الحقيقي   
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: fourat on August 06, 2022, 10:00:35 AM
للمزيد من التوضيح جميع الحصص الحقيقية للفصل الحقيقي تكون بمعية الفصل الوهمي
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: YOUSSEF HOUIET on September 15, 2022, 07:42:35 PM
طريقة السيد جد ذكية
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: jza3 on September 19, 2022, 04:27:22 PM
Quote from: fourat on August 06, 2022, 10:00:35 AMللمزيد من التوضيح جميع الحصص الحقيقية للفصل الحقيقي تكون بمعية الفصل الوهمي

السلام عليكم. هذه هي الطريقة التي أنجزت بها حصص المواكبة. وعوض أن تكون المواكبة في الحصتين الثالثة أوالرابعة دائما، أصبح بإمكان حصص المواكبة أن تكون في أي حصة 1، 2، 3، أو 4 بدون أن يكون هناك فجوات للأستاذ أو للتلميذ.
Title: Re: تحديد عدد الساعات في يوم حقيقي إذا كان أحد الأنشطة موسوما بوسم معين
Post by: YOUSSEF HOUIET on September 19, 2022, 04:36:18 PM
نعم طريقة الاستاذ الوهمي والقسم الوهمي هي التي تمكن من جعل المواكبة في اطراف الحصص الدراسية.