Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/LMTR_alg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function LMTR(

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

mν∇fk = -∇fk / νInv

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

Expand Down
4 changes: 2 additions & 2 deletions src/LM_alg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function LM(

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

s = zero(xk)

Expand Down Expand Up @@ -260,7 +260,7 @@ function LM(
if ρk < η1 || ρk == Inf
σk = σk * γ
end
νInv = (1 + θ) * (σmax^2 + σk) # ‖J'J + σₖ I‖ = ‖J‖² + σₖ
νInv = (σmax^2 + σk) / θ # ‖J'J + σₖ I‖ = ‖J‖² + σₖ
tired = k ≥ maxIter || elapsed_time > maxTime
end

Expand Down
2 changes: 1 addition & 1 deletion src/input_struct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ mutable struct ROSolverOptions{R}
α::R = 1 / eps(R),
ν::R = eps(R)^(1 / 5),
γ::R = R(3),
θ::R = eps(R)^(1 / 5),
θ::R = 1/(1+eps(R)^(1 / 5)),
β::R = 1 / eps(R),
reduce_TR::Bool = true,
) where {R <: Real}
Expand Down
Loading