# PID控制器设计

PID控制器是一种反馈控制器，它根据设定值与实测过程变量之间的误差计算输出，并综合该误差的比例、积分和微分项。设计这样的控制器，意味着选择这些项的结构并整定其增益，使闭环达到速度、超调和鲁棒性方面的目标。这种结构仍是工业界的默认选择：工业中使用的控制器超过90%采用PID架构<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2025/file/e40e65df08fc9b925c1da59fc25a2bd6-Paper-Conference.pdf)</sup>，它被称为最著名的控制器，在工业中具有突出的重要性和普及度。<sup>[2](https://link.springer.com/content/pdf/10.1007/s00170-021-07682-3.pdf)</sup>

| 关键事实 | 数值或陈述 | 来源 |
|---|---|---|
| 控制律 | \( u(t) = K \left( e(t) + \frac{1}{T_{i}} \int_{0}^{t} e(\tau)\,d\tau + T_{d} \cdot \frac{de(t)}{dt} \right) \)，其中比例增益为 \( K \)，积分时间为 \( T_{i} \)，微分时间为 \( T_{d} \) | <sup>[3](https://www.isa.org/getmedia/fb0e41bc-e4f3-422a-9f67-b9bd31340e16/Advanced-PID-Control_AstromHagglund_Chapter1-Introduction.pdf)</sup> |
| 工业占比 | 工业中使用的控制器超过90%采用PID架构 | <sup>[1](https://proceedings.neurips.cc/paper_files/paper/2025/file/e40e65df08fc9b925c1da59fc25a2bd6-Paper-Conference.pdf)</sup> |
| 首次三项控制分析 | 米诺尔斯基（Minorsky），1922年，为美国海军进行自动船舶操舵 | <sup>[4](https://doi.org/10.1111/j.1559-3584.1922.tb04958.x)</sup> |
| 经典整定规则 | 齐格勒（Ziegler）与尼科尔斯（Nichols），《自动控制器的最佳设定》，1942年 | <sup>[5](https://doi.org/10.1115/1.4019264)</sup> |
| 已记录的整定规则 | 奥德怀尔（O'Dwyer）手册中收录了408个独立的PI和PID整定规则来源 | <sup>[6](https://stars.library.ucf.edu/cgi/viewcontent.cgi?article=4423&context=etd)</sup> |
| 经典规则的典型鲁棒性 | 对于纯滞后与时间常数之比为0.1至1的过程，齐格勒-尼科尔斯、科恩-库恩以及负载扰动优化（IAE、ISE、ITAE）公式的增益裕度约为1.5 | <sup>[7](https://ieeexplore.ieee.org/document/508897)</sup> |
| 投运性能 | 在一家拥有2000多个回路的典型造纸厂中，97%为基于PI的控制器，只有20%运行良好；整定不良（30%）和阀门问题（30%）是主要原因 | <sup>[3](https://www.isa.org/getmedia/fb0e41bc-e4f3-422a-9f67-b9bd31340e16/Advanced-PID-Control_AstromHagglund_Chapter1-Introduction.pdf)</sup> |

## 工作原理

控制器作用于误差，即设定值 \( r \) 与测量值 \( y \) 之差。在标准时域形式中，<sup>[8](https://eng.libretexts.org/Bookshelves/Introductory_Engineering/Mechatronics%3A_Fundamentals_Design_Integration_and_Validation_%28Zhu%29/03%3A_System_Responses_and_Controls/3.04%3A_PID_Control_and_Its_Gain_Tuning_Methods)</sup>

\[ u(t) = K_{p} \cdot e(t) + K_{i} \int_{0}^{t} e(\tau)\,d\tau + K_{d} \cdot \frac{de(t)}{dt} \]

这对应于传递函数 \( C(s) = K_{p} + K_{i}/s + K_{d} \cdot s \)。PID控制器最初被称为三项控制器，三个参数分别是比例增益 \( k_{p} \)、积分增益 \( k_{i} \) 和微分增益 \( k_{d} \)。<sup>[9](http://www.cds.caltech.edu/~murray/books/AM08/pdf/fbs-pid_24Jul2020.pdf)</sup>

每一项校正不同的行为。三项分别代表过去（误差的积分，即I项）、现在（P项）和未来（误差的线性外推，即D项）。<sup>[3](https://www.isa.org/getmedia/fb0e41bc-e4f3-422a-9f67-b9bd31340e16/Advanced-PID-Control_AstromHagglund_Chapter1-Introduction.pdf)</sup> 积分作用迫使稳态误差为零：在稳态下，只有当 \( e_{0} \) 为零时，才可能出现恒定的控制量 \( u_{0} = k_{i} \cdot e_{0} \cdot t \)。<sup>[3](https://www.isa.org/getmedia/fb0e41bc-e4f3-422a-9f67-b9bd31340e16/Advanced-PID-Control_AstromHagglund_Chapter1-Introduction.pdf)</sup> 组合 \( e + T_{d} \cdot de/dt \) 是对未来 \( T_{d} \) 个时间单位后误差的线性预测，因此微分作用可预判误差的走向。<sup>[3](https://www.isa.org/getmedia/fb0e41bc-e4f3-422a-9f67-b9bd31340e16/Advanced-PID-Control_AstromHagglund_Chapter1-Introduction.pdf)</sup>

在并联或ISA标准形式中，理想控制器的传递函数为 \( G_{c}(s) = K_{c}\left(1 + \frac{1}{T_{i} \cdot s} + T_{d} \cdot s\right) \)；当 \( T_{d} = 0 \) 时得到PI控制器，当 \( T_{i} = \infty \) 时得到[PD控制器](https://www.edgepedia.org/zh/pd-controller)。<sup>[10](http://www.users.abo.fi/khaggblo/PDC/PDC7.pdf)</sup>

## 整定方法

在实际装置上整定从辨识开始。一种常见途径是开环阶跃测试，它给出三个参数：过程增益、时间常数和纯滞后时间，再由这些参数计算整定公式。<sup>[11](https://onlinelibrary.wiley.com/doi/full/10.1002/9781394438525.ch4)</sup> 在齐格勒-尼科尔斯阶跃响应变体中，在响应最大斜率 \( R \) 处作切线，切线与时间轴下方的截距给出滞后量 \( L \)；整定值由表格得出，并可用一阶加纯滞后模型来辨识。<sup>[12](https://sage.cnpereading.com/paragraph/article/?doi=10.1177%2F0020294015600476)</sup> 在这些规则下，比例增益从P控制的 \( 1/\alpha \) 变为PI控制的 \( 0.9/\alpha \)，再变为PID控制的 \( 1.2/\alpha \)，其中 \( \alpha \) 和 \( \tau \) 来自最陡切线；该方法仅限于稳定系统。<sup>[8](https://eng.libretexts.org/Bookshelves/Introductory_Engineering/Mechatronics%3A_Fundamentals_Design_Integration_and_Validation_%28Zhu%29/03%3A_System_Responses_and_Controls/3.04%3A_PID_Control_and_Its_Gain_Tuning_Methods)</sup>

另一种方法是闭环临界增益实验：采用纯比例控制，不断提高增益直至出现持续振荡，得到临界增益 \( K_{c} \) 和临界周期；这些量确定了奈奎斯特图上相位为−180°的临界点。<sup>[12](https://sage.cnpereading.com/paragraph/article/?doi=10.1177%2F0020294015600476)</sup> 该方法不要求开环系统稳定，只要求比例控制器能使其稳定。<sup>[8](https://eng.libretexts.org/Bookshelves/Introductory_Engineering/Mechatronics%3A_Fundamentals_Design_Integration_and_Validation_%28Zhu%29/03%3A_System_Responses_and_Controls/3.04%3A_PID_Control_and_Its_Gain_Tuning_Methods)</sup> 齐格勒和尼科尔斯的主要贡献在于认识到，一个简单的闭环测试可给出两个参数 \( K_{c} \) 和 \( \omega_{c} \)，它们对控制器设计极为有用。<sup>[12](https://sage.cnpereading.com/paragraph/article/?doi=10.1177%2F0020294015600476)</sup>

现代仪表通过继电反馈自动完成这一过程：用继电器代替控制器，使过程进入振荡，临界增益由 \( K_{u} = 4h/(a \cdot \pi) \) 得出，其中 \( h \) 为继电器幅值，\( a \) 为振荡幅值；齐格勒-尼科尔斯闭环整定值为 \( K_{p} = K_{u}/2 \)、\( T_{i} = P_{u}/2 \)、\( T_{d} = P_{u}/8 \)。<sup>[13](https://jckantor.github.io/CBE30338/04.06-PID-Controller-Tuning.html)</sup> 极限环频率近似为过程相位滞后180°处的临界频率<sup>[14](https://lup.lub.lu.se/search/files/48236842/TFRT_7426.pdf)</sup>，该方法可实现一键整定，无需操作员提供先验信息。<sup>[14](https://lup.lub.lu.se/search/files/48236842/TFRT_7426.pdf)</sup>

应用某种规则后，还需通过以下实用修改完成实现，并依据超调和调节时间目标验证回路。

## 起源

三个PID控制项首次组合是在1922年，见于米诺尔斯基为美国海军进行自动船舶操舵的工作，发表为《自动操舵船体的方向稳定性》，载于《美国海军工程师学会杂志》。<sup>[4](https://doi.org/10.1111/j.1559-3584.1922.tb04958.x)</sup> 这项工作直到1934年哈罗德·哈曾（Harold Hazen）引用它之前，实际上未引起学界注意。<sup>[15](https://skoge.folk.ntnu.no/prost/proceedings/PID-2024/0047.pdf)</sup>

使整定系统化的规则出现在J. G. 齐格勒（J. G. Ziegler）和N. B. 尼科尔斯（N. B. Nichols）的《自动控制器的最佳设定》中，载于《美国机械工程师学会汇刊》，1942年<sup>[5](https://doi.org/10.1115/1.4019264)</sup>，源于泰勒仪器公司的研究。<sup>[6](https://stars.library.ucf.edu/cgi/viewcontent.cgi?article=4423&context=etd)</sup> 1942年的论文考察了控制器中的三种主要控制作用，并为每种作用提出了实用名称和测量单位，构成了在现场快速调整控制器的基础。<sup>[5](https://doi.org/10.1115/1.4019264)</sup> AMIGO方法（近似MIGO）由K. J. 奥斯特伦（Åström）和T. 海格伦德（Hägglund）在《过程控制杂志》2004年报道，是对齐格勒-尼科尔斯阶跃响应方法的重新审视。<sup>[16](https://doi.org/10.1016/j.jprocont.2004.01.002)</sup>

## 变体

**规则族在假设和结果上不同。** 齐格勒-尼科尔斯规则有两个严重缺点：使用的过程信息太少，且所得闭环缺乏鲁棒性。<sup>[9](http://www.cds.caltech.edu/~murray/books/AM08/pdf/fbs-pid_24Jul2020.pdf)</sup> 科恩-库恩（Cohen–Coon）方法在纯滞后相对于开环时间常数较大时，纠正齐格勒-尼科尔斯缓慢的稳态响应；它仅适用于带滞后的一阶模型，目标为四分之一衰减比，并可能给出不稳定的闭环系统。<sup>[17](https://eng.libretexts.org/@api/deki/pages/22413/pdf/9.3%253A%2bPID%2bTuning%2bvia%2bClassical%2bMethods.pdf)</sup> 钱-赫罗内斯-雷斯威克（Chien–Hrones–Reswick，CHR）方法由齐格勒-尼科尔斯开环方法导出，以获得无超调的最快响应和20%超调的最快响应。<sup>[6](https://stars.library.ucf.edu/cgi/viewcontent.cgi?article=4423&context=etd)</sup> 内模控制（IMC）方法以鲁棒性为出发点开发，因为齐格勒-尼科尔斯开环和科恩-库恩给出较大的控制器增益和较短的积分时间，不利于化学工程应用。<sup>[17](https://eng.libretexts.org/@api/deki/pages/22413/pdf/9.3%253A%2bPID%2bTuning%2bvia%2bClassical%2bMethods.pdf)</sup>

对于增益为 \( K \)、时间常数为 \( \tau \)、纯滞后为 \( \theta \) 的过程，AMIGO PID规则为<sup>[13](https://jckantor.github.io/CBE30338/04.06-PID-Controller-Tuning.html)</sup>

\[ K_{c} = \frac{1}{K}\left(0.2 + 0.45\frac{\tau}{\theta}\right), \quad \tau_{I} = \frac{0.4\theta + 0.8\tau}{\theta + 0.1\tau}\theta, \quad \tau_{D} = \frac{0.5\theta\tau}{0.3\theta + \tau} \]

其中，当 \( \theta < \tau \) 时设定值权重 \( \beta = 0 \)，当 \( \theta > \tau \) 时 \( \beta = 1 \)。基于大量仿真研究，AMIGO通常对滞后主导的动态（\( \theta > \tau \)）提供良好性能，但对 \( \theta < \tau \) 过于保守。<sup>[13](https://jckantor.github.io/CBE30338/04.06-PID-Controller-Tuning.html)</sup> 这一领域很广：奥德怀尔的手册记录了408个独立的整定规则来源<sup>[6](https://stars.library.ucf.edu/cgi/viewcontent.cgi?article=4423&context=etd)</sup>，而在比较仿真中，没有任何规则在所有测试装置上始终给出最低的超调和调节时间，因此无法作出通用推荐。<sup>[6](https://stars.library.ucf.edu/cgi/viewcontent.cgi?article=4423&context=etd)</sup>

**结构变体解决特定问题。** 纯微分项被替换为微分滤波器，得到PIDF控制器，以避免阶跃设定值下的脉冲输出和高频噪声放大；滤波器时间常数通常为 \( T_{f} = T_{d}/N \)，其中 \( N \) 在5到20范围内。<sup>[9](http://www.cds.caltech.edu/~murray/books/AM08/pdf/fbs-pid_24Jul2020.pdf)</sup> 设定值加权给出二自由度控制器，可分别针对设定值跟踪和扰动抑制进行整定；在巡航控制示例中，\( \beta = 0 \) 消除了超调。<sup>[9](http://www.cds.caltech.edu/~murray/books/AM08/pdf/fbs-pid_24Jul2020.pdf)</sup> [抗积分饱和](https://www.edgepedia.org/zh/anti-windup)通过来自执行器模型的额外反馈路径实现，复位增益选为积分增益的倍数。<sup>[9](http://www.cds.caltech.edu/~murray/books/AM08/pdf/fbs-pid_24Jul2020.pdf)</sup> 将微分作用移入反馈路径得到PI-D（B型）控制器，将比例和微分作用都移入反馈得到I-PD（C型）控制器，二者均用于消除设定值冲击现象。<sup>[18](https://engineering.purdue.edu/~zak/Second_ed/PID_handout.pdf)</sup> 对于非线性装置，增益调度针对不同工作点使用不同的PID参数组。<sup>[19](https://www.mdpi.com/2227-9717/13/3/735)</sup>

## 应用

PID控制主导过程工业。1994年对加拿大造纸厂的审计发现，一家典型工厂有2000多个控制回路，其中97%基于PI，只有20%运行良好并降低了过程波动；性能不佳的原因是整定不良（30%）和阀门问题（30%）。<sup>[3](https://www.isa.org/getmedia/fb0e41bc-e4f3-422a-9f67-b9bd31340e16/Advanced-PID-Control_AstromHagglund_Chapter1-Introduction.pdf)</sup> 模型预测控制（MPC）的综述将PID控制器视为工业基准，用来评判替代方案。<sup>[2](https://link.springer.com/content/pdf/10.1007/s00170-021-07682-3.pdf)</sup> 其主导地位基于参数数量少、存在简单的实验和设定规则，以及自动化的可用性：所有主要仪器与控制供应商都将自整定作为一项功能提供，自整定软件也可在PC、SCADA和DCS平台上商业购得。<sup>[20](https://www.ieeecss.org/sites/ieeecss/files/2019-07/IoCT-Part2-01AutoTuners-LR.pdf)</sup>

## 局限与替代方案

**失效模式。** 当执行器饱和破坏反馈回路时，会发生积分器饱和；补救措施包括停止积分和在数字控制中自动反算。<sup>[10](http://www.users.abo.fi/khaggblo/PDC/PDC7.pdf)</sup> 设定值冲击可通过PI-D和I-PD结构，或通过对滤波后的测量值而非误差进行微分来解决。<sup>[18](https://engineering.purdue.edu/~zak/Second_ed/PID_handout.pdf)</sup><sup> • </sup><sup>[10](http://www.users.abo.fi/khaggblo/PDC/PDC7.pdf)</sup> 微分作用会放大测量噪声，微分滤波可加以限制；而在实践中微分作用常被关闭，因为它难以正确整定。<sup>[3](https://www.isa.org/getmedia/fb0e41bc-e4f3-422a-9f67-b9bd31340e16/Advanced-PID-Control_AstromHagglund_Chapter1-Introduction.pdf)</sup> 大多数整定方法假设时不变线性模型，在真实非线性过程上可能表现不佳。<sup>[19](https://www.mdpi.com/2227-9717/13/3/735)</sup> 增益选择不当会产生过大超调、持续振荡或缓慢调节，从而导致能效低下、机械磨损增加和生产率损失。<sup>[21](https://www.mdpi.com/2227-7390/13/21/3461)</sup>

**何时超越PID。** 一项针对带纯滞后的SISO过程，比较PID、纯滞后补偿控制（DTC）和模型预测控制的研究，考虑了带噪声的测量值和建模误差，发现对于无约束过程，当要求高鲁棒性时，DTC或MPC相对于PID的性能提升很小或不存在；但当对过程模型有充分了解时，即使延迟很小，这种提升也是合理的。<sup>[22](https://skoge.folk.ntnu.no/publications/2018/grimholt-forget-sp-pid2018/Another-paper-that-confirms-that-we-can-forget-SP/silva_flesch_normey-rico_ISA-Transactions-2020.pdf)</sup> 对于有约束过程，当考虑鲁棒解时，带抗积分饱和的PID可提供与MPC相似甚至更好的结果。<sup>[22](https://skoge.folk.ntnu.no/publications/2018/grimholt-forget-sp-pid2018/Another-paper-that-confirms-that-we-can-forget-SP/silva_flesch_normey-rico_ISA-Transactions-2020.pdf)</sup> 对于非线性化工厂，已提出模糊和混合模糊PID控制器，以补偿系统变化下的运行。<sup>[23](https://link.springer.com/article/10.1007/s10462-024-10743-0)</sup> 增益选择中的权衡概括了设计张力：增大比例或积分增益可改善响应时间，但会降低相对稳定性；而微分作用可减少超调，代价是对噪声敏感。<sup>[8](https://eng.libretexts.org/Bookshelves/Introductory_Engineering/Mechatronics%3A_Fundamentals_Design_Integration_and_Validation_%28Zhu%29/03%3A_System_Responses_and_Controls/3.04%3A_PID_Control_and_Its_Gain_Tuning_Methods)</sup>

## References

1. [Globally Optimal Policy Gradient Algorithms for Reinforcement Learning with PID Control Policies](https://proceedings.neurips.cc/paper_files/paper/2025/file/e40e65df08fc9b925c1da59fc25a2bd6-Paper-Conference.pdf)
2. [Review on model predictive control: an engineering perspective (International Journal of Advanced Manufacturing Technology, 2021)](https://link.springer.com/content/pdf/10.1007/s00170-021-07682-3.pdf)
3. [Advanced PID Control, Chapter 1: Introduction (Åström & Hägglund, ISA)](https://www.isa.org/getmedia/fb0e41bc-e4f3-422a-9f67-b9bd31340e16/Advanced-PID-Control_AstromHagglund_Chapter1-Introduction.pdf)
4. [N. Minorsky. (1922). DIRECTIONAL STABILITY OF AUTOMATICALLY STEERED BODIES. Journal of the American Society of Naval Engineers.](https://doi.org/10.1111/j.1559-3584.1922.tb04958.x)
5. [J. G. Ziegler, N. B. Nichols (1942). Optimum Settings for Automatic Controllers. Transactions of the American Society of Mechanical Engineers.](https://doi.org/10.1115/1.4019264)
6. [A Comparison And Evaluation of common PID Tuning Methods (UCF thesis)](https://stars.library.ucf.edu/cgi/viewcontent.cgi?article=4423&context=etd)
7. [Performance and gain and phase margins of well-known PID tuning formulas](https://ieeexplore.ieee.org/document/508897)
8. [3.04: PID Control and Its Gain Tuning Methods (eng.libretexts.org)](https://eng.libretexts.org/Bookshelves/Introductory_Engineering/Mechatronics%3A_Fundamentals_Design_Integration_and_Validation_%28Zhu%29/03%3A_System_Responses_and_Controls/3.04%3A_PID_Control_and_Its_Gain_Tuning_Methods)
9. [Feedback Systems, Chapter 11 (Åström & Murray), PID Control](http://www.cds.caltech.edu/~murray/books/AM08/pdf/fbs-pid_24Jul2020.pdf)
10. [Process Control Laboratory 7: PID Controllers (Hägglund, Åbo Akademi)](http://www.users.abo.fi/khaggblo/PDC/PDC7.pdf)
11. [How to Tune Feedback Controllers, Tuning of Industrial Control Systems, 3rd ed., Ch. 4 (Corripio & Newell, Wiley/ISA, 2026)](https://onlinelibrary.wiley.com/doi/full/10.1002/9781394438525.ch4)
12. [Setting the Parameters of Proportional–Integral–Derivative Controllers](https://sage.cnpereading.com/paragraph/article/?doi=10.1177%2F0020294015600476)
13. [4.6 PID Controller Tuning (CBE30338 notebook)](https://jckantor.github.io/CBE30338/04.06-PID-Controller-Tuning.html)
14. [Hägglund & Åström report on relay auto-tuning](https://lup.lub.lu.se/search/files/48236842/TFRT_7426.pdf)
15. [Give Us PID Controllers and We Can Control the World (PID-2024 paper)](https://skoge.folk.ntnu.no/prost/proceedings/PID-2024/0047.pdf)
16. [K.J. Åström, T. Hägglund (2004). Revisiting the Ziegler–Nichols step response method for PID control. Journal of Process Control.](https://doi.org/10.1016/j.jprocont.2004.01.002)
17. [9.3: PID Tuning via Classical Methods (LibreTexts, Chemical Process Dynamics and Controls)](https://eng.libretexts.org/@api/deki/pages/22413/pdf/9.3%253A%2bPID%2bTuning%2bvia%2bClassical%2bMethods.pdf)
18. [Proportional-Integral-Derivative (PID) Control (Purdue)](https://engineering.purdue.edu/~zak/Second_ed/PID_handout.pdf)
19. [Tuning of PID Controllers Using Reinforcement Learning for Nonlinear System Control](https://www.mdpi.com/2227-9717/13/3/735)
20. [Auto-tuners for PID Controllers (IEEE CSS)](https://www.ieeecss.org/sites/ieeecss/files/2019-07/IoCT-Part2-01AutoTuners-LR.pdf)
21. [Q-Learning for Online PID Controller Tuning in Continuous Dynamic Systems: An Interpretable Framework for Exploring Multi-Agent Systems](https://www.mdpi.com/2227-7390/13/21/3461)
22. [Comparative analysis of PID, DTC and MPC strategies for SISO processes with dead time (Silva, Flesch, Normey-Rico), ISA Transactions 99 (2020) 339-350](https://skoge.folk.ntnu.no/publications/2018/grimholt-forget-sp-pid2018/Another-paper-that-confirms-that-we-can-forget-SP/silva_flesch_normey-rico_ISA-Transactions-2020.pdf)
23. [Review on PID, fuzzy and hybrid fuzzy PID controllers for controlling non-linear dynamic behaviour of chemical plants (Artificial Intelligence Review, 2024)](https://link.springer.com/article/10.1007/s10462-024-10743-0)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 25, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 工程与制造 › 电气与电子工程 › Circuits and signal processing

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/pid-controller-design

English original: https://www.edgepedia.org/pid-controller-design
