我有一个 OptaPlanner 项目,其解算器分阶段配置如下:
<?xml version="1.0" encoding="UTF-8"?>
<solver>
...
<!-- SOLVER PHASES CONFIGURATION -->
<!-- First phase: First Fit Decreasing -->
<constructionHeuristic>
<constructionHeuristicType>FIRST_FIT</constructionHeuristicType>
</constructionHeuristic>
<!-- Second phase: Tabu Search -->
<localSearch>
<localSearchType>TABU_SEARCH</localSearchType>
<termination>
<terminationCompositionStyle>OR</terminationCompositionStyle>
<minutesSpentLimit>2</minutesSpentLimit>
<unimprovedSecondsSpentLimit>20</unimprovedSecondsSpentLimit>
<bestScoreLimit>0hard/0medium/0soft</bestScoreLimit>
</termination>
</localSearch>
...
</solver>
我想记录相位的变化。是否可以?谢谢。
最佳答案
关于OptaPlanner 对数求解器相变,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63149067/