[R] Optimization problem

William Simpson william.a.simpson at gmail.com
Thu Jun 17 19:45:14 CEST 2010


Sorry, thought you wanted to find lowest value of x that produced
maximum value of y. I see now that is not the case.

I think you have to decide on what amount of improvement per device
you judge to be 'minimal'. Then the algorithm uses the value of y that
occurs at the point where this criterion is reached.

I think this will do it
min(devices[diff(percentages)<criterion])

Bill



More information about the R-help mailing list