School Timetabling Constrains

40 views
Skip to first unread message

Arlin zhang

unread,
Oct 19, 2023, 9:24:23 AM10/19/23
to OptaPlanner development
Hello,

I am using optaplanner for school timetabling. I can define some of the constrains directly. These constrains are always global, apply to all lessons. But I encounter some requirements that seems can not be directly solved. A teacher don't want to have class from 8-10 or 16-18 because of picking up kids from school. Or a couple can't have class at the same time since they need to take care of their kids. These situations happens in some cases. And more generally, some teachers can not teach at 8-10. How I can solve this in a constrains? Do I need to create a teacher class or something?

Thank you very much for your help.

Arlin

muhammed hassan

unread,
Oct 25, 2023, 3:13:37 AM10/25/23
to OptaPlanner development
Hello Arlin,

I think you can collect those invalid combinations and add them to your ConstraintProvider class as hard or soft constraints.

Best,
Mohamed
Reply all
Reply to author
Forward
0 new messages