Package solver.constraints.nary.alldifferent.algo

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


        }

        if ( optimizable )
        {
//          System.out.println( "interval = " + Util.printInterval( interval ) );
          final Interval sliceInterval = t.transform( new BoundingBox( interval ) ).getInterval();
//          System.out.println( "transformed interval = " + Util.printInterval( sliceInterval ) );
          if ( iterableSource.supportsOptimizedCursor( sliceInterval ) )
          {
            // check for FlatIterationOrder
            boolean flat = FlatIterationOrder.class.isInstance( iterableSource.subIntervalIterationOrder( sliceInterval ) );
View Full Code Here


    // doesn't fit the interval, will force unoptimized cursor
    final long[] dimensionsUnoptimized = new long[] { 5001, 5000, 2, 2 };

    // fits the interval, should be optimized
    final Interval interval = new FinalInterval( new long[] { 0, 0, 1, 1 }, new long[] { 4999, 4999, 1, 1 } );

    // create and fill images
    final ArrayImg< IntType, ? > arrayImg = ArrayImgs.ints( dimensions ); // fits
                                        // the
                                        // interval
View Full Code Here

    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$Interval

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.