Examples of FromSolutionPropertyValueSelector


Examples of org.drools.planner.core.heuristic.selector.value.FromSolutionPropertyValueSelector

        // FromSolutionPropertyValueSelector caches by design, so it uses the minimumCacheType
        if (minimumCacheType.compareTo(SelectionCacheType.PHASE) < 0) {
            // TODO we probably want to default this to SelectionCacheType.JUST_IN_TIME
            minimumCacheType = SelectionCacheType.PHASE;
        }
        return new FromSolutionPropertyValueSelector(variableDescriptor,
                    minimumCacheType, resolvedSelectionOrder == SelectionOrder.RANDOM);
    }
View Full Code Here

Examples of org.optaplanner.core.impl.heuristic.selector.value.FromSolutionPropertyValueSelector

            // https://issues.jboss.org/browse/PLANNER-54
            throw new IllegalArgumentException("The minimumCacheType (" + minimumCacheType
                    + ") is not yet supported. Please use " + SelectionCacheType.PHASE + " instead.");
        }
        if (valueRangeDescriptor.isEntityIndependent()) {
            return new FromSolutionPropertyValueSelector(
                    (EntityIndependentValueRangeDescriptor) valueRangeDescriptor, minimumCacheType, randomSelection);
        } else {
            // TODO Do not allow PHASE cache on FromEntityPropertyValueSelector, except if the moveSelector is PHASE cached too.
            return new FromEntityPropertyValueSelector(valueRangeDescriptor, randomSelection);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.