[rules-users] No such field org.optaplanner.core.config.heuristic.selector.value.chained.SubChainSelectorConfig.entitySelector

dBijkoo bijkerkrick at hotmail.com
Fri Jun 6 10:09:11 EDT 2014


After searching through the library I found the problem. It should be 
            <subChainSwapMoveSelector>
               *
<planningEntityClass>model.ScheduleBlockPeriod</planningEntityClass>*
                <subChainSelector>
                    <valueSelector>nextScheduleBlockPeriod</valueSelector>
                    <minimumSubChainSize>2</minimumSubChainSize>
                    <maximumSubChainSize>40</maximumSubChainSize>
                </subChainSelector>
                <selectReversingMoveToo>true</selectReversingMoveToo>
            </subChainSwapMoveSelector>

instead of the following, which is suggested in the documentation:
            <subChainChangeMoveSelector>
                <subChainSelector>
               *<entitySelector>
                        <entityClass>model.ScheduleBlockPeriod</entityClass>
                    </entitySelector>*
                    <minimumSubChainSize>2</minimumSubChainSize>
                    <maximumSubChainSize>40</maximumSubChainSize>
                </subChainSelector>
                <valueSelector>
                    <variableName>nextScheduleBlockPeriod</variableName>
                </valueSelector>

                <selectReversingMoveToo>true</selectReversingMoveToo>
            </subChainChangeMoveSelector>

This should be changed here:
http://docs.jboss.org/drools/release/6.0.1.Final/optaplanner-docs/html_single/index.html#subChainChangeMoveSelector
and at the subChainSwapMoveSelector chapter to avoid others running into the
same problem!!



--
View this message in context: http://drools.46999.n3.nabble.com/No-such-field-org-optaplanner-core-config-heuristic-selector-value-chained-SubChainSelectorConfig-enr-tp4029905p4029906.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list