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
 Forum for Origin C
 Efficient integration in Origin C type fitting?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

PaDx9

Germany
4 Posts

Posted - 06/25/2024 :  09:48:09 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

YimingChen

1644 Posts

Posted - 06/25/2024 :  5:03:12 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

PaDx9

Germany
4 Posts

Posted - 06/25/2024 :  7:37:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
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