Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What fitting algorithm does Mathematica use in NonlinearModelFit[]?

I need to know the algorithm(s) it uses, because I have to write my own program. Levenberg-Marquardt doesn't really do the same. Is there like a list of algorithms, from which Mathematica chooses what algorithm to use for a specific problem?

Thank you.

like image 668
The Quantum Physicist Avatar asked May 04 '26 03:05

The Quantum Physicist


1 Answers

Mathematica 8.x can use the following algorithms for NonLinearModelFit[] for its Method option:

Possible settings for Method include "ConjugateGradient", "Gradient", "LevenbergMarquardt", "Newton", "NMinimize", and "QuasiNewton", with the default being Automatic.

See the documentation for additional options etc.

Note that NonLinearFit[] is obsolete; you should now use FindFit[] instead.

like image 189
Massimo Cafaro Avatar answered May 05 '26 19:05

Massimo Cafaro