Hello
Just a basic question:
Can we swap between two activities (maybe from different students sets and/or different subjects) of the same teacher without modifying other activities, if they are not related and/or not related with other activities constraints (such as activity preferred starting time, set of activities not overlapping etc.)? To achieve this, we add 2 constraints "an activity has a preferred starting time".
For example:
Before:
Teacher A teachs Math in 1A on Mondays on 1º and 2º hours. Also, Teacher A teachs Literature in 1B on Fridays on 5º and 6º hours.
After:
Teacher A teachs Math in 1A on Fridays on 5º and 6º hours. Also, Teacher A teachs Literature in 1B on Mondays on 1º and 2º hours.
Thanks in advance
Hello,
You just modify the 2 constraints activity preferred starting time.
Hello
Quote from: Liviu Lalescu on January 19, 2023, 08:06:48 AMYou just modify the 2 constraints activity preferred starting time.
Yes.
Would it be the same but now we exchange activities
of different duration?
For example:
This swap would work:
Before:
Mondays 1º Teacher A - Arts - 1A
Mondays 2º Teacher A - Music -
1AFridays 7º Teacher A - Math - 1B
Fridays 8º Teacher A - Math - 1B
After:
Fridays 7º Teacher A - Arts - 1A
Fridays 8º Teacher A - Music -
1AMondays 1º Teacher A - Math - 1B
Mondays 2º Teacher A - Math - 1B
This would work? That is, will other activities have to be modified?
Before:
Mondays 1º Teacher A - Arts - 1A
Mondays 2º Teacher A - Music -
1CFridays 7º Teacher A - Math - 1B
Fridays 8º Teacher A - Math - 1B
After:
Fridays 7º Teacher A - Arts - 1A
Fridays 8º Teacher A - Music -
1CMondays 1º Teacher A - Math - 1B
Mondays 2º Teacher A - Math - 1B
I think that more activities will be rescheduled.
Quote from: Liviu Lalescu on January 19, 2023, 08:38:10 AMI think that more activities will be rescheduled.
That's what I was thinking. So if same duration => no problem, if different duration => might be a problem (for sure).
You need to calculate the consequences of swapping. You might know better than me.
Quote from: Liviu Lalescu on January 19, 2023, 09:04:27 AMYou need to calculate the consequences of swapping. You might know better than me.
Of course!
For example, FET throws the following broken soft constraint:
Time constraint teachers activity tag 2C max 2 hours daily broken for teacher Teacher A, on day Martes, length=5. This increases the conflicts total by 0.9
Wihout-swapping.png
To avoid this, could I simply swap 6º and 7º 2C - Matemática to 1º to 2º? That is:
Swapping.png
I am sorry, but I cannot answer better than you. You know your file better than me. Just follow the logic :)
Quote from: Liviu Lalescu on January 19, 2023, 09:17:18 AMI am sorry, but I cannot answer better than you. You know your file better than me. Just follow the logic :)
Oh my god... I've lost my mind. The example I'm showing doesn't tell anything about that other teachers (apart from Teacher A), can be teaching on the course that I was attempting to swap! Indeed, 3C is being instructed by another teacher on the slots that I'm attempting to swap. :)
Sorry for the misunderstanding
No problem!