Minimum hours with an activity tag

Started by pg788, July 03, 2018, 08:30:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pg788

Each teacher at my college needs to have at least one lecture daily. Can this be done? I know there is a max hours daily with activity tag, but I want the opposite of this.

Liviu Lalescu

There is no direct constraint. I think this is possible, but with a lot of work (many constraints): add for each teacher and each day a constraint activities occupy max different slots (read the help of this constraint to see how you can you can force at least an activity from those with that tag on that particular day).

Volker Dirr

Like Liviu said: not added (yet)

depending on the exact number of hours of lecture and other activities you might use other tricks that effect nearly the same:

for example allow max other activities per day you might with an normal max hours per day constraint you can indirectly increase the minimum of lectures per day.

also by adding a max lectures per day you can indirectly increase the minimum number of lectures per day.

a last variant might be just selecting as many lectures as you have days per week and add a min n day constraint with 100%

of course all that 3 variants are more strict then what you need. so the timetable might be too difficult by that.

liquid

Doesn't "min hours daily for a teacher" solve the problem?

Liviu Lalescu

Quote from: liquid on July 13, 2018, 12:28:52 PM
Doesn't "min hours daily for a teacher" solve the problem?

No, pg788 needs a teacher to have at least an activity of activity tag "Lecture" daily.