AIUTO. L'orario non si chiude per 1 attività

Started by scibo@tin.it, September 08, 2025, 11:27:50 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

scibo@tin.it

Salve. Qualcuno potrebbe controllare il mio file???  Non rieasco a capire perchè l'orario non si chiude e qual è il vincolo che impedisce al mio orario di funzionare. C'è sempre l'attività dello stesso insegnante che non riesce a trovare spazio .... Allego il file affinchè qualcuno possa verificarlo.

Grazie a chi vuole darmi suggerimenti



Liviu Lalescu

I generated on 8 threads and I obtained in about 3 minutes a solution. I attach it.

scibo@tin.it

Thank you Liviu so much. I wonder why I couldn't get it? There was any conflict or something wrong on settings? Any suggestions for the future?


Liviu Lalescu

You are welcome, Scibo! It is your original file, I just generated on 8 threads and the chances are better to finish successfully. If you have 8-core processor, generate multiple on 8 threads. I have 8 cores and 16 threads (Ryzen 2700X), and I usually generate on 8 threads in FET multiple.

I saw these in your file:

1) Teachers max 1 gap per day and a teacher had particularly max 2 gaps per day. This teacher's constraint is useless. You might need to add 1 for each teacher (with a single click in FET) and modify for that particular teacher to 2 instead of 1.

2) I don't know why you used activities max hourly span (of course, if you know what this constraint does, it is OK).

scibo@tin.it

Thanks a lot! So with a i7 Intel Core how many threads you can suggest in order to speed up or to have more chances?

Liviu Lalescu

FET knows the number of threads, for instance in my case 16, and the maximum allowed threads to generate multiple with FET on my computer is 16. But this 16 is not the number of cores, which is 8. You need to read what is cores and what is threads of a processor. @Volker Dirr can answer better.

Probably you have 4, 8, or 12 cores, and FET will allow maximum 8, 16, or 24 threads, respectively. You need to search your exact processor on the internet and read the specifications. I would advise you to use the number of cores, but Volker might prefer to use the number of threads.

If unsure, use maximum FET allows, or half of them if the CPU temperature gets too high with full.

scibo@tin.it

I found on the internet that my i7 has 12 cores. So how many timetables I can generate with multiple generation option?

Liviu Lalescu

You can generate on 12 FET threads. The first thread to finish will be the first timetable.


scibo@tin.it

I've been trying again and again with the same file but it doesn't work except for yours. How can I manage the seed? It might help?


Liviu Lalescu

If you input the exact same random seed and generate single on the same file, the result will be duplicated. So, you can duplicate my generation, if you would like.

But in usual generations please keep the seed different.

You can try generate multiple with time limit of 10 minutes. And generate 1000 timetables.


scibo@tin.it

Liviu, I'm very sorry. Could you please try to close this timetable? i can't succeed ...

Liviu Lalescu

No problem, Scibo, I'll try. Should I only try on your exact file, or may I make it easier on some constraints?

scibo@tin.it