[R] samin and vmmin

FMGCFMGC FMGCFMGC at terra.es
Tue Mar 4 05:01:06 CET 2003


Hello!

Take a look at:

http://lib.stat.cmu.edu/S/minfun

The relevant file is: minfun.in (line 110 approx.)

It also points to page 210 of New S book

Hope it helps!
Fran

--- Original message: ---
I am writing code in C and would like to call R's functions samin and
vmmin (optimization routines: simulated annealing and BFGS)

I do not understand how to create and pass in the function (as well as 
the extra arguments it needs) I am optimizing.

I have read the R Extensions manual but it is still unclear to me.

Could you give me some pointers and/or direct me to some example code
which calls one of the optimizer functions and includes the definition 
of
the function to be optimized?

Thank you
Susan




More information about the R-help mailing list