Skip to content

Commit

Permalink
Fix hprod! again
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed May 12, 2022
1 parent 6286c3d commit 8cbdbb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moi_nlp_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ function NLPModels.hprod!(
for k = 1:length(qcon.hessian.vals)
hv[qcon.hessian.rows[k]] += qcon.hessian.vals[k] * v[qcon.hessian.cols[k]]
end
hv[i] *= obj_weight * y[nlp.meta.nlin + i]
hv[i] *= y[nlp.meta.nlin + i]
end
if (nlp.obj.type == "NONLINEAR") || (nlp.meta.nnln > nlp.quadcon.nquad)
ind_nln = (nlp.meta.nlin + nlp.quadcon.nquad + 1):(nlp.meta.ncon)
Expand Down

0 comments on commit 8cbdbb6

Please sign in to comment.