FET Forum

FET Support (English) => Get Help => Topic started by: ngoctp29121982 on August 09, 2022, 02:40:46 AM

Title: Minimum hours per morning
Post by: ngoctp29121982 on August 09, 2022, 02:40:46 AM
Hello Liviu Conditions for me to create a constraint on the minimum number of hours per morning for all teachers or a teacher in the morning-afternoon mode. Thank you
Title: Re: Minimum hours per morning
Post by: Liviu Lalescu on August 09, 2022, 06:21:52 PM
Add min hours daily and then min hours per morning (you cannot add only per morning, because of the way these constraints were conceived).

Not possible, because the constraint does not allow empty slots: Or use more constraints activities occupy min time slots from selection, for each teacher and each morning, select all activities of that teacher, min occupied = 2, select all the slots of that morning.
Title: Re: Minimum hours per morning
Post by: Liviu Lalescu on August 09, 2022, 09:37:53 PM
Discussing with @ngoctp29121982 on Facebook, we came to the conclusion that he needs a special case of some teachers with min 2 hours per morning and min 3 hours per afternoon.

I added a "hack" (meaning far from perfect), but it works: https://lalescu.ro/liviu/fet/download/custom/mha3/

Are there any other users of this mode needing this?