From Thomas.Petzoldt at TU-Dresden.de  Sat Apr  5 12:16:57 2008
From: Thomas.Petzoldt at TU-Dresden.de (Thomas Petzoldt)
Date: Sat, 05 Apr 2008 12:16:57 +0200
Subject: [Rd] suggested minor patch for optim.R
In-Reply-To: <47F6B4E0.40902@zoo.ufl.edu>
References: <47F6B4E0.40902@zoo.ufl.edu>
Message-ID: <47F75199.9000908@TU-Dresden.de>

Ben Bolker wrote:
>     optim ignores misspelled control parameters, so that trying
> to set (e.g.) "maxint=1000" in  the control argument silently
> does nothing.  The patch below (watch out for line breaks! also
> posted at http://www.zoo.ufl.edu/bolker/optim_patch.R , and
> http://www.zoo.ufl.edu/bolker/optim_new.R) adds
> three lines to optim.R that issue a warning if any names of
> elements of "control" fail to match the internal object that
> contains the defaults.
> 
>    Here is code that shows the behavior:

[... details deleted]

https://stat.ethz.ch/pipermail/r-devel/2008-March/048710.html

Ben,

another issue of optim is that I don't see any reason why the REPORT 
control parameter is evaluated by "BFGS" and "L-BFGS-B" only but not, 
for example, by "SANN", see:

https://stat.ethz.ch/pipermail/r-devel/2008-March/048710.html

Thomas P.



[Rd] suggested minor patch for optim.R
Thomas Petzoldt