Displaying 1 result from an estimated 1 matches for "tp2992244p2992244".
2010 Oct 12
1
R optimization and curve()?
...)
i <- -100
alpha <- .3
umax <- function(p,i,u) {
res <- constrOptim(c(.5,.5), u, grad=NULL, ui=-p, ci=i, mu = 1e-04,
control=list(fnscale=-1))
return(res)
}
curve(umax, c(c(2,1),c(2,1)), c(10,100))
--
View this message in context: http://r.789695.n4.nabble.com/R-optimization-and-curve-tp2992244p2992244.html
Sent from the R help mailing list archive at Nabble.com.