# 厄朗C

**厄朗C**（Erlang C）是一种排队公式，它给出的是：当呼叫到达一个具有单一共享队列的多服务台系统时，必须等待服务的概率。它是计算呼叫中心需要多少坐席员才能达到服务水平目标的标准方法。该公式由[阿格纳·克拉鲁普·厄朗](https://www.edgepedia.org/zh/agner-krarup-erlang)（Agner Krarup Erlang）于1917年在哥本哈根电话公司（Copenhagen Telephone Company）推导得出，用于确定人工交换机的规模，至今仍是联络中心人员配置计算和商业劳动力管理软件的基础。<sup>[1](https://github.com/gethryn/erlang-c)</sup><sup> • </sup><sup>[2](https://queuepilot.io/erlang-c-calculator)</sup>

| 关键事实 | 详情 |
|---|---|
| 计算内容 | 到达呼叫必须在队列中等待的概率（延迟概率），由此可推导出服务水平、平均应答速度和占用率<sup>[2](https://queuepilot.io/erlang-c-calculator)</sup> |
| 排队模型 | M/M/N模型：泊松到达、指数分布的服务时间、N个统计上相同的坐席员、单一共享队列<sup>[3](https://myweb.ecu.edu/ROBBINST/PDFs/Comparing%20Erlang%20A%20and%20Erlang%20C%20-%20WP.pdf)</sup> |
| 假设条件 | 系统忙时呼叫等待、按到达顺序服务、分配给第一个空闲坐席员、队列无限长；不建模放弃的呼叫<sup>[4](https://www.erlang.com/erlangforexcel-manual/the_erlang_c_traffic_model.htm)</sup> |
| 稳定性条件 | 仅当提供负载A小于坐席员数量N时，队列才稳定<sup>[5](https://github.com/UrbanNomadIT/erlang-c-calculator)</sup> |
| 典型输入与输出 | 呼叫量、平均处理时间，以及服务水平目标（如80%的呼叫在20秒内应答）；输出为最少坐席员数量<sup>[6](https://www.peopleware.com/hubfs/pdfs/pw-ebooks/en/erlang-c-call-center-planning.pdf)</sup> |
| 已知偏差 | 预测误差严重偏向悲观，即真实系统的表现往往优于预测；误差随放弃率增大<sup>[7](https://ieeexplore.ieee.org/document/5678980/)</sup> |
| 主要替代方案 | 厄朗A，增加了主叫放弃；2003年一篇被广泛引用的综述建议将其作为厄朗C的标准替代方案<sup>[3](https://myweb.ecu.edu/ROBBINST/PDFs/Comparing%20Erlang%20A%20and%20Erlang%20C%20-%20WP.pdf)</sup> |

## 模型及其假设

厄朗C是M/M/N排队模型的行业名称。在该模型中，呼叫以已知平均速率的泊松过程到达，由固定数量的统计上相同的坐席员处理，其服务时间服从指数分布。<sup>[3](https://myweb.ecu.edu/ROBBINST/PDFs/Comparing%20Erlang%20A%20and%20Erlang%20C%20-%20WP.pdf)</sup>完整的假设集为：呼叫随机进入队列，用户发现系统忙时等待，服务时间服从指数分布，用户按到达顺序接受服务，用户前往第一个空闲服务台，队列长度无限。<sup>[4](https://www.erlang.com/erlangforexcel-manual/the_erlang_c_traffic_model.htm)</sup>

最具影响的假设是模型没有明确说出的最后一条：主叫从不挂断。厄朗C没有考虑放弃的呼叫，这对于设计合理的呼叫中心来说是可以辩护的，但当该模型被用于分析一个表现不佳的现有呼叫中心时，则可能产生误导。<sup>[4](https://www.erlang.com/erlangforexcel-manual/the_erlang_c_traffic_model.htm)</sup>厄朗C和厄朗A都忽略了客户的重复拨号行为，即在放弃呼叫后的再次尝试，尽管这种行为可能相当显著。<sup>[8](https://www.sciencedirect.com/science/article/pii/S0166531615000693)</sup>

## 输入、输出与人员配置计算

计算从提供负载开始，以厄朗为单位：呼叫到达率乘以平均处理时间，用相同的时间单位表示。一个厄朗就是每小时一个坐席小时的工作量。<sup>[5](https://github.com/UrbanNomadIT/erlang-c-calculator)</sup><sup> • </sup><sup>[9](https://github.com/Timiiieee/wfm-toolkit)</sup>根据提供负载A和坐席员数量N，公式给出延迟概率，由此可得出规划人员实际管理的量：

- **服务水平**：在阈值内应答的呼叫占比，例如80%在20秒内应答。<sup>[2](https://queuepilot.io/erlang-c-calculator)</sup>
- **平均应答速度（ASA）**：所有呼叫的预期等待时间。<sup>[5](https://github.com/UrbanNomadIT/erlang-c-calculator)</sup>
- **占用率**：坐席员忙碌的时间占比，等于A/N。<sup>[5](https://github.com/UrbanNomadIT/erlang-c-calculator)</sup>

人员配置问题则反向运行：给定呼叫量、处理时间和目标（如80%的呼叫在20秒内应答），公式给出满足该目标所需的最少坐席员数量。<sup>[6](https://www.peopleware.com/hubfs/pdfs/pw-ebooks/en/erlang-c-call-center-planning.pdf)</sup>一个给出了计算过程、用于验证30种编程语言实现的参考示例是：每30分钟100个呼叫，平均处理时间180秒，目标为80%在20秒内应答，需要14名坐席员。<sup>[1](https://github.com/gethryn/erlang-c)</sup>

服务水平目标可以用两种等价形式指定：在x秒内应答的呼叫百分比，或所有呼叫的平均应答速度。诸如ErlCAgents()和ErlCCalls()等电子表格实现可接受任一形式，第一种形式使用四个参数，第二种形式使用三个参数。<sup>[10](https://www.erlang.com/erlangforexcel-manual/service_level_targets.htm)</sup>

## 稳定性边缘附近的敏感性

厄朗C的输出在人员配置方面具有强烈的非线性，这正是该公式之所以重要的原因：简单的“呼叫量除以容量”计算低估了随机性所要求的水平。<sup>[11](https://queuemath.com/)</sup>在稳定性边缘附近，单个坐席员就能大幅改变服务水平。在16.7厄朗的工作负载下，从20名坐席员增加到21名，服务水平不是提高5个百分点，而是提高近10个百分点，从约73%提高到约83%（20秒内应答）。<sup>[2](https://queuepilot.io/erlang-c-calculator)</sup>

在小规模下，这种效应则朝相反方向运行。

## 实际中的准确性

放宽厄朗C假设的模拟研究发现，该模型存在显著误差，但误差具有明显的倾向，且大多偏向悲观：真实系统往往表现优于预测。预测误差与主叫放弃的频率密切相关，这意味着该公式在坐席员较多且利用率相对较低的呼叫中心最为准确。作者认为，这种保守倾向可能有助于解释该模型的持续流行。<sup>[7](https://ieeexplore.ieee.org/document/5678980/)</sup>另一项独立的模拟比较得出了一致的图景：厄朗C倾向于给出悲观估计，而厄朗A往往给出乐观估计，并且厄朗A在所有条件下并不都优于厄朗C，即使在放弃不可忽略的情况下也是如此。<sup>[3](https://myweb.ecu.edu/ROBBINST/PDFs/Comparing%20Erlang%20A%20and%20Erlang%20C%20-%20WP.pdf)</sup>

由于原始厄朗C给出的是区间层面的最少坐席员数量，劳动力管理团队会在其上叠加实际调整：最大占用率上限（因为占用率超过约85%会损害坐席员的体验），以及按收缩率上调人员数量，将区间人员配置转换为排班人数，考虑休息、培训和缺勤。<sup>[9](https://github.com/Timiiieee/wfm-toolkit)</sup><sup> • </sup><sup>[12](https://workforceanalyst.com/blog/complete-guide-erlang-c-staffing)</sup>常见的应用错误包括使用日均值而非高峰时段，以及误读“80/20”目标——它意味着80%的呼叫在进入队列后20秒内应答，而不是80%的呼叫从发起到应答总共不超过20秒。<sup>[12](https://workforceanalyst.com/blog/complete-guide-erlang-c-staffing)</sup>

## 厄朗A及其扩展

最流行的替代方案是厄朗A模型，它是厄朗C的扩展，允许主叫放弃，主叫的耐心有限。认识到厄朗C的缺陷后，甘斯（Gans）、库勒（Koole）和曼德尔鲍姆（Mandelbaum）于2003年发表的对呼叫中心文献的有影响力的综述建议将厄朗A作为替代流行厄朗C模型的标准，2005年的一项实证研究提出了类似论点。<sup>[3](https://myweb.ecu.edu/ROBBINST/PDFs/Comparing%20Erlang%20A%20and%20Erlang%20C%20-%20WP.pdf)</sup>研究继续探索进一步的扩展，包括每次服务后服务台不可用的厄朗C系统（建模为水平依赖的准生灭过程），以及增加重拨和重新连接的流体近似。<sup>[13](https://www.sciencedirect.com/science/article/pii/S0166531626000246)</sup><sup> • </sup><sup>[8](https://www.sciencedirect.com/science/article/pii/S0166531615000693)</sup>

## 计算

该公式涉及泊松项之和，直接用阶乘计算会在约170名坐席员以上时溢出。因此，可靠的实现使用Lanczos lgamma函数在对数空间中计算泊松项，从而在任何中心规模下保持结果精确。<sup>[1](https://github.com/gethryn/erlang-c)</sup>厄朗C已嵌入电子表格、独立网页计算器和企业劳动力管理软件中，并且存在数十种编程语言的参考实现。<sup>[10](https://www.erlang.com/erlangforexcel-manual/service_level_targets.htm)</sup><sup> • </sup><sup>[1](https://github.com/gethryn/erlang-c)</sup>

## References

1. [Erlang C call-centre staffing: live calculator and implementations in 30 languages, GitHub (gethryn/erlang-c)](https://github.com/gethryn/erlang-c)
2. [Erlang C calculator, QueuePilot](https://queuepilot.io/erlang-c-calculator)
3. [Robbins, T. Evaluating the Performance of the Erlang Models for Call Centers](https://myweb.ecu.edu/ROBBINST/PDFs/Comparing%20Erlang%20A%20and%20Erlang%20C%20-%20WP.pdf)
4. [The Erlang C traffic model, Erlang for Excel manual](https://www.erlang.com/erlangforexcel-manual/the_erlang_c_traffic_model.htm)
5. [Erlang C Calculator, GitHub (UrbanNomadIT/erlang-c-calculator)](https://github.com/UrbanNomadIT/erlang-c-calculator)
6. [Erlang C call center planning ebook, PeopleWare](https://www.peopleware.com/hubfs/pdfs/pw-ebooks/en/erlang-c-call-center-planning.pdf)
7. [Does the Erlang C model fit in real call centers? Proceedings of the 2010 Winter Simulation Conference, IEEE](https://ieeexplore.ieee.org/document/5678980/)
8. [Fluid approximation of a call center model with redials and reconnects, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S0166531615000693)
9. [wfm-toolkit: Erlang-C call-center staffing calculator, GitHub (Timiiieee/wfm-toolkit)](https://github.com/Timiiieee/wfm-toolkit)
10. [Service level targets, Erlang for Excel manual](https://www.erlang.com/erlangforexcel-manual/service_level_targets.htm)
11. [free contact centre staffing calculator | erlang c | queuemath](https://queuemath.com/)
12. [The Complete Guide to Erlang C Staffing, WorkforceAnalyst.com](https://workforceanalyst.com/blog/complete-guide-erlang-c-staffing)
13. [Solving queueing systems with impatient customers and stochastic agent unavailability using matrix-analytic methods, Performance Evaluation](https://www.sciencedirect.com/science/article/pii/S0166531626000246)]

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 通信与日常技术 › 电话系统与服务 › 交换与交换局

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/erlang-c

English original: https://www.edgepedia.org/erlang-c
