octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #36923] Bug in fminbnd?


From: Rik
Subject: [Octave-bug-tracker] [bug #36923] Bug in fminbnd?
Date: Wed, 08 Jan 2014 01:02:18 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0

Update of bug #36923 (project octave):

                  Status:         Patch Submitted => Need Info              

    _______________________________________________________

Follow-up Comment #1:

The same effect can be had by changing line 192 of fminbnd.m from


if (fu <= fval)


to


if (fu < fval)


There is the following comment in the original code:


## The following if-statement was originally executed even if fu == fval.


By dropping the '=' the code goes back to the "original", whatever that means.
 I'm tempted to use this fix since it means 2 fewer function evaluations,
however I don't pretend to have studied the algorithm and know if this is
okay.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36923>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]