The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 help! Creating a function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

merrick

Portugal
2 Posts

Posted - 01/29/2013 :  4:49:17 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi
I've started to use origin (8.0) and I need to try to fit my data with a function
y=a*(b*exp(-c*x)+d*exp(e*x))
with following constrains:
a<=1
b+d=1

The problem is that when I create this function using as base exp1dec2 I have issues parameters initialization.

Can someone help me with this issue!

Hideo Fujii

USA
1582 Posts

Posted - 01/29/2013 :  5:31:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi merrick,

I suppose you have already defined your user-defined fit function with the linear constraints.

Surely, you need to find and start fitting with a set of good initial parameters. I suggest the following:

1) Run NLFit. When it starts, go to the "Parameter" tab, and enter a set of parameter values in the "Value" fields (double-click the value cell to enter the value), which satisfies your constraints, and was guessed from your field knowledge. (If you run NLFit on a plot, you can see the initial red curve on the graph; If NLFit runs on a worksheet data, the curve can be seen in the "Fit Curve" tab in the lower panel.)

2) If the curve is not good enough, adjust any parameter value, and press "x^2" (Chi-Sq.) button. The curve will be updated accordingly.

3) Until you satisfied the closeness of the initial curve to the data points, repeat 2).

4) Once you satisfy the curve close enough to the data points, press the button of "1-iteration" as many times as you like, or "Fit until converged" to let NLFit go to the point of converged state by itself.

Hope this helps.

--Hideo Fujii
OriginLab
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000