Skip to content

Commit cc03f69

Browse files
Fix regularization parameter reference in SolverCore.solve! for LM and R2N solvers
1 parent afdd274 commit cc03f69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/LM_alg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function SolverCore.solve!(
300300
end
301301

302302
mk = let ψ = ψ, solver = solver
303-
d -> obj(solver.subpb.model, d) - 1/2 * σk * dot(d, d) + ψ(d)
303+
d -> obj(solver.subpb.model, d) - 1/2 * solver.subpb.model.σ * dot(d, d) + ψ(d)
304304
end
305305

306306
prox!(s, ψ, mν∇fk, ν)

src/R2N.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ function SolverCore.solve!(
327327
end
328328

329329
mk = let ψ = ψ, solver = solver
330-
d -> obj(solver.subpb.model, d) - 1/2 * σk * dot(d, d) + ψ(d)::T
330+
d -> obj(solver.subpb.model, d) - 1/2 * solver.subpb.model.σ * dot(d, d) + ψ(d)::T
331331
end
332332

333333
prox!(s1, ψ, mν∇fk, ν₁)

0 commit comments

Comments
 (0)