On Mon, 6 Aug 2007, Petr Savicky wrote: > Question. > > Is there a way how to optimize a function written in C > using optim? The algorithms used by optim are all accessible from C. The manual "Writing R Extensions" has a section on "The R API", including the optimization routines. -thomas