[R] optimization with Sparse matrices
Berend Hasselman
bhh at xs4all.nl
Fri Jun 17 06:04:42 CEST 2011
Dube, Jean-Pierre wrote:
>
> To whom it may concern,
>
> I am trying to maximize a log-likelihood function using optim. This is a
> simple problem with only 18 parameters. To conserve memory, I am using
> sparse matrices (SLAM) for some of the data matrices used in the
> computation of the likelihood. However, optim appears to convert the
> sparse matrix back to regular data format. This causes me to run out of
> memory as R tries to create an 8GB matrix. In short, it does not look as
> though "optim" is compatible with sparse matrices. Does anyone have a
> suggestion for how I can maximize a function in R using sparse matrices
> for some of the data inputs?
>
Have a look at BB.
Berend
--
View this message in context: http://r.789695.n4.nabble.com/optimization-with-Sparse-matrices-tp3604373p3604453.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list