Problema scuola con 3 edifici

Started by astigol, September 24, 2024, 05:54:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

astigol

Salve.
La mia scuola ha 3 edifici: E1, E2, E3. E3 è distante dagli altri due, mentre E1 e E2 sono più vicini.
Ci sono docenti che lavorano in tutti i tre edifici.
Esiste un modo per imporre che i cambi di edificio avvengano solo da E1 a E2 o viceversa?

Liviu Lalescu

#1
Salve,

Non possi aggiungere solo due edifici, E1_2 e E3? E1_2 ha tutte le aule di E1 e E2.


astigol

Quote from: Liviu Lalescu on September 24, 2024, 06:10:40 PMSalve,

Non possi aggiungere solo due edifici, E1_2 e E3? E1_2 ha tutte le aule di E1 e E2.



Non ho precisato che è comunque necessario inserire ora buca nel passaggio da un edificio all'altro.
Mi chiedevo se fosse possibile limitare il cambio edificio nella stessa giornata ai soli E1 e E2.

Liviu Lalescu

Scusi l'inglese:

There is a recently introduced constraint, teacher(s)/students max activity tags per day from set. Can you add AT1, AT2, or AT3 for the corresponding building (do you know which activity is in which building?), and then teacher(s) max 1 activity tag from AT1 and AT3, and another constraint max 1 activity tag from AT2 and AT3 per day?

astigol

Quote from: Liviu Lalescu on September 24, 2024, 06:26:50 PMScusi l'inglese:

There is a recently introduced constraint, teacher(s)/students max activity tags per day from set. Can you add AT1, AT2, or AT3 for the corresponding building (do you know which activity is in which building?), and then teacher(s) max 1 activity tag from AT1 and AT3, and another constraint max 1 activity tag from AT2 and AT3 per day?


E' una soluzione perfetta, grazie!

Liviu Lalescu

Prego!

Please let me know if it works practically.

Giggino

Hi i didn't understand how it works

Suppose i have Ed1 and Ed2. A group stay in Ed1 and goes to Ed2 twice a week because of a spcefic lab. When the groups stay in Ed2, professors of that day go there. I have some professors which can't move from Ed1 to Ed2 and viceversa and need to stay in the same Ed the whole day.

So

I would like to select some professors which never go to Ed2 (i assign all ed1 rooms to those professors)
Or
If they go to Ed2, they stay the whole day there. (Change Ed a week to that professors set to 0)

What is the difference with this constraint? Is there a better way to do this?
Thanks

Liviu Lalescu

There is a new constraint, teacher(s) max activity tags per day from a set. You can add tag ATEd1 to edificio 1 activities, similarly for 2, and teachers max 1 activity tags per day from ATEd1 and ATEd2. Might be more efficient in speed with this new constraint.

Giggino

Quote from: Liviu Lalescu on September 29, 2024, 05:21:57 PMThere is a new constraint, teacher(s) max activity tags per day from a set. You can add tag ATEd1 to edificio 1 activities, similarly for 2, and teachers max 1 activity tags per day from ATEd1 and ATEd2. Might be more efficient in speed with this new constraint.


Ok but i don't know in advance all the activities which take place in Ed2.
For example i have a 3h activity for group1 in electronic lab in Ed2. The day is 7h and i simply don't want some teacher to move Ed1<->Ed2

Liviu Lalescu

Then you need to use building changes constraints. With activity tags is only if you know the building of each activity.

Giggino

Quote from: Liviu Lalescu on October 01, 2024, 07:38:30 AMThen you need to use building changes constraints. With activity tags is only if you know the building of each activity.


Ok, grazie!