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 1 Guest are viewing this topic.

Liviu Lalescu


Liviu Lalescu

#16
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.

Liviu Lalescu

I have two solutions to your original file, attached.

scibo@tin.it

Thanks a lot, especially for your settings tips.... Have a good night

scibo@tin.it

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? 

Liviu Lalescu

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.

scibo@tin.it

Max 6 Hours at school but five lessons and 1 hole

scibo@tin.it

 If it is impossible you can make it easier for sure

Liviu Lalescu

Quote from: scibo@tin.it on Today at 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.

scibo@tin.it

What max hourly span means? And how can ensure that the maximum staying at school must be 6 hours (5 + 1 hole)?

Liviu Lalescu

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!