FET Forum

FET Development => Suggestions => Topic started by: koolkiizz on July 29, 2020, 11:22:02 AM

Title: A teacher must have at least n activities on selected day constraint?
Post by: koolkiizz on July 29, 2020, 11:22:02 AM
I don't know how to call that constraint, below is description:
In my country (VN), primary, secondary and high school has a subject that always start at first hour of Monday (and some has a subject that always start at the end of Friday). That (two) subject(s) of each class is teaching by one teacher (called GVCN in my country).
Everything work fine but now I have problem with that: some teacher (GVCN) has only one activity on Monday (same on Friday).
I want prevent that by adding a constraint to have at least 2 or more activities of selected teacher (GVCN) on Monday (and/or Friday).
Title: Re: A teacher must have at least n activities on selected day constraint?
Post by: Liviu Lalescu on July 29, 2020, 12:31:35 PM
I think you can use the constraint activities occupy min time slots from selection.
Title: Re: A teacher must have at least n activities on selected day constraint?
Post by: koolkiizz on July 29, 2020, 01:00:08 PM
Thanks, I will try it
Title: Re: A teacher must have at least n activities on selected day constraint?
Post by: Liviu Lalescu on July 29, 2020, 01:04:36 PM
Or maybe think of the constraint teacher min hours daily?
Title: Re: A teacher must have at least n activities on selected day constraint?
Post by: koolkiizz on August 03, 2020, 03:04:54 AM
Thanks for your replies!
But it take so much time to run and now impossible.
How about "Min hour daily for a (all) teacher(s)" could take one more argument that decide exactly day to apply min hour (in my case is Monday and/or Friday)?
Title: Re: A teacher must have at least n activities on selected day constraint?
Post by: Liviu Lalescu on August 03, 2020, 07:44:01 AM
No, in this case you need two constraints activities occupy min time slots from selection, one for Monday and one for Friday.
Title: Re: A teacher must have at least n activities on selected day constraint?
Post by: koolkiizz on August 03, 2020, 09:37:37 AM
Oh, got it.
BTW, that constraint's documentation is missing, it would be helped me a lot  ;)
Title: Re: A teacher must have at least n activities on selected day constraint?
Post by: Liviu Lalescu on August 03, 2020, 10:19:50 AM
Quote from: koolkiizz on August 03, 2020, 09:37:37 AM
Oh, got it.
BTW, that constraint's documentation is missing, it would be helped me a lot  ;)

There is a Help button in the dialog of these constraints.