impedire che due materie siano nello stesso giorno

Started by utismetis, June 19, 2019, 09:36:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

utismetis

Buongiorno,
come posso impedire che due materie siano nello stesso giorno?
Grazie

star73

Puoi fare in modo che il numero minimo di giorni tra un insieme di attività sia almeno 1.
Vai nei vincoli di tempo / Attività / Numero minimo di giorni tra un insieme di attività, poi clicca su "Aggiungi" e nella finestra che si apre scegli le attività che non devono capitare nello stesso giorno. Nella parte bassa della finestra puoi scegliere quanti giorni minimo devono intercorrere tra due attività. Ciao
Arsenio

Est

Vorrei evitare che due materie (inglese e spagnolo) siano nello stesso giorno, ma con la soluzione proposta da star73 il numero di combinazioni da aggiungere come vincoli è enorme (per ogni classe ci sono 3 ore di inglese e 2 di spagnolo, quindi devo incrociare ogni ora di inglese con le due di spagnolo per un totale di 6 vincoli per classe che moltiplicato per le 14 classi fanno 84 vincoli). è possibile aggiungere lo stesso vincolo fra materie invece che fra attività? Oppure fra insegnanti?

I would avoid 2 subject in the same day (english and spanish must be not in the same day). With the solutions proposed by star73 the numer of combinations to add as constraints is too big (each room have 3 h of english and 2 of spanish, so I have to state each hours of english have at least one day with each hour of spanish, this lead to 6 constraint per room which multiplied per 14 room makes 84 constraints). It is possible to have the same constraint referred to two subjects? Or two teachers?

Liviu Lalescu

I will show you some possible solutions. You could:

1) Add a single constraint min 1 days between all activities of English and Spanish of a single students set.

2) Add two tags: En, Sp, and two constraints students min gaps between ordered pair of activity tags, min gaps = a very large value, from En to Sp and from Sp to En.

Please let me know if you succeed.

Est

Hi Liviu,
I used the second option you proposed and it works. Thank

Ciao Liviu,
ho usato la seconda opzione che mi hai proposto e funziona. Grazie

Liviu Lalescu