University timetables in FET: too many electives, too few hours

Started by fetviewer, October 28, 2026, 12:46:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fetviewer



Every August, a university timetable office faces the same puzzle. The timetable must go online before students choose their electives. Students read it first, and they choose afterwards.

If you make that timetable in FET, you have probably seen this message:

QuoteCannot optimize for subgroup CSC6 Automatic Group Automatic Subgroup, because the number of hours for subgroup is 54 and you have only 5 days x 9 hours in a week.

FET is right. A student group can never be in two places at the same time. For required courses, that is exactly what you want. But when a semester points to whole lists of electives, the group needs more hours than the week has.

The quick fix is to remove the student group from the electives. FET is happy and makes a timetable in a second. But in 10 test runs on an invented university, FET then put 16 to 24 electives at the same time as a required course. It also put 42 to 57 pairs of electives at the same time.

There is a better way, with two rules that FET already has. In the same 10 test runs, no elective took the time of a required course. The electives overlapped only as much as the short week forced them to.

The full case study is here, with the invented curriculum, each step, the test numbers and two example .fet files:
https://fetviewer.com/blog/university-timetables-fet-too-many-electives-too-few-hours

A warm thank you to Liviu Lalescu and Volker Dirr for FET. It is amazing software, and it is free for everyone.
FET Viewer: view, edit, share and check your FET timetables
fetviewer.com

Liviu Lalescu

Thank you for your kind words and appreciation, fetviewer!  :)  I will try to read your blog post thoroughly a bit later.

Liviu Lalescu

@fetviewer , I appreciate your idea with 99.9% for not overlapping. But please also think alternatively of these magic constraints: activities occupy min time slots from selection, and activities max simultaneous in selected time slots!

fetviewer

Thank you very much for your time and your kind words, Liviu!

You are right: there are definitely other ways around this, and FET offers several of them. "Activities occupy min time slots from selection" and "activities max simultaneous in selected time slots" are also a very good solution here. Thank you for pointing them out!

What a nice idea for a follow-up blog post, too. We would be happy to try your two rules on the same example in the future.

And thank you again for FET.
FET Viewer: view, edit, share and check your FET timetables
fetviewer.com

Liviu Lalescu

Thank you for your kind words and appreciation, fetviewer!  :)  You are welcome!

Volker Dirr

Quote from: fetviewer on October 28, 2026, 12:46:26 PMEvery August, a university timetable office faces the same puzzle. The timetable must go online before students choose their electives. Students read it first, and they choose afterwards.

In my opinion the bug is mainly exactly in that sentence. Why not staying at this old way?
The rule "must go online before students choose their electives" is from the old days, where making the timetables takes weeks and it was difficult to communicate with the students. But the time has changed. Generating a timetable is much faster with tools like FET and it is much easier today to communicate with the students. There is no need anymore to send them a paper for the election. There is no need anymore to wait days for the replay, there is no time needed to count the selections like in the old days where humans counted 10000 votes manually. Today every students can vote in just a few minutes online and the staff can see the results immediately without counting manually.

So in my opinion the better variant is to ask students before the timetable is created. It is not critical if not all students can already answer early enough, since the timetable is too difficult and some students will get conflicts. But if (most) students can already vote before, you can probably make a timetable that satisfy much more students.

fetviewer

Thank you, Volker, for reading it and for this good point!

You are right: if most students can choose before the timetable is made, the timetable can serve them much better. Where that is possible, it is the better way.

Both ways are still in use today. Many universities publish the timetable first, and students register with it in front of them. For example, the University of Texas: "Course Schedules are published about two weeks before registration begins for a semester." (https://registrar.utexas.edu/schedules) Other universities collect the choices first, as you describe. Timetabling research even names the two: curriculum-based and post-enrolment course timetabling (survey: https://arxiv.org/abs/2201.07525).

And even with early choices, the week is often too short for every course. At universities, labs and special rooms are also not easy to share: a course can often run only in a few rooms and at a few times. Then some electives must overlap anyway.

The two rules are for exactly that case: the required courses stay free, and FET keeps the electives apart wherever it can. Early student choices can make the method even better, for example to protect the pairs of electives that many students take together.

Thank you again for FET!
FET Viewer: view, edit, share and check your FET timetables
fetviewer.com