Mercurial > octave
diff scripts/optimization/fminbnd.m @ 29302:a121ce5a515f stable
fminbnd.m: do not ignore "OutputFcn" (bug #59901)
* scripts/optimization/fminbnd.m: user created "OutputFcn" never called when
just comparing to an existing function handle. Fix consistent with other
fmin*-functions and fzero.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Mon, 18 Jan 2021 17:06:23 +0900 |
parents | a4268efb7334 |
children | cb9add260b2b 0a5b15007766 |
line wrap: on
line diff
--- a/scripts/optimization/fminbnd.m Sat Jan 16 13:32:57 2021 +0100 +++ b/scripts/optimization/fminbnd.m Mon Jan 18 17:06:23 2021 +0900 @@ -234,7 +234,7 @@ endif ## If there's an output function, use it now. - if (outfcn) + if (! isempty (outfcn)) optv.funccount = nfev; optv.fval = fval; optv.iteration = niter;