Can 2 unrelated activities switch places?

Started by infoo_, January 19, 2023, 07:44:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

infoo_

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

Liviu Lalescu

Hello,

You just modify the 2 constraints activity preferred starting time.

infoo_

#2
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 - 1A
Fridays 7º Teacher A - Math - 1B
Fridays 8º Teacher A - Math - 1B

After:

Fridays 7º Teacher A - Arts - 1A
Fridays 8º Teacher A - Music - 1A
Mondays 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 - 1C
Fridays 7º Teacher A - Math - 1B
Fridays 8º Teacher A - Math - 1B

After:

Fridays 7º Teacher A - Arts - 1A
Fridays 8º Teacher A - Music - 1C
Mondays 1º Teacher A - Math - 1B
Mondays 2º Teacher A - Math - 1B

Liviu Lalescu

I think that more activities will be rescheduled.

infoo_

#4
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).

Liviu Lalescu

You need to calculate the consequences of swapping. You might know better than me.

infoo_

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


You cannot view this attachment.

To avoid this, could I simply swap 6º and 7º 2C - Matemática to 1º to 2º? That is:

You cannot view this attachment.

Liviu Lalescu

I am sorry, but I cannot answer better than you. You know your file better than me. Just follow the logic :)

infoo_

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

Liviu Lalescu