A teacher must have at least n activities on selected day constraint?

Started by koolkiizz, July 29, 2020, 11:22:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

koolkiizz

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).

Liviu Lalescu

I think you can use the constraint activities occupy min time slots from selection.


Liviu Lalescu


koolkiizz

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)?

Liviu Lalescu

No, in this case you need two constraints activities occupy min time slots from selection, one for Monday and one for Friday.

koolkiizz

Oh, got it.
BTW, that constraint's documentation is missing, it would be helped me a lot  ;)

Liviu Lalescu

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.