Main Menu

Min hours daily

Started by aliponte, February 28, 2010, 08:21:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aliponte

While FET is building a timetable only a part of all activities is placed. How can FET obey constraints of the kind "Min days per week for a teacher/students set", "Min hours daily for a teacher/students set" while it is working? How can FET assess a timetable with regard to these constraints as long as the timetable is not complete? Would be interesting to know how FET is proceeding.

Liviu Lalescu

#1
It is simple: FET considers all the activities which remain to be placed. In each day with less than m hours (for min m hours daily), it adds from the activities to be placed to fill the day with m hours. If not enough activities, then current stage is wrong and FET will take out one or more activities from those already placed.

Taking out activities is done in a semi-random manner.

Read generate.cpp, search for string "minhoursdaily" (third occurence will lead to students min hours daily code).

Min days per week is similar.