[R] Optimization problem

nntx sheldon.qiu at okstate.edu
Wed Apr 10 03:24:58 CEST 2013


As a simple example, I want to find minimum value for x^2, but it can't be
obtained by:
f<-function(x)x^2
optimize(f,lower=-1,upper=1)

What are other methods to deal with this? I tried DEoptim, still doesn't
work. Any suggustions will be extremely helpful! THanks!


Shelly



--
View this message in context: http://r.789695.n4.nabble.com/Optimization-problem-tp4663821.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list