Cannot find the issue preventing the generation

Started by paolo_d, June 14, 2024, 06:52:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paolo_d

Please, can you help me with this?
I have updated the old timetable with new classes and new teachers  using the same parameters, but it no longer works.
Maybe it's something really easy, but I'm absolute newbie on FET.

Any hints?
Thank you
Paolo

Vangelis Karafillidis

The problem seems to be the constraint "max hours daily" for teachers. If you set max hours = 6 (instead of 5), the timetable solves really fast. If you use two constraints, i.e. one constraint with max hours = 5 and weight 99.99% and another constraint with max hours = 6 and weight 100%, the timetable is solvable again. It just needs a little more time.

Vangelis.


paolo_d

Dear Vangelis

thank you so much for the quick reply.
The problem is that legally we cannot stay in the classroom for more than 5 hours/day.
We will try to figure it out.

It's very likely that I will bother you again.

Have a good weekend
Paolo

Vangelis Karafillidis

#3
The problem seems to be the teacher Romeo. His activities have duration = 2. Is it possible to change it? Otherwise, I think he should have max hours 6 at least for one day... (edited) since he has 22 hours per week.

Vangelis.

Liviu Lalescu

#4
Vangelis, I don't understand your argument. There are 5 days, and max 5 hours per day means that the teacher can have even 25 per week.

Silly me, Vangelis told me that this teacher cannot have 5 hours per day, because he has only duration 2 activities :)

I'll add Vangelis' suggestion to make a test for this in the TODO.