Problemcore
Tolerance allocation
Also called tolerance synthesis, least-cost tolerance allocation.
Choose part tolerances that meet an assembly tolerance at least manufacturing cost, from cost-tolerance curves, by Lagrange multipliers or optimisation.
Tolerance allocation, also called tolerance synthesis, is the inverse of tolerance analysis. Analysis takes the part tolerances and computes the variation of an assembly output. Allocation takes a required tolerance of the output and chooses the part tolerances. A tight tolerance costs more to make, so the choice minimizes the total manufacturing cost, given a cost-tolerance curve for each dimension. With a linear stack model and smooth convex costs, it is a convex optimization problem, and for reciprocal costs it has a closed form by Lagrange multipliers, proved below. When each dimension must be made by one of a few processes, the problem becomes discrete and weakly NP-hard.
In plain words
An assembly must work, so a gap or an angle must stay inside its limits. That limit sets a budget for the variation of all the parts together. Each part can use some of this budget. A part with a loose tolerance is cheap to make, and a part with a tight tolerance is expensive. The task is to share the budget among the parts so that the total cost is as low as possible. The rule that comes out is simple. A part that is expensive to make precisely gets a larger share. A part that has a large effect on the assembly gets a smaller share. When each part can only be made by one of a few machines, the task becomes a puzzle of choices, and it can be hard in the worst case.
Definition
Input. An assembly output that depends on part dimensions , with sensitivities at the nominal design; a required tolerance of the output; and for each dimension a cost-tolerance function that is positive and decreasing in the tolerance , optionally with process limits . The sensitivities are the of the stack-up page; this page writes them as and keeps for cost coefficients.
Output. Tolerances that minimize the total cost subject to a stack constraint:
- worst case: ;
- statistical (RSS): .
The two stack formulas are those of tolerance stack-up, with their assumptions. They are not repeated here.
The model of variation. The output is modeled by its linear stack, . For a linear chain of dimensions this is exact. For an assembly with a nonlinear function, the are the first-order sensitivities at the nominal point, from the direct linearization method or a torsor model, and the allocation inherits that first-order (small change) approximation. A check by Monte Carlo tolerance analysis of the allocated tolerances shows its effect.
Cost models. Common forms in the literature are reciprocal powers and exponentials , each fitted to data of a process. A constant does not change the optimal tolerances. All these are convex for when .
Variants
- Continuous allocation. The tolerances are real numbers, with or without process limits. With convex costs and either stack, this is a convex problem.
- Process selection. Each dimension must use one of processes, process with a fixed tolerance and cost . Choose one process per dimension to minimize the total cost subject to the stack constraint. This is discrete.
- Several outputs. One dimension can appear in several stacks, such as two gaps of one assembly. Each output gives a constraint, and the continuous problem stays convex.
- Other objectives. A quality loss term for output variation, a cost of rejected assemblies, or a mean shift term for process drift can be added to the cost or to the stack. These change the formulas below.
Examples
The housing gap. The gap of the stack-up page has . Take reciprocal costs with , so that dimension is twice as expensive to make precisely, and an RSS requirement mm. The closed form below gives and
| allocation | RSS stack | cost | ||
|---|---|---|---|---|
| optimal, closed form | ||||
| equal tolerances | ||||
| scaled from |
The optimum is . The expensive dimension gets the largest tolerance, by the factor . The gain over equal tolerances is small here because the costs are similar; the objective is flat near its minimum. For a worst-case requirement mm with the same costs, gives , and the cost , against for the tolerances of the stack-up page.
Process selection. Three dimensions with and a worst-case budget of mm each choose a process, given as (tolerance in mm, cost):
| dimension | process 1 | process 2 | process 3 |
|---|---|---|---|
| 1 | |||
| 2 | |||
| 3 |
Of the 18 choices, 11 meet the budget. The cheapest is at cost , which uses the whole budget. The loosest process of dimension 1 is not in it: with the other two must take , which costs . The dynamic program of the next section finds the same answer.
Known algorithms
Closed form for reciprocal costs and an RSS stack. Let with , let every , and let there be no process limits. Put . Then the unique optimum is
Derivation by Lagrange multipliers. The cost decreases in every , so at an optimum the constraint is active: otherwise some can grow and the cost falls. The Lagrangian is . Setting its partial derivative to zero gives , so and for one constant . The active constraint gives , so . The cost is .
Proof that this is the global minimum. The objective is a sum of the functions , each with second derivative , so it is strictly convex on the open orthant . The feasible set, the part of the ellipsoid in this orthant, is convex, and it has an interior point, so Slater's condition holds. The point above satisfies the KKT conditions with , the same value for every , and with an active constraint. For a convex problem the KKT conditions are sufficient (Boyd and Vandenberghe, Section 5.5.3), so the point is a global minimum, and strict convexity makes it the only one.
A direct proof of the bound. Put and , so that and the constraint is . Hölder's inequality with exponents and gives , that is . So every feasible allocation costs at least , and the closed form reaches the bound.
Other closed forms. The same steps give these results:
- worst-case stack, : and ; the bound follows from the Cauchy-Schwarz inequality;
- reciprocal power : for the RSS stack and for the worst case, with the constant fixed by the active constraint.
The RSS optimum never costs more than the worst-case optimum for the same , because , so every worst-case feasible allocation is RSS feasible. The RSS allocation accepts that a small fraction of assemblies is out of tolerance under its assumptions.
Process limits by a search on the multiplier. With limits , a convex decreasing and the RSS stack, for each let minimize over . For reciprocal costs this is clamped to . The sum does not increase in . If at all upper limits is at most , the upper limits are optimal; if , no allocation is feasible. Otherwise bisection on finds , and is optimal, because it minimizes the Lagrangian over the box and meets the constraint with equality, which are the KKT conditions of this convex problem. Each step costs .
General convex costs. With posynomial costs, such as sums of reciprocal powers, the problem is a geometric program: the objective is a posynomial and the constraint is a posynomial at most . Other convex costs, such as exponentials, give a smooth convex program. Both are solved to any accuracy by interior point methods (Boyd and Vandenberghe, Section 4.5).
Process selection by dynamic programming. If the stack contributions are integers in a unit of length, such as micrometres, and the budget is units, let be the least cost of the first dimensions with total contribution at most . Then and over the processes that fit. The answer is , in time. For the RSS stack, use the squared contributions and the budget , in units that make them integers. This is the dynamic program of the knapsack problem with one choice from each group, the multiple-choice knapsack problem (Kellerer, Pferschy and Pisinger). Exhaustive search over all choices and metaheuristics such as genetic algorithms and simulated annealing are also used; the metaheuristics give no guarantee of optimality.
Bounds
- Continuous, reciprocal costs. Every feasible allocation costs at least for the RSS stack and for the worst-case stack, proved above, and the closed forms reach these values in time. The optimal cost is inversely proportional to the required tolerance .
- Continuous, convex costs. Polynomial time to any fixed accuracy, as a convex program.
- Process selection. Weakly NP-hard (proved in the next section), and solvable in pseudo-polynomial time by the dynamic program, so it is not strongly NP-hard unless P = NP (pseudo-polynomial time).
There are no standard benchmark instances for tolerance allocation. The numbers on this page are computed from the formulas, and no measured running times are claimed.
Reductions
- Subset sum reduces to process selection. Given positive integers and a target of the subset sum problem, make one dimension per with and two processes: a fine one with tolerance and cost , and a coarse one with tolerance and cost . Take the worst-case budget and ask for a cost of at most . Let be the set of dimensions that use the coarse process. The stack is , so it fits exactly when . The cost is , so it is small enough exactly when . Both hold exactly when is a subset with sum . The construction takes polynomial time, and subset sum is NP-complete (Garey and Johnson, problem SP13), so the decision version of process selection is NP-hard.
- Process selection reduces to multiple-choice knapsack. The stack contributions are the weights, the budget is the capacity, and the costs, with signs changed, are the values; one item is chosen from each group.
- Continuous allocation reduces to convex programming, and for posynomial costs to geometric programming.
- Allocation uses analysis. The sensitivities come from tolerance analysis, by the stack-up chain or the direct linearization method, and the allocated tolerances can be checked by Monte Carlo analysis.
Applications
Tolerance allocation is used in the design of mechanical assemblies to set the tolerances on part drawings before production, and to choose among machining processes for each feature. It shows which dimensions carry the most cost per unit of output variation, which guides redesign: a dimension with a large sensitivity and a costly process is a candidate for a change of the design. The handbook chapter by Chase works the method on the one-way clutch of the DLM page.
References
- M. F. Spotts, Allocation of tolerances to minimize cost of assembly, Journal of Engineering for Industry 95(3), 762 to 764, 1973, the whole paper (allocation of tolerances by a cost model and Lagrange multipliers; general locator)
- Kenneth W. Chase, W. H. Greenwood, B. G. Loosli and L. F. Hauglund, Least cost tolerance allocation for mechanical assemblies with automated process selection, Manufacturing Review 3(1), 49 to 59, 1990, the whole paper (cost-tolerance models, allocation by Lagrange multipliers for worst-case and statistical stacks, and the choice of one process for each dimension; general locator)
- Paul J. Drake, Jr. (editor), Dimensioning and Tolerancing Handbook, McGraw-Hill, 1999, Chapter 14, the chapter by Kenneth W. Chase on minimum-cost tolerance allocation (Lagrange multipliers, the one-way clutch example and process selection)
- Stephen Boyd and Lieven Vandenberghe, Convex Optimization, Cambridge University Press, 2004, Section 4.5 (geometric programming) and Section 5.5.3 (the KKT conditions are sufficient for convex problems)
- Michael R. Garey and David S. Johnson, Computers and Intractability, A Guide to the Theory of NP-Completeness, W. H. Freeman, 1979, Appendix A3, problem SP13 (Subset sum), and Section 4.2 (number problems and pseudo-polynomial time)
- Hans Kellerer, Ulrich Pferschy and David Pisinger, Knapsack Problems, Springer, 2004, the chapter on the multiple-choice knapsack problem
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag YWH6SS Edit this page History Report an error Markdown