From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-11-2017 08:46 AM
Solved! Go to Solution.
08-18-2017 08:57 AM
Hi,
did you try the suggested steps in the following KB
http://digital.ni.com/public.nsf/allkb/36448BDBE67D99048625660C0000BDF0?OpenDocument
Best
08-21-2017 03:06 AM
08-21-2017 04:10 AM
Since your model contains an iterative procedure you get accumulation of errors and jitter in the result. This means that your partial derivatives are most likely not good. (to calculate the partial derivatives, the function is evaluated with two microscopically different parameter values and that slope is most likely quite random.)
You can easily do the experiment and see how the partial derivative depend on the exact parameter value.
08-22-2017 05:09 AM
08-22-2017 09:22 AM - edited 08-22-2017 09:46 AM
The partial derivatives are not always zero and if you had some way to calculate the partial derivatives in some analytical way, you could include that in the model, of course.
There are fitting algorithms that don't rely on partial derivatives, such as Nelder-Mead (downhill simplex). Curiously, we just had a related discussion a few days ago, which prompted me to release my nonlinear fit replacements that implements Nelder-Mead instead. As you can see, if you replace your current nonlinear curve fit with my version, the fit proceeds nicely. 😄
08-23-2017 08:43 AM
Hi altenbach,
thanks for your help. Your VI seems to work perfectly fine, even for some more complicated problems. Very nice!
Best regards
09-26-2017 02:46 AM
This is a LV2011 version of my example above for users who are not able to open my version.
09-26-2017 03:50 AM
hi hobgoblin
I think you uploaded the v15 again. I am unable to open on LV2011
09-27-2017 10:34 AM
Oh ok, sorry.
Try this one
Best regards
09-27-2017 10:54 AM
09-28-2017 02:56 AM
Excuse my sloppiness.
This version right here contains an example where Nonlinear Curve Fit VI (Levenberg-Marquardt) doesn't work, as described above. However, using the Simplex (Nelder-Mead) method as suggested by altenbach, the fit works perfectly fine. The user can choose between the two algorithms.
The original version of the Nelder-Mead VI can be found here: Nelder-Mead VI by altenbach
Best regards,
Hobgoblin