On Wed, Jun 30, 2010 at 02:14:17PM -0700, Muhali wrote:
> Here is what you get from the current optim package (1.0.12):
> 
> ---------------
> octave:1> options = optimset("TolX",1e-5)
> options =
> {
>    TolX =  1.0000e-05
> }
> 
> octave:2> X = fminsearch(@sin,3, options)
> error: operator =: no conversion for assignment of `struct' to indexed 
> `matrix'
> error: assignment failed, or no method for `matrix = struct'
> error: called from:
> error:   /opt/octave/optim-1.0.12/fmins.m at line 62, column 37
> error:   /opt/octave/optim-1.0.12/fminsearch.m at line 29, column 4
> ---------------
> 
> M.

fminsearch just calls fmins. According to the documentation of fmins,
the argument options has nothing to do with the options returned by
optimset.

Olaf

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to