-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update LM solver #156
base: master
Are you sure you want to change the base?
update LM solver #156
Conversation
… different subsolver criterion stop
@dpo pour cette PR j'ai modifié le critère d'arrêt du sous solveur de LM pour qu'il soit le même que R2N |
@@ -176,22 +179,24 @@ function LM( | |||
prox!(s, ψ, ∇fk, ν) | |||
ξ1 = fk + hk - mk1(s) + max(1, abs(fk + hk)) * 10 * eps() # TODO: isn't mk(s) returned by subsolver? | |||
ξ1 > 0 || error("LM: first prox-gradient step should produce a decrease but ξ1 = $(ξ1)") | |||
sqrt_ξ1_νInv = ξ1 > 0 ? sqrt(ξ1 * νInv) : 10. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?????
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MohamedLaghdafHABIBOULLAH What’s this?
if nonlinear == true | ||
σmax = opnorm(Jk) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if nonlinear == true | |
σmax = opnorm(Jk) | |
end | |
if nonlinear | |
σmax = opnorm(Jk) | |
end |
@@ -252,6 +260,7 @@ function LM( | |||
σk = σk * γ | |||
end | |||
νInv = (1 + θ) * (σmax^2 + σk) # ‖J'J + σₖ I‖ = ‖J‖² + σₖ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We enable the use of R2DH as a subsolver with different stopping criteria for the subproblem.
Remark: this PR uses the input_struct.jl defined here: #153