Skip to content

Commit

Permalink
Update src/mip/coefficient_strengthening.jl
Browse files Browse the repository at this point in the history
Co-authored-by: mtanneau <9593025+mtanneau@users.noreply.github.com>
  • Loading branch information
Anhtu07 and mtanneau authored Jan 30, 2021
1 parent 1ea9b79 commit 3e7fdc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mip/coefficient_strengthening.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function zero_coefficient_strengthening!(ps::PresolveData{T}) where {T}
ps.pb0.acols[j].nzval[i_index[j]] = new_coef
ps.urow[i] = new_bound
#update nonzero
if new_coef == 0
if !iszero(coef) && iszero(new_coef)
ps.nzrow[i] -= 1
ps.nzcol[j] -= 1
end
Expand Down

0 comments on commit 3e7fdc3

Please sign in to comment.