Let the teacher go to work randomly at the end of the day = n

Started by ngoctp29121982, August 15, 2023, 04:50:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ngoctp29121982

Hello Liviu!
I have a math problem, my school has 60 teachers, on average each teacher has to teach 13 lessons in a school week (6 days, from Monday to Saturday). How do I divide equally among the teachers who go to work period 4 (last period of the day). For example, I want teacher A to go to work for 3 days with a random period of 4, then enter any constraints on the FET software.

Vangelis Karafillidis

I think that you could use a combination of the following constraints:
A set of activities occupies max time slots from selection
and
A set of activities occupies min time slots from selection
For the activities of each one of the teachers you can add one constraint max slots = 3 (and selection = all the 4th periods of your week) and one constraint mix slots = 3 (and selection = all the 4th periods of your week).
Under this perspective, each one of the teachers should have his activities at the 4th period for exactly 3 times a week.
But, be careful!!! Your timetable might become impossible!!! I think it would be better if you added min slots = 2 and max slots = 4. This is a balanced solution, not absolutely "fair" but it's more likely that you are going to get a solution.

Vangelis.


ngoctp29121982

before that i tried this way, it is ok, but takes too long. make 1 teacher that have to do 2 constraints? Fet allows the user to do a better binding. Thank you!