Skip to content

Commit cdbf376

Browse files
brmanuelsebheger
authored andcommitted
fixed closing bracket typo
1 parent b986739 commit cdbf376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mip/gurobi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def get_objective(self) -> LinExpr:
538538
obj_expr = xsum(
539539
obj[i] * self.model.vars[i]
540540
for i in range(self.num_cols())
541-
if abs(obj[i] > 1e-20)
541+
if abs(obj[i]) > 1e-20
542542
)
543543
obj_expr.const = self.get_objective_const()
544544
obj_expr.sense = self.get_objective_sense

0 commit comments

Comments
 (0)