Quote from: Liviu Lalescu on April 24, 2024, 05:44:16 PMQuote from: maxi_mus on April 24, 2024, 05:04:55 PMThere is not much more to it than mentioned, I have 12 classes, each of them has a double lesson of art each week, and I have two teachers who teach these 24 lessons. Which teacher has which class is irrelevant.
Of course, I have constraints for each of these 2 teachers, with regards to gaps, maximum days to work, etc. etc.
If these 12 activities cannot overlap and each teacher has a predefined number of assigned activities, this should work:
1) Add 12 activities without teachers.
2) Add 12 activities without students.
3) Two constraints activities not overlapping, first for (1) and second for (2).
4) Two constraints: activities min (allowing empty slots) and max 2 simultaneous in selected time slots, for all these 24 activities.
Otherwise, let me know and I'll try again to think of something else.
This works!
May I ask why you allow the creation of activities without students (groups) and especially without teachers?