FET Forum

FET Support (English) => Get Help => Topic started by: Cyrus Ireri on September 07, 2024, 08:50:01 PM

Title: Interval max days per week
Post by: Cyrus Ireri on September 07, 2024, 08:50:01 PM
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?
Title: Re: Interval max days per week
Post by: Liviu Lalescu on September 07, 2024, 09:09:09 PM
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).
Title: Re: Interval max days per week
Post by: Cyrus Ireri on September 07, 2024, 09:27:26 PM
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.
Title: Re: Interval max days per week
Post by: Liviu Lalescu on September 07, 2024, 09:30:03 PM
Add tag AT to all activities, and subactivities preferred time slots for AT, split index 1, 2, 3 early. Only 3 constraints.