Nai-Wei Chen
2010-Feb-02 08:58 UTC
[R] how to use optim() or nlm() to solve three nonlinear equations
Dear all, 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. Sincerely, Joe ___________________________________________________ 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! [[alternative HTML version deleted]]
Berend Hasselman
2010-Feb-02 11:31 UTC
[R] how to use optim() or nlm() to solve three nonlinear equations
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.
Reasonably Related Threads
- About LU decomposition in R
- Error en nlm(logdgenexpn, p = c(vmomest[[1]], vmomest[[2]]), x = x.genexp, : valor no finito provisto por 'nlm'
- Error in nlm : non-finite value supplied by 'nlm'
- first value from nlm (non-finite value supplied by nlm)
- nlm() vs. nls()