File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
## 0.10.1 (unreleased)
2
2
3
3
- Added ` domain ` method to ` SatIntVar `
4
+ - Added ` add_linear_constraint ` method to ` CpModel `
4
5
5
6
## 0.10.0 (2023-03-15)
6
7
Original file line number Diff line number Diff line change @@ -236,12 +236,11 @@ void init_constraint(Rice::Module& m) {
236
236
[](CpModelBuilder& self, LinearExpr x, LinearExpr y) {
237
237
return self.AddLessThan (x, y);
238
238
})
239
- // TODO add domain
240
- // .define_method(
241
- // "add_linear_constraint",
242
- // [](CpModelBuilder& self, LinearExpr expr, Domain domain) {
243
- // return self.AddLinearConstraint(expr, domain);
244
- // })
239
+ .define_method (
240
+ " add_linear_constraint" ,
241
+ [](CpModelBuilder& self, LinearExpr expr, Domain domain) {
242
+ return self.AddLinearConstraint (expr, domain);
243
+ })
245
244
.define_method (
246
245
" add_not_equal" ,
247
246
[](CpModelBuilder& self, LinearExpr x, LinearExpr y) {
You can’t perform that action at this time.
0 commit comments