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

Extract number of iterations from results #150

Closed
bdas123 opened this issue Jul 15, 2022 · 2 comments
Closed

Extract number of iterations from results #150

bdas123 opened this issue Jul 15, 2022 · 2 comments

Comments

@bdas123
Copy link

bdas123 commented Jul 15, 2022

Is there a way to extract the number of iterations from the results?

@mohamed82008
Copy link
Member

Wrap the objective function with

obj = Nonconvex.NonconvexCore.CountingFunction(f)

and use obj as the objective function. The number of times it's evaluated will be obj.counter[].

@bdas123 bdas123 closed this as completed Jul 25, 2022
@bdas123
Copy link
Author

bdas123 commented Dec 8, 2022

Is there any way to also extract the number of function evaluations and the number of gradient evaluations?

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