Skip to content

Commit b50c82a

Browse files
update theta default value
1 parent 6f42ee1 commit b50c82a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/LMTR_alg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function LMTR(
132132

133133
σmax, found_σ = opnorm(Jk)
134134
found_σ || error("operator norm computation failed")
135-
νInv = (1 + θ) * σmax^2 # ‖J'J‖ = ‖J‖²
135+
νInv = σmax^2/θ # ‖J'J‖ = ‖J‖²
136136

137137
mν∇fk = -∇fk / νInv
138138

@@ -255,7 +255,7 @@ function LMTR(
255255
jtprod_residual!(nls, xk, Fk, ∇fk)
256256
σmax, found_σ = opnorm(Jk)
257257
found_σ || error("operator norm computation failed")
258-
νInv = (1 + θ) * σmax^2 # ‖J'J‖ = ‖J‖²
258+
νInv = σmax^2/θ # ‖J'J‖ = ‖J‖²
259259
@. mν∇fk = -∇fk / νInv
260260
end
261261

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

128128
σmax, found_σ = opnorm(Jk)
129129
found_σ || error("operator norm computation failed")
130-
νInv = (1 + θ) * (σmax^2 + σk) # ‖J'J + σₖ I‖ = ‖J‖² + σₖ
130+
νInv = (σmax^2 + σk)/θ # ‖J'J + σₖ I‖ = ‖J‖² + σₖ
131131

132132
s = zero(xk)
133133

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

src/input_struct.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mutable struct ROSolverOptions{R}
3434
α::R = 1 / eps(R),
3535
ν::R = eps(R)^(1 / 5),
3636
γ::R = R(3),
37-
θ::R = eps(R)^(1 / 5),
37+
θ::R = 1/(1+eps(R)^(1 / 5)),
3838
β::R = 1 / eps(R),
3939
reduce_TR::Bool = true,
4040
) where {R <: Real}

0 commit comments

Comments
 (0)