Package solver.search.limits

Examples of solver.search.limits.BacktrackCounter.reset()


        final BacktrackCounter sc = new BacktrackCounter(30);
        sc.setAction(new ICounterAction() {
            @Override
            public void onLimitReached() {
                solver.getSearchLoop().restart();
                sc.reset();
            }
        });
        solver.getSearchLoop().plugSearchMonitor(sc);
        solver.getSearchLoop().plugSearchMonitor(ngs);
        SMF.limitTime(solver, 200000);
View Full Code Here


        final BacktrackCounter sc = new BacktrackCounter(32);
        sc.setAction(new ICounterAction() {
            @Override
            public void onLimitReached() {
                solver.getSearchLoop().restart();
                sc.reset();
            }
        });
        solver.getSearchLoop().plugSearchMonitor(sc);
        solver.getSearchLoop().plugSearchMonitor(ngs);
        SMF.limitTime(solver, 2000);
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.