Details
-
Bug
-
Resolution: Done
-
Critical
-
6.0.0
-
None
Description
Using OptaPlanner on domain with chained planning entity. Solution is initialized by custom phase command, local search contains only one move selector config:
<subChainSwapMoveSelector>
<subChainSelector>
<minimumSubChainSize>10</minimumSubChainSize>
<maximumSubChainSize>10</maximumSubChainSize>
</subChainSelector>
<secondarySubChainSelector>
<minimumSubChainSize>2</minimumSubChainSize>
<maximumSubChainSize>2</maximumSubChainSize>
</secondarySubChainSelector>
<selectReversingMoveToo>false</selectReversingMoveToo>
</subChainSwapMoveSelector>
This selector seems to produce only one concrete move in the loop. Problem is the move is undoable (left subchain contains entit(y/ies) which the right subchain contains too), so OptaPlanner ends in infinite loop.
The fact min and max values are the same is not the necessary condition to this issue.