Re: [R] optim bug/help?

2008-10-23 Thread rkevinburton
I was just trying to get a feel for the general strengths and weaknesses of the algoritmns. This is obviously a demo function and probably not representative of the real optimization problems that I will face. My concern was that if there is inaccuracy when I know the answer it might be worse

Re: [R] optim bug/help?

2008-10-23 Thread Patrick Burns
[EMAIL PROTECTED] wrote: I was just trying to get a feel for the general strengths and weaknesses of the algoritmns. This is obviously a demo function and probably not representative of the real optimization problems that I will face. My concern was that if there is inaccuracy when I know the

Re: [R] optim bug/help?

2008-10-23 Thread Ravi Varadhan
]; Ben Bolker Subject: Re: [R] optim bug/help? I was just trying to get a feel for the general strengths and weaknesses of the algoritmns. This is obviously a demo function and probably not representative of the real optimization problems that I will face. My concern was that if there is inaccuracy

[R] optim bug/help?

2008-10-22 Thread rkevinburton
In the documentation for 'optim' it gives the following function: fr - function(x) { ## Rosenbrock Banana function x1 - x[1] x2 - x[2] 100 * (x2 - x1 * x1)^2 + (1 - x1)^2 } optim(c(-1.2,1), fr) When I run this code I get: $par [1] 1.000260 1.000506 I am sure I am missing

Re: [R] optim bug/help?

2008-10-22 Thread Ben Bolker
rkevinburton at charter.net writes: In the documentation for 'optim' it gives the following function: fr - function(x) { ## Rosenbrock Banana function x1 - x[1] x2 - x[2] 100 * (x2 - x1 * x1)^2 + (1 - x1)^2 } optim(c(-1.2,1), fr) When I run this code I get: $par