Skip to content

Commit 3b64e79

Browse files
committed
correct index
1 parent 710a836 commit 3b64e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def test_cons_indicator_with_matrix_binvar():
202202
m.addConsIndicator(z <= 0, binvar3, activeone=False)
203203

204204
m.setObjective(
205-
binvar1.sum() + binvar2.sum() + binvar3[0][0] + binvar3[0][1], "maximize"
205+
binvar1.sum() + binvar2.sum() + binvar3[0][0] + binvar3[1][0], "maximize"
206206
)
207207
m.optimize()
208208

0 commit comments

Comments
 (0)