Examples of BestSolutionChangedEvent


Examples of org.optaplanner.core.api.solver.event.BestSolutionChangedEvent

    }

    public void fireBestSolutionChanged(Solution newBestSolution, int newUninitializedVariableCount) {
        final Iterator<SolverEventListener> it = getEventListenersIterator();
        if (it.hasNext()) {
            final BestSolutionChangedEvent event = new BestSolutionChangedEvent(solver,
                    solver.getSolverScope().calculateTimeMillisSpent(), newBestSolution, newUninitializedVariableCount);
            do {
                it.next().bestSolutionChanged(event);
            } while (it.hasNext());
        }
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.