Skip to content

Commit 303b5e0

Browse files
remove theta update, as it will be rebased later
1 parent 400eebd commit 303b5e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LM_alg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function LM(
127127
Jt_Fk = similar(∇fk)
128128

129129
σmax = opnorm(Jk)
130-
νInv = (σmax^2 + σk) / θ # ‖J'J + σₖ I‖ = ‖J‖² + σₖ
130+
νInv = (1 + θ) * (σmax^2 + σk) # ‖J'J + σₖ I‖ = ‖J‖² + σₖ
131131

132132
s = zero(xk)
133133

@@ -259,7 +259,7 @@ function LM(
259259
if ρk < η1 || ρk == Inf
260260
σk = σk * γ
261261
end
262-
νInv = (σmax^2 + σk) / θ # ‖J'J + σₖ I‖ = ‖J‖² + σₖ
262+
νInv = (1 + θ) * (σmax^2 + σk) # ‖J'J + σₖ I‖ = ‖J‖² + σₖ
263263
tired = k maxIter || elapsed_time > maxTime
264264
end
265265

0 commit comments

Comments
 (0)