massimo 5 ore o 4+buco

Started by otwist, October 02, 2011, 12:57:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

otwist

Come si può richiedere di far svolgere massimo 5 ore consecutive oppure massimo 4 ore ma con un'ora buca. vorrei evitare di far entrare i colleghi alle 8 e farli uscire alle 14.

Liviu Lalescu

Usa il nuovo vincolo "activities occupy max time slots from selection" ("attivita occupano massimo tiempi di selezione"), n_giorni (6?) vincoli per ogni insegnante, con 2 tiempi: prima ora di questo giorno, e ultima ora di questo giorno, massimo occupato = 1.

Si prega di informare di risoltato, presto, perche probabilmente in ~1-2 settimane la nuova versione va lanciata.

Vedi Snapshots sectione qui nel' forum o dirrettamente http://lalescu.ro/liviu/fet/download/test/

utismetis

Ciao otwist,
n° max ore giornaliere per tutti gli insegnanti = 5

otwist

Thanks Liviu, I'm downloading the beta version and I'll let you know!
Per utismetis: con il vincolo che suggerisci potrei avere una giornata fatta con 2-buco-3 ore per un totale di impegno di 6 ore anche se il buco non e` lavorativo. Vorrei evitare questa situazione ma consentire la giornata di 5h senza buco.

Liviu Lalescu

Forse puoi mi mandare il file, prima di aggiungere le nuove vincoli, e dopo. Mandare qui o privato sul' email. Vorrei comparare.

otwist

Hi again, Liviu,
I tried to use the constraint and as far as I can understand it  allows me to specify preferred time slots for activities. On the other hand I would like to have all my teachers stay in school for a maximum of 5 hours (out of 6 for students): I mean if one arrives for their first working hour at 8 o' clock, the last working hour should end at most at 13 (with possible breaks during the day). I can't figure out how to use the constraint you have provided to do that... Could you help? I can send you the fet file but I haven't yet generated a  timetable (still "debugging" activities) !

Liviu Lalescu

#6
QuoteHi again, Liviu,
I tried to use the constraint and as far as I can understand it  allows me to specify preferred time slots for activities. On the other hand I would like to have all my teachers stay in school for a maximum of 5 hours (out of 6 for students): I mean if one arrives for their first working hour at 8 o' clock, the last working hour should end at most at 13 (with possible breaks during the day). I can't figure out how to use the constraint you have provided to do that... Could you help? I can send you the fet file but I haven't yet generated a  timetable (still "debugging" activities) !

Scusi per scrivere in inglese nel' Italiano forum.

Yes, you can use the new constraint "a set of activities occupies max time slots from selection". But you have to add a lot of constraints: n_days_per_week * n_teachers. For teacher T: activities = all activities of teacher T. For day 1: two time slots, first slot of day and last slot of day. Max occupied = 1. So, teacher T will: 1) not work in first and not work in last slot of day 1, 2) work in first slot of day 1; or 3) will work in the last slot of day 1. But not both.

To add constraints easier, you can just modify the time slots and press "Add constraint" for each day for the same teacher.

I'll do a test myself, on some of the official Italian examples, and attach the file here, so you get the exact idea.

otwist


Liviu Lalescu

#8
Le nuove vincoli non sono testate intenso. Puo contiene di errori. Allora, si avisa di prima generare un orario senza questo nuovo vincolo, e poi aggiungerla. In questo modo, troviamo li errori nelle nuove vincoli, se ci sono.

Liviu Lalescu

#9
Ho modificato il ufficiale essempio Italia-2007-simple, aggiungiando 6 vincoli per ogni insegnante, credo che ~30 insegnanti. Durata di aggiungere tutti i ~6*30=180 vincoli dal' interfacia: ~15 minuti.

Ho rimosso qualche vincoli che fissano le attivita in un modo impossibile per le nuove vincoli.

Sembra che il nuovo vincolo funziona molto bene.

Vedi file di attachment.

Si prega altri utenti di fare come me sull' loro file, e mandare il file (se e possibile), vorrei verficare per piu file di testi.

utismetis

Ciao,
aggiungi n° max ore buche al giorno = 1 e ogni insegnante fa max 5 ore con o senza un buco: tutti i miei insegnanti sono così tranne quelli di educazione fisica che possono fare anche 6 ore al giorno.