Skip to content

Finding optim.R function

3 messages · Tauras Vilgalys, Jeff Newmiller, John C Nash

#
Much of R is implemented using C or Fortran. You are on a wild goose chase. There are contributed packages that you probably ought to investigate before modifying optim, though. 

https://cran.r-project.org/web/views/Optimization.html
#
The codes were taken from the 2nd edition of my book Compact Numerical
Methods for Computers, where they are in Pascal. They were converted by
p2c to c, so are pretty opaque and likely difficult to modify. Moreover,
they are based on 1970s codes I wrote for the first edition. Why not
look at optimr (CRAN) or the more extensive optimrx (R-forge) where
there are calls to pure R versions with improvements in the codes as
well as bounds constraints on parameters for some. If you have
suggestions or queries about the newer codes, contact me off-list and
we'll see what can be done.

JN (who will be at UseR! next week)
On 2017-06-27 12:46 PM, Tauras Vilgalys wrote: