We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 352c750 commit 0bd35eeCopy full SHA for 0bd35ee
ortools/linear_solver/python/model_builder.py
@@ -948,7 +948,8 @@ def add_enforced_linear_constraint( # pytype: disable=annotation-type-mismatch
948
# pylint: disable=protected-access
949
self.__helper.set_constraint_lower_bound(ct.index, lb - flat_expr.offset)
950
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)
+ self.__helper.add_terms_to_constraint(
952
+ ct.index, flat_expr.vars, flat_expr.coeffs)
953
else:
954
raise TypeError(
955
"Not supported:"
0 commit comments