Programming two professors on different days

Started by zakariakhelifi99, October 13, 2022, 10:48:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zakariakhelifi99


Peace be upon you all
I have a question

Programming two professors on different days who do not meet on teaching days

Liviu Lalescu

#1
Peace be upon you,

Maybe this: add a dummy teacher T, with both activities of Teacher 1 and Teacher 2 (if you had activities A1(Teacher 1, Subject 1, Students 1) and A2(Teacher 2, Subject 2, Students 2) make them A1(Teacher 1 + T, Subject 1, Students 1) and A2(Teacher 2 + T, Subject 2, Students 2)), then add activity tag AT1 to A1 and AT2 to A2, then teacher T min gaps between ordered pair of activity tags, from AT1 to AT2 and from AT2 to AT1, min gaps = max hours per day.

If you mean for the Mornings-Afternoons mode: This works only for min gaps = maximum hours per half day. If you need for the same real day, we need to think of something else.

zakariakhelifi99

Merci  monsieur  LIVIU
vous  êtes  très  cher a  nous

Liviu Lalescu

Avec plaisir, monsieur Khelifi!

If the two teachers do not have too many activities, say T1(A1, A2, A3) and T2(A4, A5, A6, A7), you can add min 1 days between (A1, A4), (A1, A5), ..., (A3, A7) (3*4=12 constraints). This works for real days, if you use the Mornings-Afternoons mode.