Re: [R] How to solve systems of nonlinear equations in R?

2008-07-21 Thread Ravi Varadhan
Also take a look at the package "BB" for solving nonlinear systems.

Ravi.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Berend Hasselman
Sent: Saturday, July 19, 2008 7:45 AM
To: r-help@r-project.org
Subject: Re: [R] How to solve systems of nonlinear equations in R?



François Aucoin wrote:
> 
> Hey,
> I was wondering if there existed a R function similar to 'fsolve'  or 
> 'fzero' Matlab functions?
> 
> 

For a single function of one variable you can use uniroot.
Use ?uniroot in R to find out more.
You can also try general purpose optimisation algorithms such as optim/nlm,
but they don't always find a solution and they are not very efficient for
systems of equations.

I am working on a package for solving (dense) non linear systems of
equations using Broyden/Newton and global search methods. But it isn't ready
yet and it will take time ...

Berend
--
View this message in context:
http://www.nabble.com/How-to-solve-systems-of-nonlinear-equations-in-R--tp18
539798p18543785.html
Sent from the R help mailing list archive at Nabble.com.

__
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.

__
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.


Re: [R] How to solve systems of nonlinear equations in R?

2008-07-19 Thread Berend Hasselman


François Aucoin wrote:
> 
> Hey,
> I was wondering if there existed a R function similar to 'fsolve'  or
> 'fzero' Matlab functions?
> 
> 

For a single function of one variable you can use uniroot.
Use ?uniroot in R to find out more.
You can also try general purpose optimisation algorithms such as optim/nlm,
but they don't always find a solution and they are not very efficient for
systems of equations.

I am working on a package for solving (dense) non linear systems of
equations using Broyden/Newton and global search methods. But it isn't ready
yet and it will take time ...

Berend
-- 
View this message in context: 
http://www.nabble.com/How-to-solve-systems-of-nonlinear-equations-in-R--tp18539798p18543785.html
Sent from the R help mailing list archive at Nabble.com.

__
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.


Re: [R] How to solve systems of nonlinear equations in R?

2008-07-18 Thread Stuart Nettleton

Francois
You might try the BB package, which has quite a nice example.
Stuart

On Sat, 19 Jul 2008 10:20:34 +1000, François Aucoin  
<[EMAIL PROTECTED]> wrote:



Hey,
I was wondering if there existed a R function similar to 'fsolve'  or
'fzero' Matlab functions?
Thanks!
Francois Aucoin

[[alternative HTML version deleted]]

__
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.




--

DISCLAIMER: This email message and any accompanying atta...{{dropped:10}}

__
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.


[R] How to solve systems of nonlinear equations in R?

2008-07-18 Thread François Aucoin
Hey,
I was wondering if there existed a R function similar to 'fsolve'  or
'fzero' Matlab functions?
Thanks!
Francois Aucoin

[[alternative HTML version deleted]]

__
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.