Examples of XmlSolverFactory


Examples of org.drools.planner.config.XmlSolverFactory

        new NQueensApp().init();
    }

    @Override
    protected Solver createSolver() {
        XmlSolverFactory solverFactory = new XmlSolverFactory();
        solverFactory.configure(SOLVER_CONFIG);
        return solverFactory.buildSolver();
    }
View Full Code Here

Examples of org.drools.planner.config.XmlSolverFactory

public class NQueensHelloWorld {

    public static void main(String[] args) {
        // Build the Solver
        SolverFactory solverFactory = new XmlSolverFactory(
                "/org/drools/planner/examples/nqueens/solver/nqueensSolverConfig.xml");
        Solver solver = solverFactory.buildSolver();

        // Load a problem with 8 queens
        NQueens unsolved8Queens = new NQueensGenerator().createNQueens(8);

        // Solve the problem
View Full Code Here

Examples of org.optaplanner.core.config.solver.XmlSolverFactory

* OptaPlanner component for Camel
*/
public class OptaPlannerComponent extends DefaultComponent {

    protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
        SolverFactory solverFactory = new XmlSolverFactory(remaining);

        OptaPlannerEndpoint endpoint = new OptaPlannerEndpoint(uri, this, remaining);
        endpoint.setSolverFactory(solverFactory);
        setProperties(endpoint, parameters);

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.