We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 244d3a7 commit c360e8bCopy full SHA for c360e8b
1 file changed
ext/or-tools/constraint.cpp
@@ -104,7 +104,12 @@ void init_constraint(Rice::Module& m) {
104
}
105
});
106
107
- Rice::define_class_under<TableConstraint, Constraint>(m, "SatTableConstraint");
+ Rice::define_class_under<TableConstraint, Constraint>(m, "SatTableConstraint")
108
+ .define_method(
109
+ "add_tuple",
110
+ [](TableConstraint& self, std::vector<int64_t> tuple) {
111
+ self.AddTuple(tuple);
112
+ });
113
114
rb_cBoolVar = Rice::define_class_under<BoolVar>(m, "SatBoolVar")
115
.define_method("name", &BoolVar::Name)
0 commit comments