Package solver.constraints.nary.alldifferent.algo

Examples of solver.constraints.nary.alldifferent.algo.AlgoAllDiffBC


    AlgoAllDiffBC filter;

    public PropAllDiffBC(IntVar[] variables) {
        super(variables, PropagatorPriority.LINEAR, false);
        filter = new AlgoAllDiffBC(aCause);
        filter.reset(vars);
    }
View Full Code Here


      IntVar[] vs = new IntVar[mis.cardinality()];
      int idx = 0;
      for(int x=mis.nextSetBit(0);x>=0;x=mis.nextSetBit(x+1)){
        vs[idx++] = vars[x];
      }
      if(filter==null)filter=new AlgoAllDiffBC(aCause);
      filter.reset(vs);
      filter.filter();
    }
  }
View Full Code Here

TOP

Related Classes of solver.constraints.nary.alldifferent.algo.AlgoAllDiffBC

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.