NDresevic / timetable-generator

Timetable generator for university schedule implemented in Python using genetic algorithms.
178 stars 59 forks source link

Not an issue but a question! #1

Open Suzanne-O opened 5 years ago

Suzanne-O commented 5 years ago

Hi, I was wondering how I could adapt your code for a different schedule than the 12 hour day - really stuck. Any help would be appreciated!

NDresevic commented 4 years ago

Hi @Suzanne-O, sorry for the delay in my response, I didn't receive notification for the issue.

You can change the 12 hour schedule by changing the dimensions (only the rows, if you are fine with number of classrooms) of the timetable matrix. The number of rows in the matrix represents all possible times the classes can be held. Currently, my code is working for 12 hours per day, 5 days a week, that means that there is 12*5=60 rows in the matrix. Therefore, the number of rows should represent the total number of all possible different times.

The change should be done upon matrix initialization -> https://github.com/NDresevic/timetable-generator/blob/master/utils.py#L96, you would also need to change when classes overlap, like here -> https://github.com/NDresevic/timetable-generator/blob/master/scheduler.py#L26. But, it also depends on your input data.

Let me know how it goes, and feel free to ask more questions.

fatocan83 commented 3 years ago

Hello I want to refer your study in my thesis. Is there an article or conference paper about this study? Or just refer this study in github?

Suzanne-O commented 3 years ago

Hello I want to refer your study in my thesis. Is there an article or conference paper about this study? Or just refer this study in github?

Hi, I didn't end up using your code. Sorry!