Skip to content

Commit 0bd35ee

Browse files
committed
fix
1 parent 352c750 commit 0bd35ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ortools/linear_solver/python/model_builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,8 @@ def add_enforced_linear_constraint( # pytype: disable=annotation-type-mismatch
948948
# pylint: disable=protected-access
949949
self.__helper.set_constraint_lower_bound(ct.index, lb - flat_expr.offset)
950950
self.__helper.set_constraint_upper_bound(ct.index, ub - flat_expr.offset)
951-
self.__helper.add_terms_to_constraint(ct.index, flat_expr, flat_expr.coeffs)
951+
self.__helper.add_terms_to_constraint(
952+
ct.index, flat_expr.vars, flat_expr.coeffs)
952953
else:
953954
raise TypeError(
954955
"Not supported:"

0 commit comments

Comments
 (0)