We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 496eb5c commit 225cabaCopy full SHA for 225caba
src/LM_alg.jl
@@ -179,7 +179,7 @@ function LM(
179
prox!(s, ψ, ∇fk, ν)
180
ξ1 = fk + hk - mk1(s) + max(1, abs(fk + hk)) * 10 * eps() # TODO: isn't mk(s) returned by subsolver?
181
ξ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.
+ sqrt_ξ1_νInv = sqrt(ξ1 * νInv)
183
184
if ξ1 ≥ 0 && k == 1
185
ϵ_increment = ϵr * sqrt_ξ1_νInv
0 commit comments