Thanks for the reply, but the example i have given above is a sample function. I would be using a function with input vector of size more than 100 and the function will compute some score based on the 100 vector combinations.
Since i don't want to do this computation sequentially for all these combination (which is very time consuming). May some optimization tech could help me solve the problem. -- View this message in context: http://r.789695.n4.nabble.com/Optimize-a-function-with-Discrete-inputs-tp4638644p4638715.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-guide.html and provide commented, minimal, self-contained, reproducible code.