On Thu, Oct 27, 2011 at 9:35 PM, Robert Walton <b125...@gmail.com> wrote: > Thanks for the pointer. I put a version of fminbnd.m into Agora > Octave http://agora.panocha.org.mx/snippet/yjOe/ , titled "fminbnd with > parameters". This is exactly the same code I couldn't get to run the other > day because it kept giving a print_usage message. With no changes other > than a couple of days and maybe a reboot of my machine, it works perfectly. > Any explanation for that? Example call: > p=fminbnd('test',0,10,optimset,1,2) > Function "test" is: > function obj=test(in,p1,p2) > obj=(in-p1)^2+(in-p2)^4 > This might be useful as an upgrade to Octave's fminbnd, as version > 3.4.3rc0's fminbnd does not accept parameters. > -- > Bob Walton > > On Tue, Oct 25, 2011 at 12:15 PM, Juan Pablo Carbajal <carba...@ifi.uzh.ch> > wrote: >> >> Hi, >> Do not register. Just use the snippet section to post you code. >> >> JPi >> >> ...
Hi, In the devel repository fminbnd seems to accept some options. Here the docstring -- Function File: [X, FVAL, INFO, OUTPUT] = fminbnd (FUN, A, B, OPTIONS) Find a minimum point of a univariate function. FUN should be a function handle or name. A, B specify a starting interval. OPTIONS is a structure specifying additional options. Currently, `fminbnd' recognizes these options: `"FunValCheck"', `"OutputFcn"', `"TolX"', `"MaxIter"', `"MaxFunEvals"'. For description of these options, see *note optimset: doc-optimset. On exit, the function returns X, the approximate minimum point and FVAL, the function value thereof. INFO is an exit flag that can have these values: * 1 The algorithm converged to a solution. * 0 Maximum number of iterations or function evaluations has been exhausted. * -1 The algorithm has been terminated from user output function. See also: optimset, fzero, fminunc Is this what you improved? If you think there is more. Just upload the file to the Feature request tracker http://sourceforge.net/tracker/?group_id=2888&atid=352888 Cheers, -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Zürich http://ailab.ifi.uzh.ch/carbajal/ ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev