0

我正在尝试使用 optaplanner 5.5.0 为收银员制定时间表。计划实体与护士排班示例 (shiftAssignment) 相同,但计划变量(员工)可以为空(可以有未分配的班次)。所以 TS 工作得很好,但是构造启发式(第一次拟合)什么都不做(因为在我的情况下,我认为所有空值的解决方案是可行的)。我应该怎么做才能使构造启发式工作?

4

2 回答 2

0

Up to at least 6.0.0.Beta2, the construction heuristics don't support @PlanningVariable(nullable=true) (which is new since 6.0.0.Beta1) yet.

I am working on refactoring the construction heuristics so they are based on the Selector architecture and the placer stuff. This will yield many benefits for the CH, including nullable=true support.

于 2013-05-21T09:33:59.253 回答
0

6.0.0.CR1构造启发式开始支持可为空的变量。它已经发布,请参阅 optaplanner.org。

于 2013-08-06T11:24:36.220 回答