fminunc with a one-variable function
Jonathan Stickel
jjstickel at vcn.com
Thu Jul 23 10:32:36 CDT 2009
I see the following when I use fminunc to minimize a function of just
one variable:
function F = theF(x)
F = x.^2 + exp(x);
endfunction
x0 = 1;
[xmin,fmin] = fminunc(@theF,x0)
error: Invalid call to cholupdate. Correct usage is:
-- Loadable Function: [R1, INFO] = cholupdate (R, U, OP)
I know that there are other minimization functions that can be used for
single-variable functions, but fminunc should work too.
Thanks,
Jonathan
More information about the Bug-octave
mailing list