5253545556575859
AlgoAllDiffBC filter; public PropAllDiffBC(IntVar[] variables) { super(variables, PropagatorPriority.LINEAR, false); filter = new AlgoAllDiffBC(aCause); filter.reset(vars); }
53545556575859606162
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(); } }