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
 Forum for Origin C
 Efficient integration in Origin C type fitting?

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
PaDx9 Posted - 06/25/2024 : 09:48:09 AM
Origin Ver. and Service Release (Select Help-->About Origin): 2023b SR1
Operating System: Windows 11

Hello,

I implemented a custom fitting function using Origin C. In principle, it does work, but it is very very slow, i.e., computationally intense. I attach the .FDF file.

I think the part making the whole thing so slow is the integration. I used the Gauss-Legendre quadrature. Is there any way to improve its efficiency? (Or generally a better way to do the integration? This exact approach is used in other dedicated programs, maybe the progress is parallelized or something like that?)

(In its current state, it is unusable for fitting, because it is too unresponsive.)

Any help would be much appreciated.

Cheers,
Patrick

https://my.originlab.com/ftp/forum_and_kbase/Images/CoreShellCylinder_test.FDF
2   L A T E S T    R E P L I E S    (Newest First)
PaDx9 Posted - 06/25/2024 : 7:37:45 PM
quote:
Originally posted by YimingChen

I got a compiling error. It looks like the same issue you posted before. Can you fix it?
https://my.originlab.com/forum/topic.asp?TOPIC_ID=48363

James





That is strange, there is no compiling error for me. Indeed, your help from the other topic fixed the problem.
It also works well to simulate a curve with it, but the fitting process seems to be too demanding to use it.

Not sure why you get a compiling error? Maybe because the category "SAS" does not exist in your case? That is the only reason I could think of.
YimingChen Posted - 06/25/2024 : 5:03:12 PM
I got a compiling error. It looks like the same issue you posted before. Can you fix it?
https://my.originlab.com/forum/topic.asp?TOPIC_ID=48363

James


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