Hi everyone,

If the function I am trying to optimize have the ... argument, how to pass
it to optim()?

For example, we want to minimize this very simple function:

foo <- function(a, ...) {
  var=list(...)
  (a-1)^2+do.call(sum,var)
}

Although the ... in this function doesn't make any difference.

Thanks,

Nan

	[[alternative HTML version deleted]]

