FET Forum

FET Development => Report a Bug => Topic started by: Benahmed Abdelkrim on April 21, 2018, 07:39:36 AM

Title: check if 1 or 2 days exception are forgotten?
Post by: Benahmed Abdelkrim on April 21, 2018, 07:39:36 AM
I think that the Moroccan version needs to verify that the number of hours worked by the teacher can be distributed either in the morning or afternoon. In the opposite case, FET warns the user that the production of the schedule is impossible!, and that he should use the constraint: one day exception(or two days).

This happened with me, the program remained for hours until I realized that I forgot to use the constraint: one day exception, I stopped the program, and fixed the bug.
Title: Re: check if 1 or 2 days exception are forgotten?
Post by: Liviu Lalescu on April 21, 2018, 07:50:41 AM
Please send me the impossible file, to have it as a check.

I will think if I can solve this problem (add a check, if it is not too difficult).
Title: Re: check if 1 or 2 days exception are forgotten?
Post by: Benahmed Abdelkrim on April 21, 2018, 07:59:18 AM
Ok! here is the file. the timetable is impossible for the teacher F2
Title: Re: check if 1 or 2 days exception are forgotten?
Post by: Liviu Lalescu on April 21, 2018, 11:31:01 AM
Thank you for the report and the file! Unfortunately, it seems too complicated to care exactly for the situation. I added the file and your suggestion on my TODO list on my computer, for the future, if I'll be able to fix it.
Title: Re: check if 1 or 2 days exception are forgotten?
Post by: Liviu Lalescu on April 21, 2018, 09:45:41 PM
Your suggestion is very tricky and error prone. I might do some bugs and the file to be falsely reported as impossible before generation. That is why I prefer to postpone it.
Title: Re: check if 1 or 2 days exception are forgotten?
Post by: Benahmed Abdelkrim on April 21, 2018, 11:44:01 PM
Well no problem! :)
At this time, we'll accept manual checking, hoping we will not make the mistake again.
thank you very much for your care!