Skip to content

Commit afdd274

Browse files
Correct xi in SolverCore.solve! in LM and R2N solvers
1 parent 539b228 commit afdd274

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Manifest.toml

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) + ψ(d)
303+
d -> obj(solver.subpb.model, d) - 1/2 * σk * 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) + ψ(d)::T
330+
d -> obj(solver.subpb.model, d) - 1/2 * σk * dot(d, d) + ψ(d)::T
331331
end
332332

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

0 commit comments

Comments
 (0)