mfg-production-planning
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseProduction Planning (MPS/MRP)
生产计划(MPS/MRP)
Framework
框架
IRON LAW: Plan Hierarchically — Demand → MPS → MRP → Shop Floor
Production planning flows TOP-DOWN:
1. Demand forecast / customer orders → what to make, when
2. MPS → master schedule for finished goods
3. MRP → material and component requirements (what to buy, when)
4. Shop floor scheduling → which machine, which sequence
Skipping levels (going from demand forecast directly to shop floor)
creates chaos — material shortages, capacity conflicts, missed deliveries.IRON LAW:分层规划——需求 → MPS → MRP → 车间现场
生产计划采用自上而下的流程:
1. 需求预测/客户订单 → 生产什么、何时生产
2. MPS → 成品主生产计划
3. MRP → 物料与组件需求(采购什么、何时采购)
4. 车间排程 → 使用哪台机器、生产顺序如何
跳过中间层级(从需求预测直接到车间现场)
会导致混乱——物料短缺、产能冲突、交付延误。Planning Hierarchy
规划层级
| Level | Plan | Horizon | Granularity | Decides |
|---|---|---|---|---|
| Strategic | S&OP (Sales & Operations Planning) | 12-18 months | Monthly, product family | Capacity investments, workforce planning |
| Tactical | MPS (Master Production Schedule) | 3-6 months | Weekly, end product | What to produce each week |
| Operational | MRP (Material Requirements Planning) | 4-12 weeks | Daily, component/material | What to order, when, how much |
| Execution | Shop Floor Scheduling | 1-2 weeks | Hourly, work center | Sequence, machine assignment |
| 层级 | 计划类型 | 时间跨度 | 粒度 | 决策内容 |
|---|---|---|---|---|
| 战略层 | S&OP(销售与运营规划) | 12-18个月 | 月度、产品系列 | 产能投资、人员规划 |
| 战术层 | MPS(主生产计划) | 3-6个月 | 周度、最终产品 | 每周生产什么 |
| 运营层 | MRP(物料需求计划) | 4-12周 | 日度、组件/物料 | 采购什么、何时采购、采购量多少 |
| 执行层 | 车间排程 | 1-2周 | 小时级、工作中心 | 生产顺序、机器分配 |
MPS Process
MPS流程
- Inputs: Demand forecast + customer orders + current inventory + safety stock targets
- Logic: For each week, calculate: Production Needed = Demand - Beginning Inventory - Scheduled Receipts + Safety Stock
- Output: Planned production quantities by week for each finished product
- Constraint: Must not exceed available capacity (rough-cut capacity planning check)
- 输入:需求预测 + 客户订单 + 当前库存 + 安全库存目标
- 逻辑:每周计算:需生产量 = 需求量 - 期初库存 - 计划到货量 + 安全库存
- 输出:各成品每周的计划生产数量
- 约束:不得超过可用产能(需通过粗能力规划校验)
MRP Process
MRP流程
- Inputs: MPS (what to make) + BOM (Bill of Materials — what it's made of) + Inventory status + Lead times
- Logic: "Explode" the BOM — for each finished good, calculate when each component/material must be ordered to arrive in time
- Output: Planned purchase orders and production orders with dates and quantities
- Key calculation: Order date = Need date - Lead time
- 输入:MPS(生产内容) + BOM(物料清单——产品构成) + 库存状态 + 提前期
- 逻辑:“拆解”BOM——针对每个成品,计算各组件/物料的订购时间以确保及时到货
- 输出:带日期和数量的计划采购订单与生产订单
- 核心计算:订购日期 = 需求日期 - 提前期
Scheduling Algorithms
排程算法
| Algorithm | Rule | Best When |
|---|---|---|
| FCFS (First Come First Served) | Process in order received | Low complexity, fairness matters |
| SPT (Shortest Processing Time) | Shortest job first | Minimize average flow time |
| EDD (Earliest Due Date) | Most urgent due date first | Minimize late deliveries |
| Bottleneck-first | Schedule the constraint first, subordinate rest | Capacity-constrained environments (TOC logic) |
| 算法 | 规则 | 适用场景 |
|---|---|---|
| FCFS(先到先服务) | 按接收顺序处理任务 | 复杂度低、注重公平性的场景 |
| SPT(最短加工时间) | 优先处理最短任务 | 最小化平均流转时间的场景 |
| EDD(最早到期日) | 优先处理最紧急到期的任务 | 最小化交付延误的场景 |
| 瓶颈优先 | 先安排约束环节的任务,其他环节配合 | 产能受限环境(约束理论逻辑) |
SMED (Single-Minute Exchange of Die)
SMED(单分钟换模)
Reduce changeover time to increase flexibility:
- Separate internal setup (machine stopped) from external (can do while running)
- Convert internal to external where possible
- Streamline remaining internal steps
- Practice and standardize
缩短换模时间以提升灵活性:
- 区分内部换模(机器停机时操作)与外部换模(机器运行时可操作)
- 尽可能将内部换模转化为外部换模
- 简化剩余内部换模步骤
- 反复练习并标准化操作
Output Format
输出格式
markdown
undefinedmarkdown
undefinedProduction Plan: {Product/Period}
生产计划:{产品/周期}
Demand vs Capacity
需求vs产能
| Week | Demand | Available Capacity | Gap |
|---|---|---|---|
| W1 | {units} | {units} | {+/-} |
| 周 | 需求量 | 可用产能 | 差距 |
|---|---|---|---|
| W1 | {数量} | {数量} | {+/-} |
Master Production Schedule
主生产计划
| Week | Product A | Product B | Product C | Total |
|---|---|---|---|---|
| W1 | {units} | {units} | {units} | {units} |
| 周 | 产品A | 产品B | 产品C | 总计 |
|---|---|---|---|---|
| W1 | {数量} | {数量} | {数量} | {数量} |
Material Requirements
物料需求
| Material | Quantity | Order Date | Supplier | Lead Time |
|---|---|---|---|---|
| {material} | {qty} | {date} | {supplier} | {days} |
| 物料 | 数量 | 订购日期 | 供应商 | 提前期 |
|---|---|---|---|---|
| {物料名称} | {数量} | {日期} | {供应商} | {天数} |
Scheduling
排程
| Work Center | Mon | Tue | Wed | Thu | Fri |
|---|---|---|---|---|---|
| {center} | {job} | {job} | ... | ... | ... |
undefined| 工作中心 | 周一 | 周二 | 周三 | 周四 | 周五 |
|---|---|---|---|---|---|
| {中心名称} | {任务} | {任务} | ... | ... | ... |
undefinedGotchas
注意事项
- Forecast accuracy limits everything: MPS/MRP is only as good as the demand forecast. Track forecast accuracy (MAPE) and build safety stock proportional to forecast error.
- Lead time variability kills plans: If supplier lead time is "2-6 weeks" (4 week variability), you need safety stock for the worst case. Reduce variability through supplier management.
- BOM accuracy is critical for MRP: A wrong BOM means ordering wrong materials. Audit BOMs quarterly.
- Frozen zone: The first 1-2 weeks of MPS should be "frozen" (no changes) to allow stable execution. Changes inside the frozen zone cascade chaos through the system.
- Finite vs infinite capacity: Basic MRP assumes infinite capacity (ignores machine constraints). Always layer a capacity check (rough-cut or detailed) on top of MRP output.
- 预测精度决定一切:MPS/MRP的效果完全依赖需求预测的准确性。跟踪预测精度(MAPE),并根据预测误差比例设置安全库存。
- 提前期波动会打乱计划:如果供应商提前期是“2-6周”(波动4周),则需为最坏情况准备安全库存。通过供应商管理减少波动。
- BOM准确性对MRP至关重要:错误的BOM会导致采购错误物料。每季度审核BOM。
- 冻结区:MPS的前1-2周应处于“冻结”状态(不允许更改),以确保稳定执行。冻结区内的变更会引发系统连锁混乱。
- 有限vs无限产能:基础MRP假设无限产能(忽略机器约束)。务必在MRP输出之上叠加产能校验(粗能力或详细能力规划)。
References
参考资料
- For S&OP process design, see
references/sop-process.md - For demand forecasting methods, see
references/demand-forecasting.md
- 关于S&OP流程设计,请参考
references/sop-process.md - 关于需求预测方法,请参考
references/demand-forecasting.md