lesson for teacher for every day comes to school

Started by dimzev, September 19, 2020, 02:20:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dimzev

a teacher comes to school 3 days / week (Monday Thursday Friday)
Another two days / week (Tuesday, Friday)
etc.
I want for every day that comes any teacher to have at least 2 hours / day
  I do not want the program to take out some days he is at school without having a lesson
What order should I give so that every teacher who comes to school for any number of days has at least two hours of lessons

I know i can do this for any teacher give min days but i want for all teachers with different number of days

Volker Dirr

Quote from: dimzev on September 19, 2020, 02:20:00 PM
I want for every day that comes any teacher to have at least 2 hours / day

Use teachers contraint: min hours per day

Quote from: dimzev on September 19, 2020, 02:20:00 PM
I know i can do this for any teacher give min days but i want for all teachers with different number of days

Of course in that case you can't use a teacherS constraint. You must use (single) teacher constraint for each teacher.