- Introduced by
- Pinedo, M. L.
- Year
- 2016
- Type
- Combinatorial scheduling problem
- Family
- Optimization
What does it do?
Job shop scheduling assigns jobs, each made up of an ordered sequence of operations, to machines over time so that every machine handles one operation at a time and each job's operations follow its required order.
The objective is usually a performance measure such as makespan (the completion time of the last operation) or lateness against due dates. Because the number of feasible schedules grows very rapidly with problem size and the problem is NP-hard, practical work relies on dispatching rules and metaheuristics, while exact methods such as branch-and-bound and constraint programming are used mainly for smaller instances.
The intuition behind the method
Consider a small machine shop with several machines. Each customer order (job) needs a set of operations in a fixed order on different machines: for example, Part 1 needs machining on Machine A and then drilling on Machine C, while Part 2 needs drilling on Machine B and then welding on Machine D. The schedule must place every operation so that no machine works on two operations at once and no part starts an operation before its previous one has finished. If Part 1 reaches Machine C late, Machine C stands idle; if too many parts queue for Machine C, later orders wait. The number of possible sequences grows so quickly with more jobs and machines that exhaustive search is impractical, so the usual approach is to find a good schedule with a heuristic.
History
Standard treatments of the job shop model and its solution methods are given in Pinedo's scheduling textbook (2016). Taillard (1993) provides benchmark instances that researchers use to compare heuristics. The job shop problem is known to be NP-hard, which is why research has moved toward heuristics, metaheuristics and constraint-based methods.
When to use it
Choose job shop scheduling when jobs have different routings through several machines, so that operations of different jobs visit the machines in different orders, and when the objective depends on completion times or due dates. It is useful when machine conflicts between jobs are frequent and the sequence of operations on each machine materially affects delivery. Do not use the job shop model when every job follows the same machine sequence; a flow shop or assembly-line balancing model is more natural in that case. It is also unnecessary when a single machine limits output, which calls for a single-machine model, or when the question concerns long-term capacity rather than detailed sequencing, which is the territory of planning models such as aggregate planning.
Limitations and considerations
- Every pair of operations competing for the same machine is an ordering decision, so the number of candidate schedules grows very rapidly with the number of jobs and machines; because the problem is NP-hard, heuristic schedules on large instances may be far from optimal.
- Dispatching rules choose operations from the current state of the shop without looking ahead, so a rule that performs well on one mix of routings can produce long lateness on another. Results do not transfer between shops without testing on their own data.
- The standard formulation assumes known jobs and deterministic processing times. Machine breakdowns, rush orders and cancellations invalidate the timetable and require rescheduling.
- Frequent rescheduling changes operation start times, which can disrupt worker assignments and promised delivery dates.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Each job can carry its own machine routing, so the model can represent shops where jobs visit machines in different orders, a situation that a single fixed machine sequence cannot describe.
- Because the objective is evaluated on the full timetable, makespan, lateness and machine idle time can be read from the same solution and compared across alternative schedules.
- The operation-level formulation makes precedence and machine conflicts explicit, so a planner can see which constraint is responsible for a late operation.
- The benchmark instances in Taillard (1993) give researchers a shared set of problems on which heuristics can be compared.
Applications
- Illustrative: a machine shop scheduling custom parts across several CNC machines, where each part follows its own sequence of operations and due dates set the priorities.
- Illustrative: a semiconductor fabrication line in which wafer lots pass through many process steps on shared tools, with cycle time and work in process as key measures. Re-entrant flows, in which a lot returns to the same tool group, lie outside the basic job shop formulation and require an extended model.
- Illustrative: a printing plant assigning print jobs to presses with different capabilities, where changeover time is part of the schedule.
- Illustrative: operating-theatre scheduling, in which surgeons, surgical teams and equipment are shared resources and each procedure has ordered stages. Shared staff and uncertain procedure durations go beyond the basic job shop formulation and require an extended model.
How it works
How it works
Define each job, its ordered list of operations, the machine each operation requires, the processing times, and the due dates. Define the available machines and any periods when they are unavailable.
Specify the operation precedence within each job, the capacity rule that each machine processes one operation at a time, and any release times or due dates. Precedence requires that an operation starts only after its predecessor in the same job has finished. The capacity rule requires that no two operations on the same machine overlap in time. These constraints define which schedules are feasible.
Apply a dispatching rule, such as shortest processing time, earliest due date or critical ratio, to decide which waiting operation an idle machine processes next. This produces an initial feasible schedule quickly.
Apply a metaheuristic such as simulated annealing, tabu search, a genetic algorithm or ant colony optimization to modify the schedule through local moves or population-based search, keeping changes that improve the chosen objective.
Compute the objective values of the schedule: the makespan, which is the largest completion time over all jobs; the lateness of each job against its due date; and the machine idle time. The makespan cannot be smaller than the largest total processing time required on any single machine, nor smaller than the total processing time of any single job. Comparing a schedule with these lower bounds shows how much room for improvement remains. If the result does not meet the objectives, change the rules or parameters and run the procedure again.
Common pitfalls
- Minimising makespan when customers are judged on due dates: the completion time of the last operation does not guarantee on-time delivery of each job, so lateness should be part of the objective when due dates matter.
- Leaving out setup or changeover times: a schedule that keeps machines busy may require many changeovers, and a model without them will report higher utilisation than the shop achieves.
- Using shortest processing time as a general rule: SPT has known optimality properties for mean flow time on a single machine, but it gives no makespan guarantee in a job shop.
- Accepting a heuristic schedule without checking it: compare its makespan with a lower bound, such as the largest total machine load or the longest total job processing time, and report the gap. Where standard benchmark instances are used, compare the results with the reference values published for those instances, and test the schedule against actual shop records before it is released to the floor.
Frequently asked questions
What is makespan, and why is it important?
Makespan is the completion time of the last operation in a schedule, measured from a common start time. It is a common objective because it reflects how long the shop takes to finish a set of jobs. It differs from total completion time, which is the sum of completion times across all jobs.
What is the difference between static and dynamic job shop scheduling?
Static scheduling assumes the full set of jobs is known in advance, so a fixed set is optimised once. Dynamic scheduling handles jobs that arrive over time or disruptions to machines, so the schedule is revised as conditions change. The rescheduling method must be fast enough to match the shop's decision cycle.
Which dispatching rule should we use?
No single rule is best for every objective. Shortest Processing Time is associated with mean flow time, Earliest Due Date with maximum lateness on a single machine, and the critical ratio ranks jobs by the time remaining to the due date relative to the work still to be done. In a job shop none of these gives a makespan guarantee, so compare candidate rules by simulation on your own data and priorities.
Can job shop scheduling handle worker skills and cross-training?
Yes, by expanding the resource model so that an operation requires a machine and a qualified worker, for example 'Machine A with Worker 1' or 'Machine A with Worker 2'. This increases problem complexity, so the scheduling software must support multi-resource constraints.
Related methods
Sources
Pinedo, M. L. (2016). Scheduling: Theory, algorithms, and systems (5th ed.). Cham: Springer.
Open DOI referenceTaillard, E. (1993). Benchmarks for basic scheduling problems. European Journal of Operational Research, 64(2), 278-285.
Open DOI reference