# 作业车间调度

作业车间调度问题将 n 个作业的工序随时间的推移分配到 m 台机器上，使每个作业的工序按固定路线运行，每台机器一次只加工一道工序，并使最大完工时间 \( C_{\max} \)（即最后一道工序的完成时间）最小化；在标准三字段记法中，最大完工时间版本写作 \( J_{m}\|C_{\max} \)。<sup>[1](https://ir.cwi.nl/pub/29185/Ch14.pdf)</sup> 作业车间的定义特征是工序顺序因作业而异，因此各作业以不同顺序竞争机器。<sup>[2](https://doi.org/10.1287/opre.7.1.10)</sup> 该问题是强 NP 难的：寻找最短长度调度是 NP 完全的，<sup>[3](https://doi.org/10.1287/moor.1.2.117)</sup> 因此预计不存在多项式时间算法。<sup>[4](https://www.sciencedirect.com/science/article/pii/S2214716022000215)</sup> 完全枚举在大规模下毫无希望：一个 \( n \times m \) 实例至多有 \( (n!)^{m} \) 种可行排序，因此一个 20 × 10 实例最多可能有 \( 7.2651 \times 10^{183} \) 种可能调度。<sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0377221798001131)</sup>

| 关键事实 | 值 |
|---|---|
| 记法与目标 | \( J_{m}\|C_{\max} \)：固定作业路线，每台机器一次一道工序，最小化最大完工时间 <sup>[1](https://ir.cwi.nl/pub/29185/Ch14.pdf)</sup> |
| 复杂度 | NP 完全；强 NP 难 <sup>[3](https://doi.org/10.1287/moor.1.2.117)</sup><sup> • </sup><sup>[4](https://www.sciencedirect.com/science/article/pii/S2214716022000215)</sup> |
| 搜索空间 | 至多 \( (n!)^{m} \) 种调度；20 × 10 为 \( 7.2651 \times 10^{183} \) <sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0377221798001131)</sup> |
| 经典基准 | 10 × 10 实例（10 个作业、10 台机器、每作业 10 道工序）：最优值 930；20 世纪 70 年代已知最好值为 972 <sup>[6](https://eprints.soton.ac.uk/145495/1/Scheduling50YearsE-Print.pdf)</sup> |
| 核心模型 | 析取图：最大完工时间等于将机器边无环定向后的最长路径 <sup>[7](https://graph-jsp-env.readthedocs.io/en/latest/theory/Disjunctive-Graph-Formulation.html)</sup> |
| 当今精确求解（10 分钟，376 个经典实例） | OptalCP 在 223 个实例上证明最优（59%），CP Optimizer 192 个（51%），CP-SAT 165 个（44%），CPLEX 27 个（7%） <sup>[8](https://scheduleopt.github.io/benchmarks/jsplib/)</sup> |
| 最大公开基准 | 多达 1,000 台机器上的 1,000,000 道工序（Large-TA，2021） <sup>[9](https://doi.org/10.48550/arxiv.2102.08778)</sup> |

## 工作原理

析取图是标准表示。图 \( G = (V, A, E) \) 为每道工序设一个顶点，以其加工时间为权重，另加一个源点和一个汇点；有向合取弧 \( A \) 编码每个作业的路线，无向析取边 \( E \) 连接同一机器上的每对工序。<sup>[1](https://ir.cwi.nl/pub/29185/Ch14.pdf)</sup><sup> • </sup><sup>[7](https://graph-jsp-env.readthedocs.io/en/latest/theory/Disjunctive-Graph-Formulation.html)</sup> 合取弧施加形如 \( s_{j} - s_{i} \geq p_{i} \) 的开始时间约束；每条析取边要求 \( s_{j} - s_{i} \geq p_{j} \) 或 \( s_{i} - s_{j} \geq p_{i} \)，因此同一时刻只有一道工序占用机器。<sup>[7](https://graph-jsp-env.readthedocs.io/en/latest/theory/Disjunctive-Graph-Formulation.html)</sup><sup> • </sup><sup>[36](https://developers.google.com/optimization/scheduling/job_shop)</sup> 若对每条析取边定向后图保持无环，则调度可行，其最大完工时间等于从源点到汇点的最大权重（关键）路径的权重。<sup>[1](https://ir.cwi.nl/pub/29185/Ch14.pdf)</sup> 活动调度（其中任何工序都无法在不推迟另一工序的情况下提前开始）构成一个支配集，至少包含一个最优调度，尽管最优调度未必是非延迟调度。<sup>[1](https://ir.cwi.nl/pub/29185/Ch14.pdf)</sup>

两种代数视角并存。离散线性规划表述以比 1959 年方案更少的变量处理排序与非干涉约束，<sup>[10](https://doi.org/10.1287/opre.8.2.219)</sup> 而带二选一约束的析取规划形式可转换为混合整数规划，其中二元变量 \( y_{ij} \) 指示机器排序顺序。<sup>[11](https://math.uwaterloo.ca/~bico/papers/jobshop.pdf)</sup> 在约束规划中，机器容量约束 NoOverlap 等价于每台机器容量为 1、每道工序资源消耗为 1 的累积约束。<sup>[4](https://www.sciencedirect.com/science/article/pii/S2214716022000215)</sup>

小规模下的困难性已极为极端：3 × 3 问题已是 NP 难的，<sup>[12](https://www.jstage.jst.go.jp/article/sicejl1962/33/7/33_7_590/_pdf/-char/en)</sup> 除非 P = NP，否则不存在伪多项式算法，<sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0377221798001131)</sup> 且由于判定是否存在长度 \( \leq 4 \) 的调度是 NP 完全的，除非 P = NP，否则不存在性能保证优于 5/4 的近似算法。<sup>[1](https://ir.cwi.nl/pub/29185/Ch14.pdf)</sup>

## 求解方法

### 精确搜索

最有效的分支定界方法在析取图上工作：头 \( r_{i} \)（最早可能开始时间）和尾 \( q_{i} \)（从工序完成到最优最大完工时间的时间下界）提供下界，并在分支前固定析取。<sup>[13](https://www.sciencedirect.com/science/article/abs/pii/0096300194002046)</sup> 分支定界求解了 10 × 10 实例并证明了最优性。<sup>[13](https://www.sciencedirect.com/science/article/abs/pii/0096300194002046)</sup><sup> • </sup><sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0377221798001131)</sup> 启发式与分支定界的组合在 7 分钟内求解了同一实例。<sup>[11](https://math.uwaterloo.ca/~bico/papers/jobshop.pdf)</sup> 格罗米舒及其同事（2012）提出的赫尔德–卡普式动态规划算法比暴力枚举指数级更优，并在数秒至数分钟内求解了一些著名基准实例。<sup>[14](https://doi.org/10.1016/j.cor.2012.02.024)</sup>

### 约束规划

现代 CP 引擎主导精确求解。拉博里及其同事（2018）描述的 IBM ILOG CP Optimizer 交错使用大邻域搜索、迭代潜水、故障导向搜索和可选的多点遗传搜索，以时间表化和边查找为主要传播方法。<sup>[15](https://doi.org/10.1007/s10601-018-9281-x)</sup><sup> • </sup><sup>[8](https://scheduleopt.github.io/benchmarks/jsplib/)</sup> 在 376 个经典实例上的标准化 10 分钟基准中，OptalCP 在 223 个实例上证明最优（59%，差距 3%），CP Optimizer 192 个（51%，8%），CP-SAT 165 个（44%，5%），CPLEX 27 个（7%，差距 43%）；在 80 个 ta 实例上，计数分别为 46、40、23 和 0。<sup>[8](https://scheduleopt.github.io/benchmarks/jsplib/)</sup>

### 启发式与元启发式

调度规则按优先级贪心构建调度；对 42 条规则的比较发现，与最短加工时间（SPT）相关的规则在最大完工时间上始终表现良好，而基于最长加工时间（LPT）的规则始终表现不佳。<sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0377221798001131)</sup> 亚当斯、巴拉斯和扎瓦克（1988）的移动瓶颈法<sup>[16](https://doi.org/10.1287/mnsc.34.3.391)</sup> 将问题分解为单机子问题，并依赖单机情形的精确算法。<sup>[17](http://mba.tuck.dartmouth.edu/pss/Notes/ResearchNotes14.pdf)</sup> 禁忌搜索邻域将移动限制在关键路径上的工序，后来通过将关键路径拆分为同一机器上连续工序的块而得到改进。<sup>[4](https://www.sciencedirect.com/science/article/pii/S2214716022000215)</sup> 范拉尔霍芬、阿尔茨和伦斯特拉（1992）发表了作业车间的模拟退火方法。<sup>[18](https://doi.org/10.1287/opre.40.1.113)</sup>

### 2020 年以来的学习方法

图神经网络方法将调度状态表示为析取图 \( G = (V, C \cup D) \) 并在其上学习调度策略；一个有影响力的方向使用经 PPO 训练的 GIN 网络，在 6 × 6 至 100 × 20 的实例上评估。<sup>[19](https://arxiv.org/html/2406.14096v2)</sup> 动态调度通常在仿真中评估，采用泊松作业到达和机器故障，使用 Q-learning、DQN、PPO 和 DDPG 变体。<sup>[20](https://link.springer.com/article/10.1007/s10462-024-11059-9)</sup><sup> • </sup><sup>[21](https://link.springer.com/article/10.1007/s10845-025-02585-6)</sup> 混合学习-元启发式工作包括 陈、杨、李和王（2020）基于强化学习的自学习遗传算法<sup>[22](https://doi.org/10.1016/j.cie.2020.106778)</sup> 以及 罗、张和樊（2021）针对柔性作业车间的动态多目标深度强化学习。<sup>[23](https://doi.org/10.1016/j.cie.2021.107489)</sup> 在大规模实例上，基于 GNN 的改进启发式于多达 1,000 个作业的数据集上，仅用几分钟计算，就比给予 1 小时时间限制的 CP-SAT 所得的解改进了 15% 至 25%。<sup>[19](https://arxiv.org/html/2406.14096v2)</sup>

## 起源

调度随着约翰逊 1954 年关于带准备时间的两阶段和三阶段生产计划的论文而成为运筹学的一个独立领域，该文求解了最大完工时间的两机流水车间问题。<sup>[24](https://doi.org/10.1002/nav.3800010110)</sup><sup> • </sup><sup>[6](https://eprints.soton.ac.uk/145495/1/Scheduling50YearsE-Print.pdf)</sup> 西森 1959 年在《运筹学》上的综述是作业车间排序的第一篇文献综述。<sup>[2](https://doi.org/10.1287/opre.7.1.10)</sup><sup> • </sup><sup>[17](http://mba.tuck.dartmouth.edu/pss/Notes/ResearchNotes14.pdf)</sup> 曼内（1960）给出了混合整数表述<sup>[10](https://doi.org/10.1287/opre.8.2.219)</sup>，巴拉斯（1969）给出了第一个基于析取图的枚举方法。<sup>[25](https://doi.org/10.1287/opre.17.6.941)</sup> 加雷、约翰逊和塞西于 1976 年证明了 NP 完全性。<sup>[3](https://doi.org/10.1287/moor.1.2.117)</sup>

10 × 10 实例在超过四分之一世纪里抵挡了所有求解尝试；到 20 世纪 70 年代末，已知最好值为 972（麦克马洪和弗洛里安，1975），而现已知最优值为 930。<sup>[6](https://eprints.soton.ac.uk/145495/1/Scheduling50YearsE-Print.pdf)</sup><sup> • </sup><sup>[17](http://mba.tuck.dartmouth.edu/pss/Notes/ResearchNotes14.pdf)</sup> 卡利耶和潘松的分支定界对其求解的日期依记载为 1987 或 1989 年。<sup>[13](https://www.sciencedirect.com/science/article/abs/pii/0096300194002046)</sup><sup> • </sup><sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0377221798001131)</sup> 基准族随后出现：斯托勒、吴和瓦卡里（1992）的 swv 实例，<sup>[26](https://doi.org/10.1287/mnsc.38.10.1495)</sup> 塔亚尔（1993）的 ta 实例，<sup>[27](https://doi.org/10.1016/0377-2217%2893%2990182-m)</sup> 以及 德米尔科尔、梅塔和乌兹索伊（1998）的 dmu 实例。<sup>[28](https://doi.org/10.1016/s0377-2217%2897%2900019-2)</sup> 后来的里程碑包括 格罗米舒及其同事（2012）的动态规划算法，<sup>[14](https://doi.org/10.1016/j.cor.2012.02.024)</sup> 拉博里及其同事（2018）描述的 CP Optimizer 引擎，<sup>[15](https://doi.org/10.1007/s10601-018-9281-x)</sup> 以及 达科尔和特潘（2021）的 Large-TA 基准。<sup>[9](https://doi.org/10.48550/arxiv.2102.08778)</sup>

## 变体

主要变体是柔性作业车间调度问题（FJSP），其中若干台（不一定相同的）机器可以加工每道工序；由于作业车间问题是 NP 难的，它也是 NP 难的。<sup>[29](https://ar5iv.labs.arxiv.org/html/1401.3654)</sup> 布鲁克和施利（1990）称该问题为多用途机器作业车间问题<sup>[30](https://doi.org/10.1007/bf02238804)</sup>，布兰迪马尔特（1993）将其命名为柔性作业车间调度问题。<sup>[31](https://doi.org/10.1007/bf02023073)</sup> 其额外复杂性在于排序之上的机器分配决策，这阻碍了扩展用于作业车间的有效单机松弛下界。<sup>[32](https://www.sciencedirect.com/science/article/pii/S037722172300382X)</sup> 佩泽拉、莫尔甘蒂和恰斯凯蒂（2007）发表了 FJSP 的遗传算法。<sup>[33](https://doi.org/10.1016/j.cor.2007.02.014)</sup> 更广泛的推广将多用途机器、多处理器任务、换型时间和运输时间整合到作业车间、流水车间、开放车间和混合车间中。<sup>[12](https://www.jstage.jst.go.jp/article/sicejl1962/33/7/33_7_590/_pdf/-char/en)</sup>

## 应用

作业车间和 FJSP 模型应用于制造业各领域，包括汽车、纺织、化工和半导体生产。<sup>[20](https://link.springer.com/article/10.1007/s10462-024-11059-9)</sup><sup> • </sup><sup>[34](https://www.mdpi.com/2079-9292/14/8/1663)</sup> 半导体领域的工作负载促成了多达一千台机器上一百万道工序的基准。<sup>[4](https://www.sciencedirect.com/science/article/pii/S2214716022000215)</sup> 列车调度已被建模为无等待阻塞 FJSP，医院医疗调度被建模为以最大完工时间最小化为目标、并带无等待、阻塞、最大时间滞后、准备和转运时间以及不可用时段的 FJSP。<sup>[32](https://www.sciencedirect.com/science/article/pii/S037722172300382X)</sup>

## 局限与替代方案

精确方法随规模迅速失效：截至 1999 年的一篇综述，没有任何策略能保证大于 20 × 10 的作业车间实例的最优解，<sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0377221798001131)</sup> 甚至强分支定界也在最难的 5 × 20 实例上停滞。<sup>[13](https://www.sciencedirect.com/science/article/abs/pii/0096300194002046)</sup> 许多经典实例仍未解决：在 ta 族中，80 个实例中有 12 个没有最优性证明，所有 45 个 dmu 实例均未解决；ta39 的卡利耶下界为 1791，而最优值为 1795，而同样为 30 × 15 规模的 ta40 下界为 1617，其最优值仅在 [1658, 1669] 内被界定。<sup>[8](https://scheduleopt.github.io/benchmarks/jsplib/)</sup>

作为混合整数规划的替代，约束规划现在是最大完工时间作业车间更强的现成选择，上述求解器差距显示 CPLEX 证明最优的比例为 7%、平均差距 43%，而 OptalCP 为 59% 和 3%，<sup>[8](https://scheduleopt.github.io/benchmarks/jsplib/)</sup> 且 CP 即使被中断也能给出界和保证。<sup>[35](https://ideas.repec.org/a/inm/orijoc/v35y2023i4p817-843.html)</sup> 对于 FJSP，弱下界仍是精确方法的结构性局限。<sup>[32](https://www.sciencedirect.com/science/article/pii/S037722172300382X)</sup> 元启发式以最优性保证换取速度，但存在调参和收敛弱点，<sup>[34](https://www.mdpi.com/2079-9292/14/8/1663)</sup> 而在大规模实例上，学习型改进启发式在同等或远少的时间内现已优于 CP-SAT 基线。<sup>[19](https://arxiv.org/html/2406.14096v2)</sup>

## References

1. [Chapter 14: Job Shop Scheduling (CWI, textbook chapter)](https://ir.cwi.nl/pub/29185/Ch14.pdf)
2. [Roger L. Sisson (1959). Methods of Sequencing in Job Shops, A Review. Operations Research.](https://doi.org/10.1287/opre.7.1.10)
3. [M. R. Garey, D. S. Johnson, Ravi Sethi (1976). The Complexity of Flowshop and Jobshop Scheduling. Mathematics of Operations Research.](https://doi.org/10.1287/moor.1.2.117)
4. [Industrial-size job shop scheduling with constraint programming (Da Col & Teppan, 2022)](https://www.sciencedirect.com/science/article/pii/S2214716022000215)
5. [Deterministic job-shop scheduling: Past, present and future (Jain & Meeran, 1999, EJOR)](https://www.sciencedirect.com/science/article/abs/pii/S0377221798001131)
6. [Scheduling: 50 years of research (survey chapter)](https://eprints.soton.ac.uk/145495/1/Scheduling50YearsE-Print.pdf)
7. [Disjunctive Graph Formulation (Graph Job Shop Environment documentation)](https://graph-jsp-env.readthedocs.io/en/latest/theory/Disjunctive-Graph-Formulation.html)
8. [JSPLib | Scheduling benchmark](https://scheduleopt.github.io/benchmarks/jsplib/)
9. [Da Col, Giacomo, Teppan, Erich (2021). Large-Scale Benchmarks for the Job Shop Scheduling Problem. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2102.08778)
10. [Alan S. Manne (1960). On the Job-Shop Scheduling Problem. Operations Research.](https://doi.org/10.1287/opre.8.2.219)
11. [Applegate & Cook: heuristic plus branch-and-bound solution of MT10](https://math.uwaterloo.ca/~bico/papers/jobshop.pdf)
12. [Generalizations of Shop Scheduling Problems (Brucker, SICE 1994)](https://www.jstage.jst.go.jp/article/sicejl1962/33/7/33_7_590/_pdf/-char/en)
13. [A branch and bound algorithm for the job-shop scheduling problem (Brucker, Jurisch, Sievers)](https://www.sciencedirect.com/science/article/abs/pii/0096300194002046)
14. [Joaquim A.S. Gromicho and colleagues (2012). Solving the job-shop scheduling problem optimally by dynamic programming. Computers & Operations Research.](https://doi.org/10.1016/j.cor.2012.02.024)
15. [Philippe Laborie and colleagues (2018). IBM ILOG CP optimizer for scheduling. Constraints.](https://doi.org/10.1007/s10601-018-9281-x)
16. [Joseph Adams, Egon Balas, Daniel Zawack (1988). The Shifting Bottleneck Procedure for Job Shop Scheduling. Management Science.](https://doi.org/10.1287/mnsc.34.3.391)
17. [Research Notes for Chapter 14 (Baker, job shops)](http://mba.tuck.dartmouth.edu/pss/Notes/ResearchNotes14.pdf)
18. [Peter J. M. van Laarhoven, Emile H. L. Aarts, Jan Karel Lenstra (1992). Job Shop Scheduling by Simulated Annealing. Operations Research.](https://doi.org/10.1287/opre.40.1.113)
19. [Graph Neural Networks for Job Shop Scheduling Problems: A Survey](https://arxiv.org/html/2406.14096v2)
20. [Learn to optimise for job shop scheduling: a survey with comparison between genetic programming and reinforcement learning (Artificial Intelligence Review, 2024)](https://link.springer.com/article/10.1007/s10462-024-11059-9)
21. [Reinforcement learning in dynamic job shop scheduling: a comprehensive review of AI-driven approaches in modern manufacturing (Journal of Intelligent Manufacturing, 2025)](https://link.springer.com/article/10.1007/s10845-025-02585-6)
22. [Ronghua Chen and colleagues (2020). A self-learning genetic algorithm based on reinforcement learning for flexible job-shop scheduling problem. Computers & Industrial Engineering.](https://doi.org/10.1016/j.cie.2020.106778)
23. [Shu Luo, Linxuan Zhang, Yushun Fan (2021). Dynamic multi-objective scheduling for flexible job shop by deep reinforcement learning. Computers & Industrial Engineering.](https://doi.org/10.1016/j.cie.2021.107489)
24. [S. M. Johnson (1954). Optimal two‐ and three‐stage production schedules with setup times included. Naval Research Logistics Quarterly.](https://doi.org/10.1002/nav.3800010110)
25. [Egon Balas (1969). Machine Sequencing Via Disjunctive Graphs: An Implicit Enumeration Algorithm. Operations Research.](https://doi.org/10.1287/opre.17.6.941)
26. [Robert H. Storer, S. David Wu, Renzo Vaccari (1992). New Search Spaces for Sequencing Problems with Application to Job Shop Scheduling. Management Science.](https://doi.org/10.1287/mnsc.38.10.1495)
27. [Benchmarks for basic scheduling problems (European Journal of Operational Research, 1993)](https://doi.org/10.1016/0377-2217%2893%2990182-m)
28. [Benchmarks for shop scheduling problems (European Journal of Operational Research, 1998)](https://doi.org/10.1016/s0377-2217%2897%2900019-2)
29. [A MILP model for an extended version of the Flexible Job Shop Scheduling problem (Birgin et al.)](https://ar5iv.labs.arxiv.org/html/1401.3654)
30. [P. Brucker, R. Schlie (1990). Job-shop scheduling with multi-purpose machines. Computing.](https://doi.org/10.1007/bf02238804)
31. [Paolo Brandimarte (1993). Routing and scheduling in a flexible job shop by tabu search. Annals of Operations Research.](https://doi.org/10.1007/bf02023073)
32. [The flexible job shop scheduling problem: A review](https://www.sciencedirect.com/science/article/pii/S037722172300382X)
33. [F. Pezzella, G. Morganti, G. Ciaschetti (2007). A genetic algorithm for the Flexible Job-shop Scheduling Problem. Computers & Operations Research.](https://doi.org/10.1016/j.cor.2007.02.014)
34. [Intelligent Scheduling Methods for Optimisation of Job Shop Scheduling Problems in the Manufacturing Sector: A Systematic Review (Electronics, 2025)](https://www.mdpi.com/2079-9292/14/8/1663)
35. [Mixed-Integer Programming vs. Constraint Programming for Shop Scheduling Problems: New Results and Outlook (INFORMS Journal on Computing, 2023)](https://ideas.repec.org/a/inm/orijoc/v35y2023i4p817-843.html)
36. [The Job Shop Problem, OR-Tools, Google for Developers](https://developers.google.com/optimization/scheduling/job_shop)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Combinatorics

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/job-shop-scheduling

English original: https://www.edgepedia.org/job-shop-scheduling
