Skip to content

Commit 14a790f

Browse files
more fixes
1 parent bdb4959 commit 14a790f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/OptimizationNLPModels/src/OptimizationNLPModels.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ function SciMLBase.OptimizationFunction(nlpmodel::AbstractNLPModel,
2121
cons(res, x, p) = NLPModels.cons!(nlpmodel, x, res)
2222
cons_j(J, x, p) = (J .= NLPModels.jac(nlpmodel, x))
2323
cons_jvp(Jv, v, x, p) = NLPModels.jprod!(nlpmodel, x, v, Jv)
24-
function lag_h(h, θ, σ, λ)
24+
function lag_h(h, θ, σ, λ, p)
2525
H = NLPModels.hess(nlpmodel, θ, λ; obj_weight = σ)
2626
k = 0
27-
rows, cols, _ = findnz(H)
27+
rows, cols, _ = findnz(H.data)
2828
for (i, j) in zip(rows, cols)
2929
if i <= j
3030
k += 1

0 commit comments

Comments
 (0)