Thanks Paul. yes, with equality constraints. What are "friends"? I read the
document for optim, but still could not figure out how to do this. Do you
just set the lower bound equal to the upper bound?

Also, is it possible to ask R to search for a solution based on a target
value instead of min and max? Is there a function like that in R?

Thanks!

On 1/9/08, Paul Smith <phhs80@gmail.com> wrote:
>
> On Jan 9, 2008 4:01 AM, tom soyer <tom.soyer@gmail.com> wrote:
> > I noticed that R has a few bound-constrained nonlinear min and max
> solvers,
> > such as optim, nlm, etc. But I could not find a constrained min and max
> > solver that is not LP. Does this mean R do not have this capability? It
> is
> > hard to believe that R may not be as advanced as Excel in certain
> areas...
> > Maybe it's there but I missed it? Does anyone know?
>
> Do you mean optimization solvers for nonlinear problems with equality
> constraints? If so, you can use optim and friends with penalties to
> incorporate equality constraints.
>
> Paul
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Tom

	[[alternative HTML version deleted]]


