FET Forum

FET Support (International) => Italian / Italiano => Topic started by: scibo@tin.it on September 08, 2025, 11:27:50 AM

Title: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 08, 2025, 11:27:50 AM
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


Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: Liviu Lalescu on September 08, 2025, 11:59:50 AM
I generated on 8 threads and I obtained in about 3 minutes a solution. I attach it.
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 08, 2025, 02:50:51 PM
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?

Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: Liviu Lalescu on September 08, 2025, 02:55:39 PM
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).
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 08, 2025, 03:07:48 PM
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?
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: Liviu Lalescu on September 08, 2025, 03:14:19 PM
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.
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 08, 2025, 03:28:10 PM
I found on the internet that my i7 has 12 cores. So how many timetables I can generate with multiple generation option?
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: Liviu Lalescu on September 08, 2025, 03:57:47 PM
You can generate on 12 FET threads. The first thread to finish will be the first timetable.
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 08, 2025, 04:01:14 PM
THANKS
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 08, 2025, 04:30:29 PM
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?

Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: Liviu Lalescu on September 08, 2025, 04:48:46 PM
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.
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 08, 2025, 05:08:30 PM
Perfect
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 08, 2025, 06:46:52 PM
Liviu, I'm very sorry. Could you please try to close this timetable? i can't succeed ...
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: Liviu Lalescu on September 08, 2025, 06:53:15 PM
No problem, Scibo, I'll try. Should I only try on your exact file, or may I make it easier on some constraints?
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 08, 2025, 06:57:11 PM
Could you try both?   :-)   
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: Liviu Lalescu on September 08, 2025, 06:59:26 PM
OK, I will try both :)
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: Liviu Lalescu on September 08, 2025, 07:27:53 PM
I corrected the max gaps per day and per week for the teachers, and I obtained a timetable. I attach the files.

For these 6 teachers: Ingria S, Grasso S, Finicchiaro R, Paterno C, Virgilio E, and Lanzafame Alfredo I put 3, 3, 6, 3, 3, 3 max gaps per week, and the rest of the teachers have max 2 gaps per week.

For Finocchiaro R (I think) I made max gaps per day = 2, and the rest of the teachers have max 1 gap daily, and some have max 0.

EDIT: The max gaps per day is 1 for everybody, I forgot to deactivate the constraint. But this way the solution is even better.

EDIT 2: I will let it overnight to generate, on your unmodified file. I'll tell you in the morning if I got a solution.
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: Liviu Lalescu on September 08, 2025, 08:33:11 PM
I have two solutions to your original file, attached.
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 08, 2025, 08:57:04 PM
Thanks a lot, especially for your settings tips.... Have a good night
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 10, 2025, 04:43:32 PM
Hello Liviu. I had to do some adjustments but now my timetable can't find a solution.  Could you try with your super powerful PC if you can find a solution? 
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: Liviu Lalescu on September 10, 2025, 04:46:13 PM
Hello, Scibo,

I will try to generate (but I think your computer is better :) ). If it is impossible, should I try to make it easier?

I asked you previously if your activities max hourly span is correct, and what is it for, but you did not answer.
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 10, 2025, 05:07:07 PM
Max 6 Hours at school but five lessons and 1 hole
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 10, 2025, 05:09:23 PM
 If it is impossible you can make it easier for sure
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: Liviu Lalescu on September 10, 2025, 05:28:39 PM
Quote from: scibo@tin.it on September 10, 2025, 05:07:07 PMMax 6 Hours at school but five lessons and 1 hole

Do you mean you used activities max hourly span to ensure this? This would be a misunderstanding. I tried deactivating all these constraints and it solves easily. I attach the first solution and my modified file. This activities max hourly span constraint means a totally different thing.
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: scibo@tin.it on September 10, 2025, 05:32:42 PM
What max hourly span means? And how can ensure that the maximum staying at school must be 6 hours (5 + 1 hole)?
Title: Re: AIUTO. L'orario non si chiude per 1 attività
Post by: Liviu Lalescu on September 10, 2025, 05:39:36 PM
Max hourly span is a kind of peculiar constraint, requested by a user, and I didn't quite like it, but it is needed in some cases. Say (A1, A2, A3), max hourly span = 2 -> then these 3 activities can be on any days, but the hours they occupy must be maximum 2 continuous if we make abstraction of the days, like: A1->Monday 1, A2->Tuesday 2, A3->Friday 1. A3 cannot be on Friday 3, because then the hourly span would be 3.

You should add teachers max 5 hours daily and teachers max 6 span per day.

I apologize!