There are commands like NonlinearModelFit[] or NDSolve[] that have the option Method it typically defaults to Automatic. How can you check after the evaluation of the command which method Mathematica picked?
|
|
|||
| show 2 more comments |
|
I think you can actually see (most of) what Mathematica is doing by using For example,
shows the DE was evaluated using And
used As an aside, here's something I just learnt from Trott's Mathematica guidebook for numerics, to see all of the methods and suboptions for
|
||||
|
|
For
See: tutorial/NDSolveStiffnessTest Adams, BDF, IDA are multi-step methods and do not work with this approach. |
||||
|
I asked this question once after a presentation by Jon McLoone. His answer was that that was not possible and that Mathematica can switch methods many times if the situation asks for it. So it wouldn't be useful either. I agree that this is not completely satisfactory. |
|||
|
|
NDSolve[], by default it switches between"BDF"and"Adams", depending on whether the system being solved is stiff or not. If you're performing nonlinear least squares withFindFit[], Mathematica is smart enough to automatically use"LevenbergMarquardt". – J. M.♦ Jan 18 '12 at 11:30Optionsto check which ones were given. But there is no such thing likeMethod[%]that informs me what Mathematics did. If I publish results I cannot write "The fitting was probably done with LevenbergMarquardt, but I can’t tell for sure, because there is no command to check." – uli Jan 18 '12 at 11:34