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
 Origin Forum
 "linear" constraints in nonlinear fit

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
karvek Posted - 04/06/2016 : 04:04:47 AM
Hi all,

I am fitting some datasets with a user-defined function.
I have something of the kind:
f = Ax + By + Cz.
A, B and C must be in the interval [-1,1] that I can set in the parameters bounds.

However I would like to use as a general linear constraint something like abs(A) + abs(B) + abs(C) = 1.

If I don't use the absolute value it works quite well but of course the sum is messed up by possible negative negative values of the parameters.

Anyone has an idea on how to implement this?
The function is written in Origin C.

Origin 9.1 (64-bit) Sr2
Operating System: Windows 7
1   L A T E S T    R E P L I E S    (Newest First)
SeanMao Posted - 04/06/2016 : 04:21:44 AM
Hi,

Can you send me a copy of your data and the fitting function FDF file to tech@originlab.com so that I can have a try on my side to see the problem?

Regards!

Sean

OriginLab Tech.

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