Se due materie cadono lo stesso giorno allora devono essere consecutive

Started by Alessio, September 07, 2021, 04:26:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Alessio

Ciao a tutti! Volevo sapere se c'è un modo per dire a Fet che SE due materie distinte cadono lo stesso giorno (Es. FISICA E LABORATORIO DI FISICA) allora devono essere consecutive.

Vi ringrazio anticipatamente.

Liviu Lalescu

Scusi l'inglese:

A1 (id 1) and A2 (id 2), add min 1 days between 1 and 2, weight = 0%, consecutive if same day = true.

It might work also with A1 (id 1, Fisica), A2 (id 2, Fisica), A3 (id 3, Lab. Fisica), A4 (id 4, Lab. Fisica), you can add all the 4 in the same constraint, but you will constrain all the pairs (1,2), (1,3), ..., (3,4) to be like this.