Durata massima del giorno per tutti gli insegnanti

Started by Domenico, August 02, 2023, 06:13:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Domenico

Buonasera, vorrei chiedere se è possibile per il vincolo "Durata massima del giorno per tutti gli insegnanti" impostare un peso inferiore al 100%. Mi spiego meglio. Se disabilito il vincolo mi esce l'orario in circa 4 minuti , ma nel momento in cui imposto il vincolo SM:5 e E1G:Si (Durata massima del giorno 5 con 1 giorno di eccezione), FET non riesce a chiudere l'orario. Per questo vorrei impostare un peso ad es. del 95% accettando che qualche insegnante non rispetti il vincolo.
Grazie e complimenti sempre a Liviu per il lavoro straordinario

Volker Dirr

That is not possible.

As a workaround maybe set constraint with 6 hours for all teachers
and then add several addition constraints with 5 hours only for some teachers.
So maybe start adding such constraints for all teachers that are older then 60 years. If that is possible also add the same rule for all teachers that are older then 55 years. ...
Maybe add similar for trainee teachers. You will know better than me.

I am not sure when Liviu will read this. It might take some time, he will probably tell you later if it might be possible with less then 100%, but if i guess the results where bad or it was too slow.
(And in my opinion the "workaround" is better then a less then 100% value. Since...
a) i like 100% constraints much more, since they are faster and fair
b) it might be happen, that the result might be a value that is 2 or more hours to high)

Liviu Lalescu

Buonasera, Domenico,

Thank you, Volker!

Domenico, grazie per il complimento!

Scusi l'inglese!

I just looked in the code. I think it is better to keep only 100% weight permitted, because otherwise the timetables might be bad. It might be possible as a customization, and then consider if to add it to the official FET.