Skip to content

Commit 225caba

Browse files
correct the definition of sqrt_ξ1_νInv
1 parent 496eb5c commit 225caba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LM_alg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function LM(
179179
prox!(s, ψ, ∇fk, ν)
180180
ξ1 = fk + hk - mk1(s) + max(1, abs(fk + hk)) * 10 * eps() # TODO: isn't mk(s) returned by subsolver?
181181
ξ1 > 0 || error("LM: first prox-gradient step should produce a decrease but ξ1 = $(ξ1)")
182-
sqrt_ξ1_νInv = ξ1 > 0 ? sqrt(ξ1 * νInv) : 10.
182+
sqrt_ξ1_νInv = sqrt(ξ1 * νInv)
183183

184184
if ξ1 0 && k == 1
185185
ϵ_increment = ϵr * sqrt_ξ1_νInv

0 commit comments

Comments
 (0)