带有subChainChangeMoveSelector或subChainSwapMoveSelector的附近选择 [英] Nearby selection with subChainChangeMoveSelector or subChainSwapMoveSelector

查看:113
本文介绍了带有subChainChangeMoveSelector或subChainSwapMoveSelector的附近选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Optaplanner中为subChainChangeMoveSelector或subChainSwapMoveSelector启用附近选择?

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>

但是,两个链接的movemenents中的任何一个的相同配置都会返回XStream错误,这说明它们都不可以具有entitySelector.

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

推荐答案

我刚刚检查了一下,文档章节移动和邻里选择"确实记录了子链更改/交换移动选择器的高级配置.看看.

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

这篇关于带有subChainChangeMoveSelector或subChainSwapMoveSelector的附近选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆