forum.alglib.net

ALGLIB forum
It is currently Sun Nov 10, 2024 8:48 pm

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: Is it OK to request termination in "jac" callback?
PostPosted: Wed Aug 07, 2024 5:56 am 
Offline

Joined: Tue Apr 30, 2024 11:08 am
Posts: 6
Hi,

The documentation for minnlcrequesttermination states

Quote:
It should be called from user-supplied callback when user decides that it is time to "smoothly" terminate optimization process.


It is not clear whether "user-supplied callback" means just the "rep" callback, or both "jac" and "rep" callbacks passed to minnlcoptimize.

Thanks.


Top
 Profile  
 
 Post subject: Re: Is it OK to request termination in "jac" callback?
PostPosted: Wed Aug 07, 2024 4:09 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 925
Hi!

Any callback will do. This function sets a flag variable that is routinely checking by the optimizer at 'safe' points, so you can call it at any moment and from any source. The optimizer checks this flag only when it is ready to safely stop.


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 2 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group