我正在尝试在我的时间折叠模型中使用并行重新启动。
我希望每次重新启动都有不同的初始解决方案。 但我无法理解如何通过构造启发阶段创建随机初始解决方案。
当然,我可以自己创建初始解决方案,但我仍然想知道是否可以使用构造启发式?
我尝试过这个配置:
<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
以上就是timefold:是否可以通过构造启发式创建随机初始解决方案?的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号