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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Fitting with constraints for two variables

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
keshikeshi Posted - 10/02/2019 : 06:22:25 AM
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.
4   L A T E S T    R E P L I E S    (Newest First)
keshikeshi Posted - 10/06/2019 : 4:39:10 PM
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.
YimingChen Posted - 10/03/2019 : 5:15:11 PM
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
keshikeshi Posted - 10/03/2019 : 4:26:14 PM
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.
YimingChen Posted - 10/03/2019 : 09:23:45 AM
Hi,

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

James

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000