On Wed, Nov 10, 2010 at 10:21:38AM -0800, Muhali wrote:
>
> 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);
>
> --
It seems so. I'll apply it. Thanks, Olaf
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev