The nelder_mead_min function contains a small error when checking the stopping criteria ('rtol' should be checked using '|'). Below is a patch to fix it.
M. --- /tmp/old.m 2010-11-10 09:55:22.310185386 -0800 +++ /tmp/new.m 2010-11-10 09:55:34.310245100 -0800 @@ -183,7 +183,7 @@ done |= ((max(y)-min(y)) / max(1,max(abs(y))) < ftol); end if ! isnan (rtol), - done = (2*max (max (u) - min (u)) < rtol); + done |= (2*max (max (u) - min (u)) < rtol); end if ! isnan (vtol) done |= (abs (det (u(1:N,:)-ones(N,1)*u(N+1,:)))/factorial(N) < vtol); -- View this message in context: http://old.nabble.com/nelder_mead_min-error-tp30183092p30183092.html Sent from the octave-dev mailing list archive at Nabble.com. ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev