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]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.