forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 8:58 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  [ 2 posts ] 
Author Message
 Post subject: Gradient analytical form in ALGLIB optimization solver
PostPosted: Tue Jan 18, 2011 3:56 pm 
Offline

Joined: Sat Oct 16, 2010 1:37 pm
Posts: 7
To run ALGLIB LBFGS optimisation solver, I noticed that we have to provide both the analytical function and its analytical gradient. But sometimes the analytical form of the gradient cannot always be calculated for some complex functions. To avoid such problem, we have to estimate the gradient through a four point formula computed through finite difference method.

I think that it would be nice to have the possibility to ask LBFGS solver to estimate directly the gradiant in the core code when its analytical form is not provided. This could be applied to all ALGLIB optimisation solvers.

What do you think?

Kind regards,
Antoine


Top
 Profile  
 
 Post subject: Re: Gradient analytical form in ALGLIB optimization solver
PostPosted: Wed Jan 19, 2011 3:25 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
I've thought about that, but there are exist difficulties associated with a) algorithm tolerance to errors in the gradient, and b) selection of proper differentiation step. For example, Levenberg-Marquardt allows moderate errors in the gradient, but CG requires precise gradient.

I think that L-BFGS is somewhere between LM and CG, and it is worth a try. Maybe even in the future ALGLIB 3.3 - I plan to improve numerical optimization significantly, it may be worth addition.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 57 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