[R] Optimize a function with Discrete inputs
loyolite270
loyolite270 at gmail.com
Wed Aug 1 12:29:31 CEST 2012
Hi
I need to optimize the below function:
a=function(x){
A=x[1]
B=x[2]
C=B-A
return(C)
}
I need to optimize the above function such that x can be any combination of
these number (0,3,5,8) of vector length 2
(i.e) x can be (3,0), (5,0), (8,0), (3,5), (3,8), (5,8), ...... etc
can someone please help me solve this problem ?
--
View this message in context: http://r.789695.n4.nabble.com/Optimize-a-function-with-Discrete-inputs-tp4638644.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list