[R] constrained optimization in R

Thomas Lumley tlumley at u.washington.edu
Tue Sep 21 21:46:15 CEST 2004


On Tue, 21 Sep 2004 Jason.L.Higbee at stls.frb.org wrote:

> R:
>
> I need to minimize a function such that the parameters when used in
> another function result in a particular value, which i fix.  That is, I
> need min(f(a,b)) given g(a,b)=X, where min(.) is the minimum, f(.) and
> g(.) are functions (with unknown gradients) of parameters a and b and X is
> a fixed value.  What optimization function(s) in R do you suggest?
> constrOptim looks like it will work except I don't know the gradient of
> the functions.

constrOptim won't work -- it does INequality constraints.

 	-thomas


> Thanks,
>
> Jason Higbee
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle




More information about the R-help mailing list