-
Notifications
You must be signed in to change notification settings - Fork 10
Correct xi in SolverCore.solve! in LM and R2N solvers #239
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
Changes from 4 commits
afdd274
cc03f69
36299df
449b930
7b4748c
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 |
|---|---|---|
|
|
@@ -68,7 +68,7 @@ function R2NSolver( | |
| shifted(reg_nlp.h, xk) | ||
|
|
||
| Bk = hess_op(reg_nlp.model, x0) | ||
| sub_nlp = R2NModel(Bk, ∇fk, T(1), x0) | ||
| sub_nlp = R2NModel(Bk, ∇fk, T(0), x0) | ||
| subpb = RegularizedNLPModel(sub_nlp, ψ) | ||
| substats = RegularizedExecutionStats(subpb) | ||
| subsolver = subsolver(subpb) | ||
|
|
@@ -327,7 +327,7 @@ function SolverCore.solve!( | |
| end | ||
|
|
||
| mk = let ψ = ψ, solver = solver | ||
| d -> obj(solver.subpb.model, d) + ψ(d)::T | ||
| d -> obj(solver.subpb.model, d) - solver.subpb.model.σ * dot(d, d) / 2 + ψ(d)::T | ||
MohamedLaghdafHABIBOULLAH marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| end | ||
|
|
||
| prox!(s1, ψ, mν∇fk, ν₁) | ||
|
|
@@ -361,7 +361,6 @@ function SolverCore.solve!( | |
| while !done | ||
| sub_atol = stats.iter == 0 ? 1.0e-3 : min(sqrt_ξ1_νInv ^ (1.5), sqrt_ξ1_νInv * 1e-3) | ||
|
|
||
| solver.subpb.model.σ = σk | ||
|
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. @dpo is this ok for you?
Collaborator
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. Why should we remove this ?
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. I think that line needs to stay. It's the computation of
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. We should close this as this issue has been treated here PR by Maxence. |
||
| isa(solver.subsolver, R2DHSolver) && (solver.subsolver.D.d[1] = 1/ν₁) | ||
| if isa(solver.subsolver, R2Solver) #FIXME | ||
| solve!( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.