← All docs
🧭

How schedU builds a timetable

5 min read

schedU treats your timetable as a constraint-satisfaction problem: you describe the rules, and the engine searches for an arrangement that satisfies every hard constraint while optimizing the soft ones.

Hard vs. soft constraints

Hard constraints must never be violated; soft constraints are preferences the engine optimizes toward.

  • •Hard: no staff member or room double-booked, period counts met, electives run in parallel.
  • •Soft: balanced staff workloads, minimal gaps, subject spread across the week.

Period allocation

For each class, schedU distributes the required periods per subject across the week, avoiding back-to-back repetition where possible and respecting any timing rules you set (e.g. no PE in the first period).

Staff allocation

Staff are matched to subjects by expertise and assigned with workload balancing, so no one is overloaded and continuity rules (the same staff member across a year group) are honored.

💡 Regenerating is cheap - change a constraint and rebuild the whole timetable in seconds.

Why here?

In the timetable, turn on Edit and open any lesson, then Why here?. The class’s week shows each period the lesson could take: free (move it there) or another lesson’s (swap the two), and for every other period the reason it cannot, such as the staff member teaching another class then, a room already taken, or the subject already on that day.

💡 It reads the same rules the timetable keeps everywhere, on each class’s own bell, so a move it offers never makes a clash.

Pinned lessons

In the timetable, turn on Edit, open a lesson and tick Pin this lesson here. A pinned lesson keeps its day, period, staff member and room through every regeneration and every other arrangement; the rest of the week is planned round it.

💡 Only a single lesson with one staff member can be pinned. A parallel group or a double period is placed as a unit with others.

Regenerating with least change

Regenerate keeps lessons where they are when they still fit (you can turn this off for a fresh timetable). Only what the new plan changes moves, and lessons you moved by hand stay where they can. On a full week of 400 lessons, one staff member no longer free for one period moved 4 lessons.

Other arrangements of the same plan

Two timetablers given the same plan would make two different timetables, both correct. After generating, Compare arrangements builds others and scores each on what people notice: empty periods in a class’s day, subjects spread across the week, days opened by the class teacher, the heaviest day and the same subject in the same period all week. Use this one keeps it; each arrangement comes out the same every time it is asked for. When your teachers’ lessons are kept together (below), free periods stuck between lessons are counted too.

When each subject is taught

In Resources, Subjects, each subject has a When choice beside its venue: any period, not first period, not last period, not first or last, first half of the day, or second half. The rule is read on each class’s own day: a class that goes home after Period 6 has Period 6 as its last, and a class on a staggered bell has its own halves.

The engine keeps the rule in every pass that places or moves a lesson. If a rule leaves a lesson nowhere to go, the lesson is still placed, and after generating schedU names each one that sits outside its rule, so you can keep it, loosen the rule, or free a period. Why here? gives the rule as the reason a period is closed to the lesson.

A teacher’s day

Each teacher’s lessons are spread evenly over the week: a last pass trades two lessons of one class across days when that evens out both teachers’ weeks, and keeps every other rule while it does.

In Settings, A teacher’s day, you choose how lessons sit in each day:

  • •Spread through the day (usual for most institutions): free periods fall between lessons, for marking and preparation, and someone is free at most hours to cover.
  • •Keep each teacher’s lessons together: as few free periods between lessons as the week allows, at most four in a row. For institutions whose staff leave when their lessons end.
  • •Most lessons in a row: no limit, or 3, 4, 5 or 6. A break in the bell ends a run. A run nothing could shorten is named after generating.
Ready to try it?Start freeTalk to us →