Author Topic: Hours 1 and 5 are not simultaneous  (Read 62 times)

0 Members and 1 Guest are viewing this topic.

nguyenhuuduyet

  • Level 1
  • *
  • Posts: 9
    • View Profile
Hours 1 and 5 are not simultaneous
« on: January 01, 2018, 10:12:10 AM »
Help me
There are 5 hours a day: Hour 1; hour 2; hour 3; hour 4; hours 5.
How does a teacher not have both hour 1 and hours 5?
Thank you very much!

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5233
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: Hours 1 and 5 are not simultaneous
« Reply #1 on: January 01, 2018, 10:19:28 AM »
Constraint activities occupy max different slots from selection. One for each teacher and for each day (so n_days_per_week * n_teachers constraints).

Activities of the teacher, max 1 different slots from (selection=the first and last slot of a certain day).

Volker Dirr

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 1932
    • View Profile
Re: Hours 1 and 5 are not simultaneous
« Reply #2 on: January 01, 2018, 10:42:29 AM »
If there are only 5 hours per day, than it will be maybe easier to set max 4 hours per day constraint.

nguyenhuuduyet

  • Level 1
  • *
  • Posts: 9
    • View Profile
Re: Hours 1 and 5 are not simultaneous
« Reply #3 on: January 01, 2018, 10:43:21 AM »
How in a day teacher there is no 1 hour clock and 5 hours?

nguyenhuuduyet

  • Level 1
  • *
  • Posts: 9
    • View Profile
Re: Hours 1 and 5 are not simultaneous
« Reply #4 on: January 01, 2018, 10:48:02 AM »
I have done it. Thank you very much!

nguyenhuuduyet

  • Level 1
  • *
  • Posts: 9
    • View Profile
Re: Hours 1 and 5 are not simultaneous
« Reply #5 on: January 01, 2018, 10:52:37 AM »
Help me add
How does a teacher have at least 1 activity on Monday and Saturday? (Teachers have many activities during the week)

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5233
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: Hours 1 and 5 are not simultaneous
« Reply #6 on: January 01, 2018, 10:55:17 AM »
Help me add
How does a teacher have at least 1 activity on Monday and Saturday? (Teachers have many activities during the week)

The same magic constraint activities occupy max time slots from selection (read its Help).

nguyenhuuduyet

  • Level 1
  • *
  • Posts: 9
    • View Profile
Re: Hours 1 and 5 are not simultaneous
« Reply #7 on: January 01, 2018, 11:18:29 AM »
Thank you

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5233
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: Hours 1 and 5 are not simultaneous
« Reply #8 on: January 01, 2018, 02:33:59 PM »
Help me
There are 5 hours a day: Hour 1; hour 2; hour 3; hour 4; hours 5.
How does a teacher not have both hour 1 and hours 5?
Thank you very much!

If there are only 5 hours per day, than it will be maybe easier to set max 4 hours per day constraint.

Volker meant teacher(s) max span per day = 4.