-
Notifications
You must be signed in to change notification settings - Fork 10
Add sigma_cauchy and scp_norm to solver statistics in all solvers #253
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| **/Manifest.toml |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -290,6 +290,7 @@ function SolverCore.solve!( | |
| set_objective!(stats, fk + hk) | ||
| set_solver_specific!(stats, :smooth_obj, fk) | ||
| set_solver_specific!(stats, :nonsmooth_obj, hk) | ||
MohamedLaghdafHABIBOULLAH marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| set_solver_specific!(stats, :sigma_cauchy, 1/ν) | ||
| set_solver_specific!(stats, :prox_evals, prox_evals + 1) | ||
| m_monotone > 1 && (m_fh_hist[stats.iter % (m_monotone - 1) + 1] = fk + hk) | ||
|
|
||
|
|
@@ -306,6 +307,7 @@ function SolverCore.solve!( | |
| end | ||
|
|
||
| prox!(s, ψ, mν∇fk, ν) | ||
| set_solver_specific!(stats, :scp_norm, norm(s)) | ||
| ξ1 = fk + hk - mk1(s) + max(1, abs(fk + hk)) * 10 * eps() | ||
| sqrt_ξ1_νInv = ξ1 ≥ 0 ? sqrt(ξ1 / ν) : sqrt(-ξ1 / ν) | ||
| solved = (ξ1 < 0 && sqrt_ξ1_νInv ≤ neg_tol) || (ξ1 ≥ 0 && sqrt_ξ1_νInv ≤ atol) | ||
|
|
@@ -436,9 +438,11 @@ function SolverCore.solve!( | |
| set_solver_specific!(stats, :prox_evals, prox_evals + 1) | ||
|
|
||
| ν = θ / (σmax^2 + σk) # ‖J'J + σₖ I‖ = ‖J‖² + σₖ | ||
| set_solver_specific!(stats, :sigma_cauchy, 1/ν) | ||
|
|
||
| @. mν∇fk = - ν * ∇fk | ||
| prox!(s, ψ, mν∇fk, ν) | ||
| set_solver_specific!(stats, :scp_norm, norm(s)) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This norm is already computed. Don't compute it twice.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here,
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see the issue when we consider R2, R2DH or TRDH |
||
| mks = mk1(s) | ||
|
|
||
| ξ1 = fk + hk - mks + max(1, abs(hk)) * 10 * eps() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.