3 consecutive afternoons

Started by Omar Ben Ali, September 29, 2015, 08:02:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Omar Ben Ali

Quote from: Liviu Lalescu on October 11, 2015, 04:17:13 PM
Hello, Omar,

I did an implementation of max two consecutive mornings/afternoons for teachers, hardcoded in FET (it does not appear in the interface, it is used only internally for all the teachers). The link: http://lalescu.ro/liviu/fet/download/custom/omar/

Unfortunately, for your input "Colege test 2.fet" (I think this was the file), I waited for 7 hours and still no solution. It seems that it is easier with teacher not available than with this constraint.

Hi Liviu,

First I would like to thank you very much for the valuable efforts you are making to help others.  I will experiment with this new version and I hope it works well.

Omar Ben Ali

Quote from: Liviu Lalescu on October 11, 2015, 04:17:13 PM

Unfortunately, for your input "Colege test 2.fet" (I think this was the file), I waited for 7 hours and still no solution. It seems that it is easier with teacher not available than with this constraint.

Maybe the problem is not solvable, so I weakened some constraint and add two rooms and it seems that it works.
I have also try with an other file easy one (College test1.fet),  but i get only one timetable with three consecutive afternoons  for teacher HG1 , and I generate for the second time and I get only one timetable with three consecutive mornings but this time for (teacher SVT2)!.

Liviu Lalescu

#32
OK, sorry, there were some bugs of mine, which I hope I corrected. Please get the new version from the same location: http://lalescu.ro/liviu/fet/download/custom/omar/ , and tell me if it works. If it works, we'll plan what to do next.

(So this version has default max 2 consecutive mornings/afternoons for all teachers.)

Omar Ben Ali

Quote from: Liviu Lalescu on October 13, 2015, 09:29:35 AM
OK, sorry, there were some bugs of mine, which I hope I corrected. Please get the new version from the same location: http://lalescu.ro/liviu/fet/download/custom/omar/ , and tell me if it works. If it works, we'll plan what to do next.

(So this version has default max 2 consecutive mornings/afternoons for all teachers.)

Ok, I try it today and I hope it works.
Thanks

Omar Ben Ali

#34
Hi
Good job Mr Liviu, this new version seems to work well. Thank you very much.
The actual version of morocco fet version is  almost perfect for the high school  called Lycée in  Morocco, ( Grades 10, 11 and 12 ). Here teacher works 21 hours max and do not work Friday and Saurday afternoon, so with the constraint max afternoon =2 and min=1 all teachers are happy. But for Midle shcool called Collège in Morocco (grade 7, 8 and 9) teachers work 24 hours per week and here we have a problem of 3 consecutive afternoons or 3 consecutive mornings and sometimes both. But in my opinion, the worst of the thing is to work 3 consecutive afternoons especially with the heat .
Ma suggestion is to left this feature optional , so it can be activate or deactivated. Maye be we can also have the possibility to activate or deactivate
1- not 3 consecutive afternoons
2- not3 consecutive mornings
3- not both.
I appreciate your help and thank you once again.




Liviu Lalescu

#35
So you mean I should add in the interface 4 constraints: teacher max 3 consecutive mornings, teachers max 3 consecutive mornings, teacher max 3 consecutive afternoons, and teachers max 3 consecutive afternoons, and the user can choose to add such constraints or not?

By "3 - not both" you mean both not 3 consecutive mornings and not 3 consecutive afternoons?

Omar Ben Ali

Quote from: Liviu Lalescu on October 15, 2015, 04:10:13 PM
So you mean I should add in the interface 4 constraints: teacher max 3 consecutive mornings, teachers max 3 consecutive mornings, teacher max 3 consecutive afternoons, and teachers max 3 consecutive afternoons, and the user can choose to add such constraints or not?

By "3 - not both" you mean both not 3 consecutive mornings and not 3 consecutive afternoons?

Yes 4 constraints :
1)teacher not 3 consecutive mornings
2)teacher not 3 consecutive afternoons
3)teachers not 3 consecutive mornings
4)teachers not 3 consecutive afternoons
and the user can choose to add such constraints or not .
By "3 - not both" I mean both not 3 consecutive mornings and not 3 consecutive afternoons.



Liviu Lalescu

#37
The constraints will be named "Teacher max two consecutive mornings" and so on.

Should I add it also for Algeria FET?

Omar Ben Ali

Quote from: Liviu Lalescu on October 15, 2015, 04:39:53 PM
The constraints will be named "Teacher max two consecutive mornings" and so on.

Should I add it also for Algeria FET?

"Teacher max two consecutive mornings" an so on ... is a good name.

I don't know if it would be useful for Algeria FET.

I will ask some Algerian members.

Many thanks.


Liviu Lalescu

Quote from: Omar Ben Ali on October 15, 2015, 06:12:06 PM
I don't know if it would be useful for Algeria FET.

I will ask some Algerian members.

Thank you!

Liviu Lalescu

I made it. It is not tested yet, and I did not compile for Windows. Just if you can compile and want to test, get it from http://lalescu.ro/liviu/Backup-fet/morocco/ .

Tomorrow I will test and put the Windows executable, because now it is too late.

Omar Ben Ali

#41
Quote from: Liviu Lalescu on October 15, 2015, 09:02:30 PM
I made it. It is not tested yet, and I did not compile for Windows. Just if you can compile and want to test, get it from http://lalescu.ro/liviu/Backup-fet/morocco/ .

Tomorrow I will test and put the Windows executable, because now it is too late.

with lubuntu running on my old pc, the compilation will take a long time. So I prefer to wait until tomorrow to test the windows version.
thank you

Liviu Lalescu

I added the version Morocco9 and Algeria9. See the "Custom versions" of the FET homepage (the usual download location for Morocco and Algeria). Please let me know.

Omar Ben Ali

Quote from: Liviu Lalescu on October 16, 2015, 02:00:26 PM
I added the version Morocco9 and Algeria9. See the "Custom versions" of the FET homepage (the usual download location for Morocco and Algeria). Please let me know.

The distribution of afternoons/mornings , with this new version, is well balanced. No 3 successive afternoons and no 3 consecutive mornings.
Thank you very much.
For Algeria Fet, I have start a topic in the Arabic forum
http://lalescu.ro/liviu/fet/forum/index.php?topic=2275.0
but till now, no response.

Liviu Lalescu

Quote from: Omar Ben Ali on October 16, 2015, 06:44:58 PM
For Algeria Fet, I have start a topic in the Arabic forum
http://lalescu.ro/liviu/fet/forum/index.php?topic=2275.0
but till now, no response.

Thank you! I added the new constraints also for Algeria - it does not hurt anyway.