[R] Optim() package restriction

nserdar snes1982 at hotmail.com
Sat Feb 25 00:03:04 CET 2012


I did it like above  but got an error message.

> estimate<- optim(init.par,Linn,gr=NULL,method= "L-BFGS-B",
> hessian=FALSE,control =
> list(trace=1),lower=c(0,-Inf,Inf,Inf),upper=c(1,Inf,Inf,Inf))
Error in solve.default(sig[, , 1]) : 
  system is computationally singular: reciprocal condition number = 0

"how to derive constrain for only 1 variable"

Regards,
Ser

--
View this message in context: http://r.789695.n4.nabble.com/Optim-package-restriction-tp4418379p4418865.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list