FET Forum

FET Support (English) => General Stuff => Topic started by: massari on February 13, 2018, 04:00:18 PM

Title: Maximum number of same activity per day for the same class
Post by: massari on February 13, 2018, 04:00:18 PM
Please, how do I make a restriction for teachers to teach at most 2 classes of the same subject per day in the same class?
Notwithstanding,if the teacher also teaches another subject for that same class, then he could give another set of two classes in the same class on that same day.
Thank you in advance!
Marcelo (from São Paulo, Brazil)
Title: Re: Maximum number of same activity per day for the same class
Post by: Liviu Lalescu on February 13, 2018, 04:07:20 PM
You can add an activity tag for each activity with the same subject and students set, and use more constraints teacher(s) activity tag max hours daily. But this might involve a lot of work, since there are many subject-students set tuples.
Title: Re: Maximum number of same activity per day for the same class
Post by: massari on February 13, 2018, 07:02:11 PM
Thank you for your reply, Liviu! I thought there was maybe an automatic constraint to set that.:) But I will keep trying it here.
Congratulations for your app!
Title: Re: Maximum number of same activity per day for the same class
Post by: Liviu Lalescu on February 13, 2018, 09:25:10 PM
Thank you for the appreciation! :)

An automation for this might be possible, if you are interested into a custom version. Might not be too much to work. I am not 100% sure it can be done, I thought of it only for a short time, but let me know if you are interested.
Title: Re: Maximum number of same activity per day for the same class
Post by: Info on November 30, 2025, 08:43:34 AM
I am wondering, if there is any constraint that set the maximum same activity per day per class now? For example I want to set maximum 4 same activity for a class, it doesn't matter if they are repeating the same activity for the day.
Title: Re: Maximum number of same activity per day for the same class
Post by: Liviu Lalescu on November 30, 2025, 09:33:39 AM
No new constraint was designed for this. You still need to use constraints of type students activity tag max hours daily.
Title: Re: Maximum number of same activity per day for the same class
Post by: Info on November 30, 2025, 01:43:03 PM
Quote from: Liviu Lalescu on November 30, 2025, 09:33:39 AMNo new constraint was designed for this. You still need to use constraints of type students activity tag max hours daily.

Ok thank you very much for the reply
Title: Re: Maximum number of same activity per day for the same class
Post by: Info on November 30, 2025, 01:56:35 PM
O
Quote from: Liviu Lalescu on November 30, 2025, 09:33:39 AMNo new constraint was designed for this. You still need to use constraints of type students activity tag max hours daily.

I just notice I ask the wrong question, it should be maximum activity per day
For example, Monday can have up to four unique activities. Even if "Activity A" is repeated several times, it still counts as one of the four allowed unique activities.

How can I implement this rule?
Title: Re: Maximum number of same activity per day for the same class
Post by: Liviu Lalescu on November 30, 2025, 05:24:07 PM
Oh, in this case you might want to use the relatively recent constraint of type students max activity tags per day from set, adding a different tag for each different activity.
Title: Re: Maximum number of same activity per day for the same class
Post by: Info on December 01, 2025, 06:05:12 AM
Quote from: Liviu Lalescu on November 30, 2025, 05:24:07 PMOh, in this case you might want to use the relatively recent constraint of type students max activity tags per day from set, adding a different tag for each different activity.

Noted, which mean 1 activity per tag, by using constraints of type students activity tag max hours daily, and set maximum to 4.

Thank you very much
Title: Re: Maximum number of same activity per day for the same class
Post by: Liviu Lalescu on December 01, 2025, 06:10:35 AM
You are welcome, but the constraint is students max 4 activity tags per day from the set of all tags!