Could you please specifiy your problem, if possible with some data? Is it a subset of a vector containing 100 elements, or 10000ths? A random number of elements that should be chosen, or the best 10 values which sums up to a defined value?
Bart -- View this message in context: http://n4.nabble.com/Solving-an-optimization-problem-selecting-an-optimal-subset-tp1446084p1457323.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.