forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 8:36 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Using Integral of an independent variable in loss function.
PostPosted: Mon Oct 09, 2017 7:25 pm 
Offline

Joined: Mon Oct 09, 2017 6:47 pm
Posts: 2
Hello, everyone! I have one problem. There is integral of independent argument t in my loss function. I use autogk for integration and mincg subpackage for optimization. I understand that integral will be function of b and c. How can I implement the transmission of function from autogk to mincg? There is function underneath:


Attachments:
Снимок экрана (579).png
Снимок экрана (579).png [ 9.27 KiB | Viewed 4325 times ]
Top
 Profile  
 
 Post subject: Re: Using Integral of an independent variable in loss functi
PostPosted: Tue Oct 10, 2017 8:31 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
It is better to calculate integral analytically and to substitute analytic expression into target function for mincg optimizer. It is integral of polynomial w.r.t. to t variable, after all.

You can implement integration via autogk in the target function, if you want, but such scheme is potentially unstable - numerical integral is always calculated with some error, and this error can confuse optimizer.


Top
 Profile  
 
 Post subject: Re: Using Integral of an independent variable in loss functi
PostPosted: Tue Oct 10, 2017 2:03 pm 
Offline

Joined: Mon Oct 09, 2017 6:47 pm
Posts: 2
Thank's a lot. I'll take second option, but later I realize first)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group