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 for Programming
 LabTalk Forum
 Fitting with constraints for two variables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

keshikeshi

Japan
3 Posts

Posted - 10/02/2019 :  06:22:25 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (OriginPro 2019b ):
Operating System: Windows 10

Hello,
I'm trying to fit the NMR experimental data
(Chemical shift (y) vs solution initial concentration (x0)
with the next function,
y=(1-x1/x0-s*K*x1^2/(x0(1-K*x1))
Here, x0 and x1 are variables, s and K are parameters.
And, x0=(1-s)x1+[s*x1/(1-K*x1)^2], that X1 is the roots of cubic equation.

I don't know how to add constraints between two variables in the global fitting.
Any comments are helpful and valuable.
Thanks in advance.

YimingChen

1669 Posts

Posted - 10/03/2019 :  09:23:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Do you have the data for x1? Or you just have the data of y and x0? Thank you.

James
Go to Top of Page

keshikeshi

Japan
3 Posts

Posted - 10/03/2019 :  4:26:14 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi James,
Thanks for the comments.
I just just have the data of y and x0.
I'd like to guess X1 as a result of fitting.
Go to Top of Page

YimingChen

1669 Posts

Posted - 10/03/2019 :  5:15:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The only way I can tell is to rewrite y=(1-x1/x0-s*K*x1^2/(x0(1-K*x1)) as a quadratic equation of x1, and solve x1 to be x1 = f(y, x0). Substitute x1 in x0=(1-s)x1+[s*x1/(1-K*x1)^2] with f(y,x0), then perform implicit fit on your y, x0 data with the resulting equation.

James

Edited by - YimingChen on 10/03/2019 5:15:56 PM
Go to Top of Page

keshikeshi

Japan
3 Posts

Posted - 10/06/2019 :  4:39:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Actually, the equation is the cubic function of x1, which is making the situation difficult. Anyway, I will try implicit fit.
Thanks, in advance.
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