Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Aug 21, 2024
1 parent 23caac7 commit 07a30e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/NLoptMathOptInterfaceExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ function _fill_gradient(grad, x, f::MOI.ScalarQuadraticFunction{Float64})
end
for term in f.quadratic_terms
i, j = term.variable_1.value, term.variable_2.value
grad[i] += term.coefficient * x[i]
grad[i] += term.coefficient * x[j]
if i != j
grad[j] += term.coefficient * x[i]
end
Expand Down

0 comments on commit 07a30e9

Please sign in to comment.