Interval max days per week

Started by Cyrus Ireri, September 07, 2024, 08:50:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cyrus Ireri

I have realised its possible to have like 3 subjects the last hour of the day for the same teacher.Is there a way for having a constraint like all teachers work in an hourly interval max days per week for a tag?I This can restrain such occurrence.Its better a teacher to have 3 lessons from different classes but not single class for 3 days.2 days is okay but 3 is too much.Or there is a way out that am not aware?

Liviu Lalescu

Possible solutions:

1) Subactivities preferred time slots. If teacher T has math for students S 5 times per week, constrain the split indexes 1, 2, and 3 to early; in the constraint specify T and S.

2) Activities occupy max time slots from selection (but it is difficult to add so many constraints and it is worse in speed than the first solution).

Cyrus Ireri

I thought there would be one constraint that would handle all classes such that if i say that any subject with tag A can never appear thrice last hour of the day and that all.

Liviu Lalescu

Add tag AT to all activities, and subactivities preferred time slots for AT, split index 1, 2, 3 early. Only 3 constraints.