| Author | 
                
                  Topic   | 
                
                
                 
                 
                 
                 
                 
                                 | 
               
              
                | 
                 PaDx9 
                 
                
                Germany 
                4 Posts  | 
                
                  
                    
                      
                       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 | 
                     
                   
                 | 
               
              
                | 
                 YimingChen 
                 
                
                1686 Posts  | 
                
                  
                 | 
               
              
                | 
                 PaDx9 
                 
                
                Germany 
                4 Posts  | 
                
                  
                    
                      
                       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. | 
                     
                    
                        | 
                     
                   
                 | 
               
              
                |   | 
                
                  Topic   | 
                
                
                 
                 
                 
                 
                 
                 | 
               
             
           | 
         
       
     |