Add Rules
Add Hard Constraint
Existing Hard Constraints
- All 40 weekly period slots per section must be filled — there must be no free periods for any class
- Grade 4 and Grade 5 Science classes must be in the Science Lab
- ICT classes must be held in the Computer Lab
- Music classes must be held in the Music Room
- PE classes must be held in the Sports Hall
- Art classes must be held in the Art Room
- Every section (1A, 1B, 2A … 5B) must have exactly 8 periods scheduled every day, Monday to Friday
- Each class section must receive its full allocation of weekly periods — no empty slots allowed
- A teacher cannot exceed their maximum periods per day
- Teachers can only be scheduled on their available days and periods
- No room can be used by two classes at the same time
- No teacher can be assigned to two classes at the same time
Add Soft Constraint
Existing Soft Constraints
- Spread Arabic periods across the week — no more than 1 per day per section
- Parallel sections (A and B) of the same grade should not have the same specialist room at the same time
- Science for Grades 1-3 should stay in the homeroom — no lab required
- Each section should have at least one English and one Math period every day
- Islamic Studies should be scheduled in the first or second period
- Try not to schedule PE as the first period of the day for junior grades (1-2)
- Minimise room changes for the same section throughout the day
- Avoid giving a teacher more than 3 consecutive periods without a break
- Art, Music, and PE should be in afternoon periods (5-8) when possible
- Schedule English and Math in morning periods (1-4) when possible
- Avoid scheduling the same subject in consecutive periods for a section
- Distribute teacher workload evenly across the week