New constraint suggestion: Teacher(s) max span per Week

Started by auriolar, April 15, 2018, 09:47:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

auriolar

Hello

I've borrowed a previos subject and made a small change.
In our school it is interesting to have the constraint not only per day, but per week.

The constraint implemented last year helped us a lot, but if implementing this new constraint will help us even more.
(from the outside it seems that it could be the sum of the spans per day over a week).

Thank you for your awsome work and help.

Liviu Lalescu

I added this into the TODO item #312 (already suggested by Vangelis Karafillidis).

But this constraint is not really necessary. You know the number of hours each teacher works per week, and you can use constraints teacher(s) max gaps per week.

auriolar

Thank you.

I've tried, but it is not enaugh in our school, because some teachers could have an extra hour wich adds a gap a day for everybody else.
I'll look into it again, anyway.

Liviu Lalescu

Quote from: auriolar on April 15, 2018, 02:29:41 PM
I've tried, but it is not enaugh in our school, because some teachers could have an extra hour wich adds a gap a day for everybody else.
I'll look into it again, anyway.

Unfortunately, you need to add the constraint max gaps per week for each teacher. But I can assure you that if you do this correctly you'll get exactly the same behavior as teachers max span per week.