How does Curve Fitting Toolbox's fit() function works with non-differentiable expressions?

조회 수: 1 (최근 30일)
As far as I understand, fit() uses Levenberg-Marquardt's method of function optimization, which is a gradient-based method (modified to incorporate a second-order term).This essentially means that we need a way to compute a gradient of the objective function to find the direction of the next step.(With respect to the parameter variables.)
If I'm trying to optimize a complex Matlab expression, possibly including classes, how does Matlab compute this gradient?
I can imaging computing the gradient numerically, or using the backpropagation (chain rule). But how does Matlab actually do it?
I have a relatively difficult function to fit (20 parameters), but curiously, if I set the initial guess not too far from the true value (when I'm doing the testing), the optimization does converge to the true values of the parameters.
I'm using Matlab 2013a.
Thanks a lot in advance.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by