From: Michael C. <mic...@ua...> - 2004-09-07 12:52:16
|
Hi again, All 3 algorithms, bfgsmin, lbfgsmin and samin are written so that the parameter with respect to which minimization is done should be a column vector. Unfortunately, I don't seem to have explicitly stated that anywhere.... Also, type checking doesn't currently go that far. I'll take care of it tomorrow. Thanks again - hopefully it'll eventually get harder for you to find these :-) M. On Tuesday 07 September 2004 13:57, Teemu Ikonen wrote: > On 07/09/04 11:56, Michael Creel wrote: > > Forget it please. As is predictable, the error is mine. The CVS versions > > will be fixed in 10 minutes or so. Thanks for the bug reports, Teemu. > > Here's another one. This is with CVS version with your latest fixes: > > function chi2=chigl(a, x, y) > > f = a(1).*x.^2 + a(2); > chi2 = sum( (y - f).^2); > > endfunction > > > x = linspace(-5, 5, 10); > > y = -1.0 .* x.^2; > > a = zeros(1,2); > > [aopt, chi2min] = bfgsmin("chigl", {a, x, y, y}, {10,2,1,1}); > > error: invalid conversion from matrix to real column vector > octave: /usr/local/include/octave-2.1.58/octave/dim-vector.h:104: int& > dim_vector::dim_vector_rep::elem(int): Assertion i >= 0 && i < ndims' > failed. panic: Aborted -- stopping myself... > attempting to save variables to octave-core'... > save to octave-core' complete > Aborted > > When the first argument is a column vector, there's no crash. > > Teemu > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Octave-dev mailing list > Oct...@li... > https://lists.sourceforge.net/lists/listinfo/octave-dev |