I have having the following error message when trying to optimize a function
using optim:



> optim(c(10,100),fn,method="BFGS")
Error in optim(c(10, 100), fn, method = "BFGS") :
  cannot coerce type 'S4' to vector of type 'double'
>

Can someone tell me what this means?

Jim

	[[alternative HTML version deleted]]


