Nearby selection with subChainChangeMoveSelector or subChainSwapMoveSelector

喜夏-厌秋 提交于 2019-12-08 05:08:20

问题


Is there any way to enable nearby selection in Optaplanner for the subChainChangeMoveSelector or subChainSwapMoveSelector?

I have successfully enabled it for the tail move selector as follows:

<tailChainSwapMoveSelector>
            <entitySelector id="tcsm1"/>
            <valueSelector>
                <variableName>prevReq</variableName>
                <nearbySelection>
                    <originEntitySelector mimicSelectorRef="tcsm1"/>
                      <nearbyDistanceMeterClass>NearbyMeterTransportChain</nearbyDistanceMeterClass>
                </nearbySelection>
            </valueSelector>
</tailChainSwapMoveSelector>

However, the same config for any of the two chained movemenents returns an XStream error, explaining that neither of them can have a entitySelector.


回答1:


I just checked, the docs chapter "Move and Neighborhood Selection" does document the advanced configuration of subchain change/swap move selectors. Take a look.



来源:https://stackoverflow.com/questions/54719539/nearby-selection-with-subchainchangemoveselector-or-subchainswapmoveselector

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!