Package solver.search.limits

Examples of solver.search.limits.ICounterAction


    @Override
    public void activeFastRestart() {
        if (counter != null) {
            counter.setAction(
                    new ICounterAction() {
                        @Override
                        public void onLimitReached() {
                            mSolver.getSearchLoop().restart();
                            counter.reset();
                        }
View Full Code Here


        IntVar[] vars = VF.enumeratedArray("vars", 3, 0, 2, solver);
        NogoodStoreFromRestarts ngs = new NogoodStoreFromRestarts(vars);
        solver.post(ngs);
        solver.set(ISF.random_value(vars, 29091981L));
        final BacktrackCounter sc = new BacktrackCounter(30);
        sc.setAction(new ICounterAction() {
            @Override
            public void onLimitReached() {
                solver.getSearchLoop().restart();
                sc.reset();
            }
View Full Code Here

        IntVar[] vars = VF.enumeratedArray("vars", 3, 0, 3, solver);
        NogoodStoreFromRestarts ngs = new NogoodStoreFromRestarts(vars);
        solver.post(ngs);
        solver.set(ISF.random_value(vars, 29091981L));
        final BacktrackCounter sc = new BacktrackCounter(32);
        sc.setAction(new ICounterAction() {
            @Override
            public void onLimitReached() {
                solver.getSearchLoop().restart();
                sc.reset();
            }
View Full Code Here

TOP

Related Classes of solver.search.limits.ICounterAction

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.