Min hours daily for a teacher/for all teachers can lead to endless loops

Started by Julio González Gil, January 19, 2017, 12:58:54 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Julio González Gil

Quote from: Liviu Lalescu on January 22, 2017, 09:44:10 PM
I made a small change, see the attached code. I think you can compile (just overwrite the old file). Use the "new" folder file, and in the "old" you can compare with the official FET-5.30.8.

It is a good change, but a bit not elegant, that's why I won't add it right away.

Instead of copying files, I created a patch file (attached) against FET-5.30.8, so applying is just a matter of decompressing the gz file, and being at FET folder, running:

patch -p0 < path-to-minhoursprofcheck.patch

I compiled and it is working perfectly for both constraints (constraint for one teacher and constraint for all teachers).

It shows the message:

QuoteFor teacher Prof1, the constraint min 2 hours daily is useless on day Вторник. Please make this teacher not available on this whole day, for performance and better correctness checking.

I will make another test tomorrow with the full timetable we have, by recreating the issue we had and will let you know.

Liviu Lalescu