如何将"drools"的约束转化为"dmn"(决策模型和符号)


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,但没有内置的约束概念。

最新更新