Per favore non darmi sempre le prime/ultime ore!

Started by Giggino, October 25, 2018, 08:52:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Giggino

Ciao a tutti,
scusate se mando un secondo post a breve distanza dal primo, ma leggendo nel forum mi è venuta la seguente domanda:
Come codificare al meglio la questione riportata in oggetto?

Avevo pensato a un vincolo tipo "Le sub attività di una selezione cadono/iniziano in un insieme di ore preferenziali" con vincoli tipo 90%

oppure è meglio usare "Un insieme di attivita occupano un massimo di ore scelte da una selezione"? In questo caso per non dare sempre la prima ora come si procederebbe?

Grazie
G

Liviu Lalescu

#1
Scusi per l'inglese - per favore usi Google Translate:

No problem, you can ask many questions  :)

I think the best and easiest is to use constraints teacher(s)/students (set) work in an hourly interval max days per week.

Or, indeed, "massimo di ore scelte", but this is more complicated to use. Add all the activities of that teacher, select the first hour of each day, max occupied = the needed value.

Giggino

#2
Thank you very much for the answer!
Which one could lead to best performance ? I suppose the first one...
G

Liviu Lalescu

Quote from: Giggino on October 25, 2018, 09:17:46 AM
Which one could lead to best performance ?

I am not sure. Maybe "interval max days per week", but some tests would help. Maybe they are comparable with each other.

But I would definitely choose "interval max days per week", which is much easier to add, to understand by other users, and you don't need to update it if you add/remove activities to the involved teachers.


Liviu Lalescu

Prego!  :)

And another thing (does not apply to you, I suppose): the interval max days per week might not be possible if the intervals are more complex. In this case the occupy max will help. For instance if you want that from Monday first 2 hours and Tuesday 1st hour only 1 hour is occupied. So occupy max is more general.


utismetis

Anch'io uso tempo / insegnanti / un insegnante fa lezione in un intervallo in un intervallo orario massimo n giorni a settimana, agggiungi, nome insegnante, ora di inizio intervallo: la prima, ora di fine intervallo: la seconda, numero max di giorni a settimana: quelli che vuoi, peso 100%