forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 6:42 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: How does Nonlinear solver know it has found local minimum?
PostPosted: Wed Aug 20, 2014 4:17 pm 
Offline

Joined: Wed Aug 20, 2014 3:55 pm
Posts: 1
I'm using NLEQ to estimate a distortion model for a camera. I already have a Scilab code that estimates the distortion so I know a good solution and alglib's nonlinear solver NLEQ also finds the known solution but returns report code,
-4 ERROR: algorithm has converged to the
stationary point Xf which is local minimum of
f=F[0]^2+...+F[m-1]^2, but is not solution of
nonlinear system.

In this problem, the number of equations m=224 and the dimension of the state is n=61. How does NLEQ know that it has only found a local minimum and that there is a global minimum?


Top
 Profile  
 
 Post subject: Re: How does Nonlinear solver know it has found local minimu
PostPosted: Thu Aug 21, 2014 9:05 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
I think that you have too small EpsF (quantity which is set by NLEQSetCond function). If algorithm stops at point where |F|>EpsF, it considers this point at local extrema of F^2 which is NOT solution.

Try increasing EpsF... optimal value is problem-specific.


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