Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/OptimizationDISparseExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ function instantiate_function(
end

function lagrangian(θ, σ, λ, p)
return σ * f.f(θ, p) + dot(λ, cons_oop(θ))
if iszero(θ)
return dot(λ, cons_oop(θ))
else
return σ * f.f(θ, p) + dot(λ, cons_oop(θ))
end
end
end

Expand Down
Loading