From tlumley at u.washington.edu  Mon Aug  6 16:16:11 2007
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Mon, 6 Aug 2007 07:16:11 -0700 (PDT)
Subject: [Rd] Optimization in R
In-Reply-To: <20070806060451.GA8447@cs.cas.cz>
References: <46B47E53.2040801@stats.uwo.ca>
	<20070804143032.GC16431@econ.upenn.edu>
	<46B4A200.10109@stats.uwo.ca>
	<971536df0708041005h55c2488by76709cf4fb989690@mail.gmail.com>
	<46B4C2B2.3030109@stats.uwo.ca>
	<971536df0708041123n5d59b1ebw18618d6340b76300@mail.gmail.com>
	<46B4C56D.8020408@stats.uwo.ca>
	<971536df0708041153o174d73f5vd2c28f483a6bf6b6@mail.gmail.com>
	<46B4CFCD.2000202@stats.uwo.ca>
	<971536df0708041556q7faf64ber38bf0da574927adc@mail.gmail.com>
	<20070806060451.GA8447@cs.cas.cz>
Message-ID: <Pine.LNX.4.64.0708060714040.28453@homer24.u.washington.edu>

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



[Rd] Optimization in R
Thomas Lumley