Skip to content

Commit 044cbcc

Browse files
committed
Fix bug in bin packing example
1 parent 85b804f commit 044cbcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/bin_packing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fn solve_knapsack(
193193
for pair in branching_decision.together.iter() {
194194
let var1 = &vars[pair.0];
195195
let var2 = &vars[pair.1];
196-
model.add(cons().eq(1.0).coef(var1, 1.0).coef(var2, -1.0));
196+
model.add(cons().eq(0.0).coef(var1, 1.0).coef(var2, -1.0));
197197
}
198198

199199
// apart constraints

0 commit comments

Comments
 (0)