14package com.google.ortools.sat;
16import com.google.ortools.sat.CpModelProto;
17import com.google.ortools.sat.TableConstraintProto;
39 if (tuple.length != table.getExprsCount()) {
41 "addTuple",
"tuple does not have the same length as the expressions");
43 for (
int value : tuple) {
44 table.addValues(value);
58 if (tuple.length != table.getExprsCount()) {
60 "addTuple",
"tuple does not have the same length as the expressions");
62 for (
long value : tuple) {
63 table.addValues(value);
77 for (
int[] tuple : tuples) {
78 if (tuple.length != table.getExprsCount()) {
80 "addTuples",
"a tuple does not have the same length as the expressions");
82 for (
int value : tuple) {
83 table.addValues(value);
98 for (
long[] tuple : tuples) {
99 if (tuple.length != table.getExprsCount()) {
101 "addTuples",
"a tuple does not have the same length as the variables");
103 for (
long value : tuple) {
104 table.addValues(value);