-
-
Notifications
You must be signed in to change notification settings - Fork 93
update Manopt and associated packages #906
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 1 commit
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 |
---|---|---|
|
@@ -33,7 +33,7 @@ end | |
x0 = zeros(2) | ||
p = [1.0, 100.0] | ||
|
||
stepsize = Manopt.ArmijoLinesearch(R2) | ||
stepsize = Manopt.ArmijoLinesearch() | ||
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. Ah note that this for example is still “just” a factory when written this way, so maybe an I hope this does not sound too chaotic, as the one having designed it, to me the scheme is relatively clear, and I hope I am able to explain it well enough. 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. yeah. I think what we probably want to do is hook into the |
||
opt = OptimizationManopt.GradientDescentOptimizer() | ||
|
||
optprob_forwarddiff = OptimizationFunction(rosenbrock, Optimization.AutoEnzyme()) | ||
|
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.
This can for example stay as before, as I just wrote in the general comment
ArmijoLiineSearch
now introduces a factory (ok it is not aStepsise
type then, and when necessary one canproduce_type
on that, see the pattern in action athttps://github.com/JuliaManifolds/Manopt.jl/blob/013feadf95736639cdedb1bff2c4f1723f7dfe64/src/solvers/gradient_descent.jl#L208-L210
(note the new union there)
as well as
https://github.com/JuliaManifolds/Manopt.jl/blob/013feadf95736639cdedb1bff2c4f1723f7dfe64/src/solvers/gradient_descent.jl#L233C1-L233C45
which “turns” a factory into the concrete thing (here the stepwise) and is the identity if one already provides a stepwise.