[R] problem with optim: (list) object cannot be coerced to 'double'

2006-03-14 Thread Zebouni, Stephane \(Exchange\)
Hi, I am trying to use optim to solve a heavy calibration problem. I supply the parameters in vector form. But before entering my target The call is simply: optim(par = parameters, fn = SumLSQ, method = Nelder-Mead) the function SumLSQ is simply: SumLSQ-function(parameters,

Re: [R] problem with optim: (list) object cannot be coerced to 'double'

2006-03-14 Thread Uwe Ligges
Zebouni, Stephane (Exchange) wrote: Hi, I am trying to use optim to solve a heavy calibration problem. I supply the parameters in vector form. But before entering my target The call is simply: optim(par = parameters, fn = SumLSQ, method = Nelder-Mead) the

Re: [R] problem with optim: (list) object cannot be coerced to 'double'

2006-03-14 Thread Zebouni, Stephane \(Exchange\)
Here is what I get using str(parameters): num [1:120] 0.2000 -0.0166 0.0934 -0.0300 -0.3219 ... again, it doesn't even get into the objective function - I checked that Many thanks Stephane -Original Message- From: Uwe Ligges [mailto:[EMAIL PROTECTED] Sent: 14