FET to generate Trimester TimeTable

Started by imran, August 14, 2010, 02:33:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

imran

Hi,
The maximum activities per week required is 48. shall i add 48 tabs or make it 24 tabs and add activities twice @ runtime.

Thanks
Imran

Liviu Lalescu

#16
QuoteHi,
The maximum activities per week required is 48. shall i add 48 tabs or make it 24 tabs and add activities twice @ runtime.

Thanks
Imran

Add 48 tabs.

I would make these changes myself, but I am so afraid that I might mix them with the official version. I am sorry. But I hope you'll manage.

imran

Hi,
   Thanks for your instant support. Its absolutely fine, I will try to make changes in the code. If i stuck somewhere i will come to u.

Regards
Imran


Liviu Lalescu

You may need to modify also src/engine/modifyactivityform.cpp and src/engine/modifyactivityform_template.ui, if you intend to modify the activities.

jakub1982

QuoteMaybe it is possible, then.

You will need to increase in FET the number of days per week (I think you have more than 35) and recompile. Then, you need to enter the data and generate. I will try to help you with advice on specific problems.

I think I found something that appears to be a bug. It manifests when I set "max gaps per day for all teachers" = 0 and try to generate the timetable. When run in terminal the program exits with a message: "Bus error".

My system is MacOS 10.6.

I run a version of fet that has been customized to accept 46 days in a week, exactly the way you described above.

Any suggestions?

Liviu Lalescu

#20
Please send me your input file and, if possible, a random seed for which you get this error.

Then, try to recompile FET from the beginning ("make distclean", "qmake", "make") and try again to generate.

MAX_DAYS_PER_WEEK is exactly 46?

Maybe you can give more details: FET crashes immediately or after a while?

jakub1982

QuotePlease send me your input file and, if possible, a random seed for which you get this error.

Then, try to recompile FET from the beginning ("make distclean", "qmake", "make") and try again to generate.

MAX_DAYS_PER_WEEK is exactly 46?

Maybe you can give more details: FET crashes immediately or after a while?

Yes, MAX_DAYS_PER_WEEK is exactly 46, and this is the only change I made to the original code. I have emailed you the files with terminal output, and the input file (sorry, I prefer not to post this data on the internet). 

The random seed is: X: 1283266493, Y: 473803072.

Thank you for your interest, I really appreciate it.

Liviu Lalescu

I could not replicate this problem on my computer (GNU/Linux), so:

1) it is a temporary problem on your computer, or
2) it is a permanent problem on your computer.

Please try this: src/engine/generate.cpp, line 184, replace with:
             return int(a);

Recompile and tell me if the problem is gone.
If it is gone, please revert to original (modify file again with return a; and make sure you modify this file, so that the compiler will recompile it, so do not use the original file, which has a lower timestamp). Recompile (make sure the compiler will show that it is recompiling this file. Then, check the problem again.

jakub1982

#23
QuoteI could not replicate this problem on my computer (GNU/Linux), so:

1) it is a temporary problem on your computer, or
2) it is a permanent problem on your computer.

Please try this: src/engine/generate.cpp, line 184, replace with:
             return int(a);

Recompile and tell me if the problem is gone.
If it is gone, please revert to original (modify file again with return a; and make sure you modify this file, so that the compiler will recompile it, so do not use the original file, which has a lower timestamp). Recompile (make sure the compiler will show that it is recompiling this file. Then, check the problem again.

I am sorry, but these suggestions did not solve the problem. I still get the same "Bus erros" in roughly the same moment.