Skip to content

Commit

Permalink
correct geomean dual feasibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
lkapelevich committed Jul 5, 2020
1 parent cd8ec3b commit 14907a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cones/hypogeomean.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function is_dual_feas(cone::HypoGeomean{T}) where {T}
@views w = cone.dual_point[2:end]
alpha = cone.alpha
if u < -eps(T) && all(>(eps(T)), w)
@inbounds dual_wprodu = exp(sum(alpha[i] * log(w[i] / alpha[i]) for i in eachindex(alpha))) - u
@inbounds dual_wprodu = exp(sum(alpha[i] * log(w[i] / alpha[i]) for i in eachindex(alpha))) + u
return (dual_wprodu > eps(T))
end
return false
Expand Down

0 comments on commit 14907a2

Please sign in to comment.