Same starting time activities for the same teacher

Started by Ritvan Karachotza, June 10, 2010, 05:29:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ritvan Karachotza

Hi,

I want to make some changes in fet-5.13.3 allowing same starting time activities for the same teacher.  If it is possible, can you help, please, where (in which files) to do theese changes and what exactly must be changed.

Thank you

Liviu Lalescu

QuoteHi,

I want to make some changes in fet-5.13.3 allowing same starting time activities for the same teacher.  If it is possible, can you help, please, where (in which files) to do theese changes and what exactly must be changed.

Thank you

You mean you want to relax the basic compulsory time constraints for teachers? To allow a teacher to have more activities at the same exact time (day+hour)? This is complicated, as it is a fundamental constraint and the code is based on the teachers having only one activity at a certain time.

In generate.cpp, you need to deactivate the test in line 3209 (comment lines 3208-3231). If you try to run this modified code, you'll get a lot of assertions failed. In generate.cpp, at the beginning of the file, probably, you need to allow more activities for a teacher at a time in some subroutines. Also, in timeconstraint.cpp, you will need to soften the basic time constraint fitness calculation. Also, in solution.cpp, getTeachersTimetable, you need to relax the basic constraint (line 472).

Try to follow each assertion failed and modify the code so that the assertion will be solved.