rule "room conflict"
when
Lesson($id : id, $timeslot : timeslot , $room : room)
Lesson(id != $id, timeslot == $timeslot , room == $room)
then
scoreHolder.addHardConstraintMatch(kcontext, -1);
end
你没有。
正如Lukáš在评论中指出的那样,OptaPlanner没有DMN支持。
另一方面,常规的开源 Drools 确实支持 DMN,但没有内置的约束概念。