Optaplanner - 局部阶段0步骤总共1分钟

时间:2016-05-16 05:05:40

标签: optaplanner

我已经设置了一个有两个本地搜索阶段的求解器,它运行正常。然而,有一段时间第二阶段在大约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).

在第1阶段结束之前,最后几个步骤没有任何改善。第二阶段开始,但在一分钟内迈出了一步。解算器随后结束,因为它已达到允许的最大时间。

我对第2阶段根本没有采取任何措施感到有些惊讶。是因为它没有找到更好的分数吗?

1 个答案:

答案 0 :(得分:0)

如果您在TRACE日志中没有看到任何移动(如评论中所示),可能是因为您使用的是自定义移动列表工厂,而且初始化时间过长。