Package org.optaplanner.core.impl.phase

Examples of org.optaplanner.core.impl.phase.Phase


    }

    protected void runPhases() {
        Iterator<Phase> it = phaseList.iterator();
        while (!termination.isSolverTerminated(solverScope) && it.hasNext()) {
            Phase phase = it.next();
            phase.solve(solverScope);
            if (it.hasNext()) {
                solverScope.setWorkingSolutionFromBestSolution();
            }
        }
        // TODO support doing round-robin of phases (only non-construction heuristics)
View Full Code Here


                    "Configure at least 1 phase (for example <localSearch>) in the solver configuration.");
        }
        List<Phase> phaseList = new ArrayList<Phase>(phaseConfigList.size());
        int phaseIndex = 0;
        for (PhaseConfig phaseConfig : phaseConfigList) {
            Phase phase = phaseConfig.buildPhase(phaseIndex, configPolicy,
                    bestSolutionRecaller, termination);
            phaseList.add(phase);
            phaseIndex++;
        }
        solver.setPhaseList(phaseList);
View Full Code Here

TOP

Related Classes of org.optaplanner.core.impl.phase.Phase

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.