Numerical Analysis of the Dynamic Behavior of Systems with PID: An Approach Using the Python Control Systems Library

Authors

DOI:

https://doi.org/10.31496/retii.v3i1.2061

Keywords:

PID controller, numerical simulation, parametric analysis, control systems, Python

Abstract

This work presents a detailed computational analysis of the behavior of PID (Proportional-Integral-Derivative) controllers through numerical simulation, investigating the individual and combined effects of the parameters Kp, Ki, and Kd on the performance of closed-loop control systems. The methodology employs the Python Control Systems Library to simulate a second-order system representative of common industrial processes, analyzing performance metrics such as overshoot, settling time, and steady-state error. The results show that increasing the proportional gain Kp reduces response time but increases overshoot, while the integral term Ki eliminates steady-state error at the cost of increased oscillation. The derivative term Kd proved effective in reducing overshoot and improving the system's relative stability. The parametric analysis revealed complex interactions among the three terms, highlighting the need for simultaneous tuning to optimize performance. The obtained results corroborate classical control theory and provide practical insights for the design of PID controllers in industrial applications, demonstrating the importance of computational simulation as a tool for analysis and design in control engineering.

Author Biography

Vitor Amadeu Souza, Centro Universitário de Volta Redonda - UniFOA, Volta Redonda, Brasil

Ph.D. candidate in Defense Engineering at the Instituto Militar de Engenharia (IME) and holds a Master’s degree in Physics from the Centro Brasileiro de Pesquisas Físicas (CBPF). Holds a Bachelor’s degree in Computer Engineering, teaching degrees in Mathematics, Physics, Chemistry, and Philosophy, and is also a Systems Analyst. He has specialization training in several fields of Engineering, Computing, Data Science, Artificial Intelligence, and Project Management. Currently, he is a university professor and administrator of Cerne Tecnologia, working in hardware and software development, embedded systems, automation, technological education, and engineering projects.

References

ÅSTRÖM, K. J.; HÄGGLUND, T. Advanced PID control. Research Triangle Park: ISA – The Instrumentation, Systems, and Automation Society, 2006.

BENNETT, S. A History of control engineering 1930-1955. London: Peter Peregrinus, 1993.

DORF, R. C.; BISHOP, R. H. Modern control systems. 13. ed. Boston: Pearson, 2017.

FRANKLIN, G. F.; POWELL, J. D.; EMAMI-NAEINI, A. Feedback Control of Dynamic Systems. 8. ed. Boston: Pearson, 2019.

HARRIS, C. R. et al. Array programming with NumPy. Nature, v. 585, n. 7825, p. 357-362, 2020. Disponível em: https://www.nature.com/articles/s41586-020-2649-2. Acesso em: 01 fev. 2025.

HUNTER, J. D. Matplotlib: A 2D graphics environment. Computing in Science & Engineering, v. 9, n. 3, p. 90-95, 2007.

THOMAS, K. et al. Jupyter Notebooks – a publishing format for reproducible computational workflows. Positioning And Power In Academic Publishing: Players, Agents and Agendas, [S.L.], p. 87-90, 2016. Disponível em: https://ebooks.iospress.nl/doi/10.3233/978-1-61499-649-1-87. Acesso em: 23 fev. 2025.

MURRAY, R. M.; ÅSTRÖM, K. J.; BOYD, S. P. Future Directions in Control in an Information-Rich World. IEEE Control Systems Magazine, v. 28, n. 2, p. 20-33, 2008. Disponível em: https://ieeexplore.ieee.org/abstract/document/1188769?casa_token=bV6T_2GE_qYAAAAA:5XOjbu7A2JxRQxcMjSwzrSyU0SRMScEg BBXiu9D60xu3EH-9QmZJIFmOAzX09XJGFyiRY76QpZ4. Acesso em: 13 mar. 2025.

MURRAY, R. et al. The Python Control Systems Library (python-control). 2021 60Th Ieee Conference on Decision And Control (Cdc), [S.L.], p. 4875-4881, 14 dez. 2021. Disponível em: https://ieeexplore.ieee.org/abstract/document/9683368/?casa_token=1TT7P8r7LQQAAAAA:_6S62YVaamdRdUrujwZ2lB-0cG0qts0XqtrHp0-Gmud35-TVW8k_ofjXSelaEBCL_WkGGcE1CqE. Acesso em: 05 mar. 2025.

NISE, N. S. Control systems engineering. 7. ed. Hoboken: John Wiley & Sons, 2015.

OGATA, K. Modern Control Engineering. 5. ed. Boston: Prentice Hall, 2010.

RIVERA, D. E.; MORARI, M.; SKOGESTAD, S. Internal model control: PID controller design. Industrial & Engineering Chemistry Process Design and Development, v. 25, n. 1, p. 252-265, 1986. Disponível em: https://pubs.acs.org/doi/pdf/10.1021/i200032a041?casa_token=3s4Q-6IzTj8AAAAA:dXqGK4_cQYZvtOr3QB4nyGgDVgylKP__ g5bOWVycXBbzKGc5_izPkP7etyua6dPnF0k1YNMcgkp1jplk. Acesso em: 06 abr. 2025.

SEBORG, D. E.; EDGAR, T. F.; MELLICHAMP, D. A. Process dynamics and control. 4. ed. Hoboken: John Wiley & Sons, 2016.

VAN ROSSUM, G.; DRAKE, F. L. Python 3 reference manual. Scotts Valley: CreateSpace, 2009.

VISIOLI, A. Practical PID control. London: Springer, 2006.

ZIEGLER, J. G.; NICHOLS, N. B.. Optimum Settings for Automatic Controllers. Journal Of Fluids Engineering, [S.L.], v. 64, n. 8, p. 759-765, 1 nov. 1942. Disponível em: https://asmedigitalcollection.asme.org/fluidsengineering/article-abstract/64/8/759/1155342/Optimum-Settings-for-Automatic-Controllers. Acesso em: 15 mar. 2025.

Published

2026-06-02

How to Cite

Souza, V. A. (2026). Numerical Analysis of the Dynamic Behavior of Systems with PID: An Approach Using the Python Control Systems Library. Revista De Engeharia, TI E Inovação, 3(1), 1–12. https://doi.org/10.31496/retii.v3i1.2061

Similar Articles

1 2 3 4 5 6 7 > >> 

You may also start an advanced similarity search for this article.