[R] R optimization and curve()?

2010-10-12 Thread jcress410
)) 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. __ R-help@r-project.org mailing

Re: [R] R optimization and curve()?

2010-10-12 Thread Ray Brownrigg
On Wed, 13 Oct 2010, jcress410 wrote: u - function(x) {     x1 - x[1]     x2 - x[2]  (x1^alpha)*(x2^(1-alpha)) } utility - function(x) x[1]^(alpha)*x[2]^(1-alpha) p - c(2,1) i - -100 alpha - .3 umax - function(p,i,u) { res - constrOptim(c(.5,.5), u, grad=NULL, ui=-p, ci=i, mu = 1e-04,

Re: [R] R optimization and curve()?

2010-10-12 Thread jcress410
-optimization-and-curve-tp2992244p2992833.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

Re: [R] R optimization and curve()?

2010-10-12 Thread Arun.stat
See ?persp Also there are some really good examples on 3D plots in rgl package. Best, -- View this message in context: http://r.789695.n4.nabble.com/R-optimization-and-curve-tp2992244p2992998.html Sent from the R help mailing list archive at Nabble.com