Skip to content

Commit

Permalink
Inner product instead of sum
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Oct 29, 2020
1 parent 82ae0fc commit 69cdf67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2536,7 +2536,7 @@ function _farkas_variable_dual(model::Optimizer, col::Cint)
λ = Vector{Cdouble}(undef, numnzP[])
ret = GRBgetdblattrlist(model, "FarkasDual", length(vind), vind, λ)
_check_ret(model, ret)
return sum(x * y for (x, y) in zip(vval, λ))
return λ' * vval
end

function MOI.get(
Expand Down

0 comments on commit 69cdf67

Please sign in to comment.