[R] optimized value worse than starting Value

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Wed Sep 8 16:26:40 CEST 2010


On Wed, Sep 8, 2010 at 1:35 PM, Michael Bernsteiner
<dethlef1 at hotmail.com> wrote:
>
> Dear all,
>
> I'm optimizing a relatively simple function. Using optimize the optimized parameter value is worse than the starting.
> why?
>
> f<-function(delta,P,U){
>    minimiz<-P+delta*U
>    x<-minimiz[1]
>    y<-minimiz[2]
>    z<-100*(y-x^2)^2+(1-x)^2
>    return(z)
> }

 This looks familiar. Is this some 1-d version of the Rosenbrock
Banana Function?

 http://en.wikipedia.org/wiki/Rosenbrock_function

 It's designed to be hard to find the minimum. In the real world one
would hope that things would not have such a pathological behaviour.

 Numerical optimisations are best done using as many methods as
possible - see optimise, nlm, optim, nlminb and the whole shelf of
library books devoted to it.

Barry



More information about the R-help mailing list