Quantcast

fminsearch from optim package not working

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

fminsearch from optim package not working

Muhali
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.

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/octave-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: fminsearch from optim package not working

Olaf Till
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/octave-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: fminsearch from optim package not working

Muhali
In reply to this post by Muhali
> fminsearch just calls fmins. According to the documentation of fmins,
> the argument options has nothing to do with the options returned by
> optimset.

That is correct but incompatible to matlab. Matlab's fminsearch expects
optimset-like options, and, according to this

http://octave.1599824.n4.nabble.com/forum/PostLink.jtp?post=1655282

so should octave eventually.

M.


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/octave-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: fminsearch from optim package not working

Muhali
In reply to this post by Muhali
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
---------------
is there any effort under way to resolve this issue, that is, make fminsearch matlab compatible? The sources have not been touched for three years now.

M.
Loading...