[R] how to use optim() or nlm() to solve three nonlinear equations

Berend Hasselman bhh at xs4all.nl
Tue Feb 2 12:31:32 CET 2010



Nai-Wei Chen wrote:
> 
> I just know how to solve an eaquation by using optim() or nlm(). But, now,
> I have three nonlinear equations, 
> how could we use optim() or nlm() to solve  a system of nonlinear
> equations in R?  Thank you so much.
> 

You don't use general optimize routines to solve a set of nonlinear
equations.
It is not efficient and it is not recommended.

There are two packages: nleqslv and BB, that you can use to solve non linear
equation systems.
Both are available on CRAN.

/B
-- 
View this message in context: http://n4.nabble.com/how-to-use-optim-or-nlm-to-solve-three-nonlinear-equations-tp1459716p1459803.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list