forum.alglib.net

ALGLIB forum
It is currently Thu Mar 28, 2024 10:53 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  [ 3 posts ] 
Author Message
 Post subject: BLEIC
PostPosted: Mon Aug 22, 2016 8:51 am 
Offline

Joined: Fri Aug 05, 2016 11:48 am
Posts: 4
Is the effect of the scale parameter the same as solving the problem transformed to new variables (so that each new variable is the original divided by the scale)?

Why do I sometimes get termination type 4 even though I have set zero tolerance for gradient?
What is the tolerance for the gradient in this case and is it possible that I get will get a difference from optimum that exceeds epsx (taking scale into account)?

Is the algorithm affected by changing the objective function or one of the constraint equations/inequalities by a constant?

How is the tolerance for constraint violations determined exactly?

Why do I get termination type 7 sometimes? What can I do about it?

Thanks!


Top
 Profile  
 
 Post subject: Re: BLEIC
PostPosted: Mon Aug 22, 2016 2:53 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 903
Hello!

philip wrote:
Is the effect of the scale parameter the same as solving the problem transformed to new variables (so that each new variable is the original divided by the scale)?

Yes, effect should be the same (however, because of rounding errors you still may get different results)

philip wrote:
Why do I sometimes get termination type 4 even though I have set zero tolerance for gradient?
What is the tolerance for the gradient in this case and is it possible that I get will get a difference from optimum that exceeds epsx (taking scale into account)?

It is possible that norm of constrained becomes exactly zero - say, when all constraints become active. In this case algorithm terminates with error 4, because, technically, zero<=zero. :)

philip wrote:
Is the algorithm affected by changing the objective function or one of the constraint equations/inequalities by a constant?

Theoretically - not affected. In practice - may be affected because of rounding errors.

philip wrote:
How is the tolerance for constraint violations determined exactly?

Currently ALGLIB uses fixed tolerance equal to 1E-6.

philip wrote:
Why do I get termination type 7 sometimes? What can I do about it?

Unfortunately, our hardware performs computations with finite precision (it would be good to have infinite precision floating point, but...). As result, sometimes you may get "gradient" vector which is NOT descent direction because rounding errors distorted its true value. Attempt to perform line search on such direction fails, and algorithm returns 7. Luckily, rounding errors are small and can "override" true gradient only near true solution. So, 7 signals successful termination.


Top
 Profile  
 
 Post subject: Re: BLEIC
PostPosted: Tue Aug 23, 2016 1:56 pm 
Offline

Joined: Fri Aug 05, 2016 11:48 am
Posts: 4
Thank you!


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 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