Problemcore
Operation sequencing
Also called machining operation sequencing.
Order the machining operations of a part under precedence from features, datums and tools, so tool changes and setup time are small.
Operation sequencing puts the machining operations of a part in order. Each operation uses a tool, in a setup, at a place on the part. Some orders are not allowed: a datum face must be cut before the features measured from it, a hole is center drilled before it is drilled and drilled before it is reamed, and roughing comes before finishing. Among the allowed orders, the planner wants one with little time lost between operations: few tool changes, few setup changes and short moves of the tool. The precedence makes the allowed orders the linear extensions of a partial order, and the change costs make the problem a traveling salesman problem with precedence constraints. This page states the problem, shows that it is NP-hard, and works a small example to its optimum.
In plain words
A part may need twenty operations: face the top, rough a pocket, drill four holes, ream two of them, mill a slot on the side. Some must come before others, because a hole cannot be reamed before it is drilled. Many orders still remain.
The orders do not all take the same time. Each time the machine swaps a tool, it loses some seconds. Each time the part must be turned and clamped again, it loses minutes. So the planner wants an order that uses each tool in as few runs as it can, finishes one side of the part before the next, and moves the tool short distances. The task is to find, among the orders that respect the precedence, the one with the least lost time.
Definition
There is no standard formal statement of operation sequencing. The following version covers the cited work, with the operations already chosen.
Input.
- A set of operations. Operation has a tool , a setup (an orientation of the part, from setup planning), and a start and an end position of the tool.
- A precedence relation on , a partial order: means that must come before .
- A transition cost for each ordered pair. A common form is
with the time of a tool change, the time of a setup change, equal to 1 when the condition holds and 0 otherwise, and the time of the rapid move from the end of to the start of .
Output. An order of that is a linear extension of : if , then comes before .
Objective. Minimize .
Where the precedence comes from. The usual sources are datums (a face before the features measured from it), the chain of a feature (center drill, drill, ream, chamfer), roughing before finishing, interacting features (a hole whose entry is in the floor of a pocket comes after the pocket), and good practice, such as a hole before a thread in it.
The problem differs from precedence-constrained scheduling: that problem assigns jobs to several machines to make the schedule short, while operation sequencing orders the operations on one machine and pays a cost that depends on which operation follows which.
Variants
- Tool changes only. and no move cost. With no precedence, the answer is trivial: group the operations by tool, with one change fewer than the number of tools.
- Setups and tool changes. The weighted cost above, with much larger than , so the plan first keeps the setup changes few.
- Alternatives. Each operation may be done on one of several machines, with one of several tools, from one of several approach directions. Li, Ong and Nee (2004) choose the machine, the tool and the approach direction of each operation together with the order, with costs for each machine and tool and for each change of machine, tool and setup.
- Hole sequencing. Many holes are made with the same tool, and only the move cost matters. This is a traveling salesman path through the holes, and the cutting sequence planning page treats the related problem for profile cutting.
- Integrated planning. Operation sequencing joined with setup planning, machine choice and scheduling of the shop.
Examples
Nine operations on a block. A block has a top face, two holes and , a pocket and a side slot. Hole starts in the floor of the pocket. Tool change and setup change , in minutes, with no move cost.
| operation | meaning | tool | setup |
|---|---|---|---|
| FM | face mill the top | T1 face mill | |
| RP | rough the pocket | T4 end mill 10 mm | |
| FP | finish the pocket | T5 end mill 6 mm | |
| CDA, CDB | center drill holes , | T2 spot drill | |
| DRA, DRB | drill holes , | T3 drill | |
| CHA | chamfer hole | T2 spot drill | |
| SL | mill the side slot | T4 end mill 10 mm |
Precedence: FM before every other operation (the top is the datum), CDA before DRA before CHA, CDB before DRB, RP before FP, and RP before CDB (hole starts in the pocket floor).
- Feature by feature. FM, CDA, DRA, CHA, RP, FP, CDB, DRB, SL. The tools run T1, T2, T3, T2, T4, T5, T2, T3, T4: 8 tool changes and 1 setup change, cost 18.
- Optimum. FM, RP, CDA, CDB, DRA, DRB, FP, CHA, SL. The tools run T1, T4, T2, T3, T5, T2, T4: 6 tool changes and 1 setup change, cost 16.
A check of all 945 orders that respect the precedence finds 16 as the minimum, reached by 32 orders. A short argument gives the same bound. The plan has two setups, so at least one setup change. Five tools need at least 4 changes. Tool T2 must be loaded twice, because DRA with T3 comes between CDA and CHA. Tool T4 must also be loaded twice: SL is the only operation in its setup, and with one setup change it is first or last, while RP comes after FM and before FP, so RP is never first or last in setup and cannot be next to SL. That gives at least 7 runs of one tool, so at least 6 tool changes.
Known algorithms
- Search over orders. List the linear extensions of , for example with an extension of topological sort, and keep the cheapest. The number of linear extensions can be .
- Dynamic programming over downsets. A state is a downset of (the operations done so far, closed under predecessors) and the last operation. The best cost of a state is the minimum over its last step, as in the Held and Karp method for the TSP. If has width , it splits into chains by Dilworth's theorem, and a downset is fixed by how many operations of each chain it holds, so there are at most downsets. The time is , polynomial for a fixed width.
- Branch and cut. The problem with a fixed first and last operation is the asymmetric TSP with precedence constraints. Ascheuer, Jünger and Reinelt (2000) solve it exactly with branch and cut.
- Heuristics and metaheuristics. Rules such as "finish the current setup and the current tool first", and search methods that keep the precedence: genetic algorithms (Bhaskara Reddy, Shunmugam and Narendran 1999), tabu search (Li, Ong and Nee 2004) and simulated annealing.
There are no standard benchmarks for operation sequencing. Papers test their methods on example parts of their own, so their results cannot be compared from paper to paper.
Bounds
NP-hardness. The decision version with general transition costs is NP-hard by a reduction from the traveling salesman problem, which is NP-hard because the Hamiltonian circuit problem is NP-complete (Karp 1972). Given cities with distances , make an operation per city, a start operation and an end operation at city 1, with before all and after all, and , so an order costs exactly the length of the matching tour. With all tools and setups equal and the move cost a Euclidean distance, the same reduction from the Euclidean TSP, which is NP-complete (Papadimitriou 1977), shows that hole sequencing alone is NP-hard. Here and are at the place of city 1.
Easy cases. With no precedence and only the tool change cost, grouping by tool is optimal, since each tool must be loaded at least once. With precedence of fixed width, the dynamic program above is polynomial.
Open in the cited sources. The cited sources give no hardness result for the version whose only cost is the number of tool changes under precedence, so none is stated here.
Reductions
- From the TSP. As above.
- To the TSP with precedence. An instance is an asymmetric TSP path with precedence constraints on its nodes, also called the sequential ordering problem. Add a dummy node with cost 0 to and from every operation, and put it before every operation in the precedence. A tour that starts at the dummy node is then a path through the operations with the same cost.
Applications
- Process planning. After setup planning, a process planning system orders the operations of each setup and writes them to the operation sheet.
- CAM. The order fixes the tool list and the sequence of toolpaths in the NC program, and the rapid moves between them.
- Machining centers with tool magazines. The tool change time is the main cost between operations on one setup, so fewer runs per tool give a direct saving in cycle time.
References
- S. V. Bhaskara Reddy, M. S. Shunmugam and T. T. Narendran, Operation sequencing in CAPP using genetic algorithms, International Journal of Production Research 37(5), 1999, 1063 to 1074, operation sequencing under the precedence of form features, solved with a genetic algorithm whose coding and crossover keep the precedence
- W. D. Li, S. K. Ong and A. Y. C. Nee, Optimization of process plans using a constraint-based tabu search approach, International Journal of Production Research 42(10), 2004, 1955 to 1985, the process plan model with a machine, a tool and a tool approach direction for each operation, the cost with machine, tool, setup and change terms, and the precedence constraints
- Norbert Ascheuer, Michael Jünger and Gerhard Reinelt, A branch and cut algorithm for the asymmetric traveling salesman problem with precedence constraints, Computational Optimization and Applications 17(1), 2000, 61 to 84, exact solution of the sequencing problem with precedence constraints and asymmetric transition costs
- Richard M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum, 1972, 85 to 103, the NP-completeness of the Hamiltonian circuit problem, which makes the traveling salesman problem NP-hard
- Christos H. Papadimitriou, The Euclidean travelling salesman problem is NP-complete, Theoretical Computer Science 4(3), 1977, 237 to 244, the NP-completeness of the TSP with Euclidean distances, used for the hole sequencing case
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 3RDNRM Edit this page History Report an error Markdown