Package net.sf.cpsolver.ifs.heuristics

Examples of net.sf.cpsolver.ifs.heuristics.StandardNeighbourSelection


        iConstruct =
                (NeighbourSelection) Class.forName(properties.getProperty("Itc.Construction", StandardNeighbourSelection.class.getName())).
                getConstructor(new Class[]{DataProperties.class}).
                newInstance(new Object[]{properties});
        if (iConstruct instanceof StandardNeighbourSelection) {
            StandardNeighbourSelection std = (StandardNeighbourSelection) iConstruct;
            std.setValueSelection(
                    (ValueSelection) Class.forName(properties.getProperty("Itc.ConstructionValue", ItcTabuSearch.class.getName())).
                    getConstructor(new Class[]{DataProperties.class}).
                    newInstance(new Object[]{properties}));
            std.setVariableSelection(
                    (VariableSelection) Class.forName(properties.getProperty("Itc.ConstructionVariable", ItcUnassignedVariableSelection.class.getName())).
                    getConstructor(new Class[]{DataProperties.class}).
                    newInstance(new Object[]{properties}));
            try {
                std.getValueSelection().
                        getClass().
                        getMethod("setValueWeight", new Class[]{double.class}).
                        invoke(std.getValueSelection(), new Object[]{new Double(valueWeight)});
            } catch (NoSuchMethodException e) {
            }
        }
        try {
            iConstruct.getClass().
View Full Code Here

TOP

Related Classes of net.sf.cpsolver.ifs.heuristics.StandardNeighbourSelection

Copyright © 2018 www.massapicom. 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.