예제 #1
0
        // count of all vars.
        public static Constraint Count(this IntVar[] vars,
                                       long value,
                                       IntExpr count)
        {
            Solver solver = GetSolver(vars);

            return(solver.MakeCount(vars, value, count.Var()));
        }
예제 #2
0
 public IntExprEquality(IntExpr a, IntExpr b, bool equality)
 {
     this.left_     = a;
     this.right_    = b;
     this.equality_ = equality;
 }
예제 #3
0
 public static IntExpr Element(this long[] array, IntExpr index)
 {
     return(index.solver().MakeElement(array, index.Var()));
 }
예제 #4
0
 public IntExprEquality(IntExpr a, IntExpr b, bool equality)
 {
   this.left_ = a;
   this.right_ = b;
   this.equality_ = equality;
 }