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
[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
]; 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
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
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
5 matches
Mail list logo