comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » TNMIN from mpfit library
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
TNMIN from mpfit library [message #90215] Wed, 11 February 2015 11:39 Go to next message
Russell[1] is currently offline  Russell[1]
Messages: 101
Registered: August 2011
Senior Member
I'm using TNMIN to minimize a very complicated function, which for reasons I cannot use MPFIT. Everything seems to be running smoothly, but after a handful of iterations it gives me

status=-18
errmsg="ERROR: Line search failed to converge"

While I understand what that means, I'm not sure how to massage the inputs to TNMIN to get passed this error (or perhaps this isn't a true error but rather just another stopping condition?). Does anyone have any advice? Craig, are you out there?

Thanks gang,
Russell
Re: TNMIN from mpfit library [message #90219 is a reply to message #90215] Wed, 11 February 2015 21:01 Go to previous messageGo to next message
Russell[1] is currently offline  Russell[1]
Messages: 101
Registered: August 2011
Senior Member
Just for posterity's sake,


Well... I never figured out how to control TNMIN, but I transformed the variables and the problem seemed to naturally go away. I guess that gives a clue as to what was going wrong...

R
Re: TNMIN from mpfit library [message #90256 is a reply to message #90215] Sat, 14 February 2015 15:08 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Wednesday, February 11, 2015 at 2:39:50 PM UTC-5, rrya...@gmail.com wrote:
> I'm using TNMIN to minimize a very complicated function, which for reasons I cannot use MPFIT. Everything seems to be running smoothly, but after a handful of iterations it gives me
>
> status=-18
> errmsg="ERROR: Line search failed to converge"
>
> While I understand what that means, I'm not sure how to massage the inputs to TNMIN to get passed this error (or perhaps this isn't a true error but rather just another stopping condition?). Does anyone have any advice? Craig, are you out there?

TNMIN never really got the love that MPFIT got. I spent some time looking at the code (which is translated from FORTRAN that I didn't write), and I didn't get exactly why this condition would occur from a purely hypothetical standpoint.

Craig
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: mpfitfun and complex data
Next Topic: Help - generate bell shaped function

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:20:13 PDT 2025

Total time taken to generate the page: 0.00357 seconds