-
Notifications
You must be signed in to change notification settings - Fork 57
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
Make solver information, stats available programmatically rather than just printing #169
Comments
Try setting verbose=true. This gives a summary that I think you want.
On Sat, Jan 4, 2020 at 9:22 PM OminousOmen ***@***.***> wrote:
So first of all, thank you for Roots.jl! This is a feature request to have
some way through the public and documented API for the primary functions,
e.g., find_zero to have the solver return information about the solution
process, such as the reason for termination (e.g., did we stop because of
convergence of f or of x?) and the number of steps taken. Perhaps this
could be done through a different function name or by supplying a mutable
solution data object argument, etc.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#169?email_source=notifications&email_token=AADG6THPRN2HNOJGKWGJIKTQ4E77HA5CNFSM4KCZBDT2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IEBQCOQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADG6TGONWMNZJO2NF243ITQ4E77HANCNFSM4KCZBDTQ>
.
--
John Verzani
Department of Mathematics
College of Staten Island, CUNY
[email protected]
|
Yes, completely agree that is the summary of interest, but the feature requested in this issue is to have a way to access that same information though code rather than only having it be printed to the user. That way, a function which calls the root-finder can make decisions based on this information. |
Ohh, I see. It isn't documented, but the details are in the |
For my purposes, I'd be happy to just have this information returned at the end of the run, so I would know how many function evals were involved and what the reason was for the solver stopping. An illustrative example would be the In my use case, I would be fine without intermediate access to |
This can be done without much fuss:
A show method for the
|
Is this not possible by using a |
So first of all, thank you for Roots.jl! This is a feature request to have some way through the public and documented API for the primary functions, e.g., find_zero to have the solver return information about the solution process, such as the reason for termination (e.g., did we stop because of convergence of f or of x?) and the number of steps taken. Perhaps this could be done through a different function name or by supplying a mutable solution data object argument, etc.
The text was updated successfully, but these errors were encountered: