我正在尝试在我的时间折叠模型中使用并行重新启动。
我希望每次重启都有不同的初始解决方案。 但我无法理解如何通过构建启发式阶段创建随机初始解决方案。
当然,我可以自己创建初始解决方案,但我仍然想知道是否可以使用构造启发式?
我尝试过这个配置:
<constructionHeuristic>
<changeMoveSelector>
<entitySelector>
<selectionOrder>RANDOM</selectionOrder>
</entitySelector>
</changeMoveSelector>
</constructionHeuristic>
我遇到了这个错误:
java.lang.IllegalStateException: The <constructionHeuristic> contains a changeMoveSelector (ChangeMoveSelectorConfig(EntitySelectorConfig(null), null)) that contains an entitySelector (EntitySelectorConfig(null)) without explicitly configuring the <queuedEntityPlacer>.
我的时间折叠版本1.6.0
不,但我们可以为其添加特定阶段(或为其重用 ConstructionHeuristic 阶段),例如
<randomConstruction/>
同时,您可以定义一个CustomPhase