A Method for Optimal Tolerance Selection