【发布时间】:2019-12-06 15:43:06
【问题描述】:
我正在做一个项目,我不得不拒绝某些动作进行测试。 我已经使用“isMoveDoable”在本地搜索中做到了这一点,但 ConstructionHeuristics 可能需要不同的配置。我不想删除启发式部分,因为它非常有效。
<!-- Power tweaked optimization algorithms configuration -->
<constructionHeuristic>
<constructionHeuristicType>FIRST_FIT_DECREASING</constructionHeuristicType>
</constructionHeuristic>
<localSearch>
<localSearchType>TABU_SEARCH</localSearchType>
<moveListFactory>
<moveListFactoryClass>org.optaplanner.examples.cloudbalancing.optional.move.CloudBusChangeMoveFactory</moveListFactoryClass>
</moveListFactory>
<!--<unionMoveSelector>-->
<!--<changeMoveSelector/>-->
<!--<swapMoveSelector/>-->
<!--<pillarChangeMoveSelector/>-->
<!--<pillarSwapMoveSelector/>-->
<!--</unionMoveSelector>-->
<!--<acceptor>-->
<!--<entityTabuRatio>0.1</entityTabuRatio>-->
<!--</acceptor>-->
<!--<forager>-->
<!--<acceptedCountLimit>1000</acceptedCountLimit>-->
<!--</forager>-->
</localSearch>
【问题讨论】:
标签: drools optaplanner heuristics