Optaplanner最佳得分零指针异常

时间:2016-11-28 09:24:56

标签: optaplanner

.d.ts

虽然分数是在步骤1和2中计算的,但为什么我得到最佳分数的空指针异常。

ERROR MSG

14:46:27.239 [main] INFO  o.o.core.impl.solver.DefaultSolver - Solving started: time spent (155), best score (3uninitialized/-3hard/-3soft), environment mode (REPRODUCIBLE), random (JDK with seed 0).
14:46:27.320 [main] DEBUG o.o.c.i.c.DefaultConstructionHeuristicPhase -     CH step (0), time spent (237), score (0hard/-2soft), selected move count (3), picked move (Requests [id=4, res=null] {null -> Resources [Name=Doc2, Id=0002]}).
14:46:27.331 [main] DEBUG o.o.c.i.c.DefaultConstructionHeuristicPhase -     CH step (1), time spent (248), score (3hard/-1soft), selected move count (3), picked move (Requests [id=5, res=null] {null -> Resources [Name=Doc2, Id=0002]}).
14:46:27.347 [main] DEBUG o.o.c.i.c.DefaultConstructionHeuristicPhase -     CH step (2), time spent (264), score (5hard/0soft), selected move count (3), picked move (Requests [id=6, res=null] {null -> Resources [Name=Doc2, Id=0002]}).
14:46:27.348 [main] INFO  o.o.c.i.c.DefaultConstructionHeuristicPhase - Construction Heuristic phase (0) ended: step total (3), time spent (264), best score (null).

1 个答案:

答案 0 :(得分:0)

这个错误几年前在https://issues.jboss.org/browse/PLANNER-207修复了。