Skip to content

Commit

Permalink
rm unneeded regularization
Browse files Browse the repository at this point in the history
  • Loading branch information
dfridovi committed Nov 17, 2024
1 parent ff463c8 commit 5cdc816
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ function solve(
iters = 1
while kkt_error > ϵ
# Compute the Newton step.
# TODO! Can add some adaptive regularization.
F = mcp.F(x, y, s; ϵ)
δz = -(mcp.∇F(x, y, s; ϵ) + I) \ F
δz = -mcp.∇F(x, y, s; ϵ) \ F

# Fraction to the boundary linesearch.
δx = @view δz[1:mcp.unconstrained_dimension]
Expand Down

0 comments on commit 5cdc816

Please sign in to comment.