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,
Can we use FET to generate Time-Table for a complete Trimester, i mean we need to have a timetable based on dates. ( Not weekly based).
I appreciate your feedback.

Thanks in advance

Liviu Lalescu

#1
The answer is probably no.

In FET, you can have 35 days per "week". You can even increase this value to 3*31 (=93), if you modify the program. Then, you may have what you need. But there will be very many activities and the timetable from week to week will be very different, and there may be other problems.

imran

Hi,
Thanks for ur quick response. Yes the timetable from week to week will be very different.
Attached is the timetable sheet.
Would you plz  help me to generate the automated timetable like the file attached.
Thanks in advance

Liviu Lalescu

Maybe 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.

imran


imran

Hi,
Can u please help me out to change the days per week in source code and recompile.
I hv downloded
a) fet-5.14.1 source code
b) Qt Creator 2.0.0 for windows

Thanks in advance
Imran

Liviu Lalescu

QuoteHi,
Can u please help me out to change the days per week in source code and recompile.
I hv downloded
a) fet-5.14.1 source code
b) Qt Creator 2.0.0 for windows

Thanks in advance
Imran

Modify file fet-5.14.1/src/engine/timetable_defs.h, line 132, instead of 35 put how much you need.

You need Qt 2010.02.1 [4.6.2]. See README file for more details how to compile (open the README file with a text viewer). Qt Creator I think is not enough, you need Qt and MinGW.

Compile FET (modified as above).

Then, create a .fet file, save it. Open it with a text editor and in <Days_List> section, make the Number as you need (nd), and add nd days, like <Name>name_i</Name>. This trick is because the dialog for days still has maximum 35 days. But it won't affect you.

Open the .fet file. Don't enter the days of the week dialog, because FET will crash. Just do everything else than opening the days of the week dialog.

That's it.

Let me know if you succeed with the timetable, please.

I'll try to help some more if you have problems.

imran

The terms used in the PDF attached are
a) Days ( 8th January 2010, Friday) -
b) hours (I or 09.00-09.45)
c) Subjects ( Missionary Catechesis, Vi, ICH)
d) Courses ( M.Th, B.Th II, ....)
e) Teachers ( Fr. Maurie Barnes SDB, TPu, JT)
f)  No Rooms
g) Teachers- 2 types a) Visiting b) Resident
    Visiting professors should hv more priority then resident

How could we define all these in FET .

Thanks in advance
Imran

Liviu Lalescu

a), b), c), e) and f) are the same in FET.

d) are FET students.

about g) - I don't know what do you mean. Maybe you need to add some constraints, with higher weight for visiting teachers. Or do you mean these should be earlier in the timetable? Maybe use constraints activity(ies) preferred starting times, or a combination of multiple constraints of this type - you can use different weights and same activity for more constraints.

imran


imran

Hi,
Successfully added teachers,subjects and courses.
How could i modify "split into ...activities per week to 24 or more, coz it is not allowing to change more than 10.

Thanks
Imran khan

Liviu Lalescu

QuoteHi,
Successfully added teachers,subjects and courses.
How could i modify "split into ...activities per week to 24 or more, coz it is not allowing to change more than 10.

Thanks
Imran khan

More variants:

1) Difficult for a person who does not know FET sources: modify file src/interface/addactivityform.cpp and src/interface/addactivityform_template.ui. I can give more details if you want.

2) Not perfect: if you want to split into 24, simply split into 10, then add another split into 10, then another split into 4. It is not nice, because you won't see the exact structure in activities form. Also, you need to add a constraint min days between activities, with all 24 components, and remove the initial 3 min days between activities constraints.

3) Perfect, but a bit difficult: add one activity split into 3 (or any number between 2 and 10). Save file. See how FET wrote the activity(ies) in the Activities_List section and the constraint min days between activities in the section Time_Constraints_List. Write instead an activity split into 24 and the corresponding constraint.

imran

Yes plz. I will try to do modification in code.

Thanks
Imran

Liviu Lalescu

QuoteYes plz. I will try to do modification in code.

Thanks
Imran

addactivityform.cpp:
- lines 41 to 60 - add something similar with what is already there
- line 131 - instead of 10, put 24
- line 445 - instead of 10, put 24
- line 798 - instead of 10, put 24
- line 802 - instead of 10, put 24

addactivityform_template.ui - open it with Qt Designer.
- select with click the tab with 1 to 10. Then right click, insert tab.
Select with Ctrl+Click the three widgets: Duration, 1 and Active,
right click, Copy, then Paste them in the new tab. Do that
24-10 times=14 times. Click on each added widget, set the correct name in
Qt Designer (Property->QObject, objectName).

Tell me if you have problems.

imran