search for: sumlsq

Displaying 1 result from an estimated 1 matches for "sumlsq".

Did you mean: smsq
2006 Mar 14
2
problem with optim: (list) object cannot be coerced to 'double'
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, data = timeseries){ print("sumLSQ") nbseries = dim(timeseries)[2]/3 SumLSQ = 0 for (i in (1:nbseries)){ SumLSQ = SumLSQ + L...