Jump to content

Multiparameter nonlinear multi-curve fit


mzu

Recommended Posts

There is a model of a physical process formalized in LabVIEW simulation toolkit. It take a set of parameters, and produces time dependencies of observables. I have an experimental data, same time dependencies of observables, but measured on a real system. I would like to get the set of parameters, so that model curves will fit experimental. I have an idea of the initial values of the parameters. Sample of data is provided below:

post-2886-126521781914_thumb.png

Points are experimental data, curves are the results of manual fitting, using the above mentioned model.

Had there been one curve, it would have been easy. I would have used NonlinearCurveFit.vi, and supply it with a reference to a model curve generating VI. What can I do with multiple curves? I really would like to avoid porting  the fitting

algorithm from the Numerical Recipes. I would also like to avoid writing a wrapper (OriginC <-> LabVIEW) to do a linked fit in Originlab Origin. I can use Matlab, of course, but it will require writing another wrapper. Is there a quick way of doing it, without leaving LabVIEW?

(xpost: http://forums.ni.com/ni/board/message?board.id=170&thread.id=472607)

(xpost: http://www.labviewportal.eu/viewtopic.php?f=87&t=1794)

Edited by mzu
Link to comment
  • 2 weeks later...

I guess that one parameter may be used in multiple functions.

I've implemented something similar using my Waptia genetic optimization library. All you need is to prepare VI which calculates sum of squared distances for all curves for all measurement points and for given set of parameters (well, inverse of the sum, because this is a fitness function). The parameters must be scaled to 0..1 range.

Another solution would be to use standard curve fitting, but to create virtual curve which uses part of its domain for each real curve.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.