Skip to content
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

Can we get access to the gradient norm after return from minimize? #12

Closed
ASmellie opened this issue Jul 22, 2020 · 2 comments
Closed

Comments

@ASmellie
Copy link

ASmellie commented Jul 22, 2020

The minimize api only reports the finalEnergy. Can we also get the final gradient norm?

inline int minimize(Foo& f, Vector& x, Scalar& fx)

becomes

inline int minimize(Foo& f, Vector& x, Scalar& fx, Scalar &gnorm)

@yixuan
Copy link
Owner

yixuan commented Aug 25, 2020

Good point. I'll consider to add an overloaded function to report more information, including the gradient and its norm.

@yixuan
Copy link
Owner

yixuan commented May 20, 2022

This has been implemented in 7002030.

@yixuan yixuan closed this as completed May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants