我已经设置了两个本地搜索阶段的求解器,它工作正常。然而,曾经有一段时间的第二阶段并没有使在约1分钟的任何举动,如在日志下面显示:Optaplanner - 在1分钟内总共进行本地阶段0步骤
阶段1结束,...
2016-05-07 14:14:55,847 [main] DEBUG LS step (10069), time spent (593822), score (0hard/-81medium/5395020soft), best score (0hard/-80medium/5393781soft), accepted/selected move count (5/48), picked move (CL [cID=1147576, id=27246 => SL [id=49, sID=E942648]] <=> CL [cID=1133912, id=14716 => SL [ id=7, sID=E942592]]).
2016-05-07 14:14:55,858 [main] DEBUG LS step (10070), time spent (593833), score (0hard/-81medium/5395390soft), best score (0hard/-80medium/5393781soft), accepted/selected move count (5/18), picked move (CL [cID=1142322, id=22533 => SL [ id=51, sID=E943251]] <=> CL [cID=1134362, id=14118 => SL [ id=49, sID=E942648]]).
2016-05-07 14:14:55,858 [main] INFO Local Search phase (1) ended: step total (10071), time spent (593833), best score (0hard/-80medium/5393781soft).
2016-05-07 14:16:05,042 [main] INFO Local Search phase (2) ended: step total (0), time spent (663017), best score (0hard/-80medium/5393781soft).
2016-05-07 14:16:05,042 [main] INFO Solving ended: time spent (663017), best score (0hard/-80medium/5393781soft), average calculate count per second (2771).
之前,有没有在过去的任何改善脚步。第二阶段开始,但在一分钟内完成了0步。解算器因此达到了允许的最大时间而结束。
我感到有点惊讶,第二阶段根本没有采取任何措施。这是否仅仅是因为它无法找到更好的分数?
我想这只是因为没有找到更好的移动 - 如果我将日志记录级别设置为跟踪,我应该能够看到移动。 – oy321
什么是解算器配置?支持2个本地搜索阶段,但不常见。 –
Re。本地搜索阶段的数量 - 我认为没有限制吗? – oy321