Skip to content
Prev 15968 / 63433 Next

"wild" function example in optim

On Tue, 26 Apr 2005, Thomas Lumley wrote:

            
Note that there the method is "SANN".  That makes assumptions about step 
sizes, in fact using a spherical Gaussian distribution of fixed size.  So 
parscale=20 is telling it to make initial steps large enough to explore 
the `blobs'. In particular, parscale is not set for the BFGS call in that 
example.
Not necessarily.  The finite-differencing is done in units rescaled by 
parscale.  So a unit change in a single parameter needs to be a 
reasonably-sized step.  One can always set fnscale and neps, but it is 
easier to set parscale.
but without g
[1] 1.209735e-14
[1] 1.997947e-11