PC-Gym: Benchmark Environments For Process Control Problems

Maximilian Bloor,José Torraca,Ilya Orson Sandoval,Akhil Ahmed,Martha White,Mehmet Mercangöz,Calvin Tsay,Ehecatl Antonio Del Rio Chanona,Max Mowbray
2024-10-30
Abstract:PC-Gym is an open-source tool designed to facilitate the development and evaluation of reinforcement learning (RL) algorithms for chemical process control problems. It provides a suite of environments that model a range of chemical processes, incorporating nonlinear dynamics, process disturbances, and constraints. Key features include flexible constraint handling mechanisms, customizable disturbance generation, and modular reward function design. The framework enables benchmarking state-of-the-art RL algorithms against a nonlinear Model Predictive Control (NMPC) oracle across various process control scenarios. Case studies demonstrate PC-Gym's effectiveness in evaluating RL approaches for the control of various chemical engineering systems such as a continuously stirred tank reactor, multistage extraction process, and crystallization reactor. The framework's ability to incorporate realistic disturbances and constraints allows for robust testing of control strategies. Results highlight the performance gaps between RL algorithms and NMPC oracles, demonstrating the utility of PC-Gym for algorithm benchmarking and suggesting areas for improvement in RL-based process control. By offering a standardized platform for developing and assessing RL-based control strategies, PC-Gym aims to accelerate research at the intersection of machine learning and process systems engineering. It bridges the gap between theoretical advancements in RL and practical applications in industrial process control, providing researchers and practitioners with a valuable tool for exploring data-driven control solutions for complex chemical processes.
Systems and Control
What problem does this paper attempt to address?
This paper attempts to address the challenges faced in applying Reinforcement Learning (RL) algorithms in chemical process control. Specifically, chemical processes have complex dynamic characteristics, strict constraints, and various disturbances, which make traditional RL methods difficult to effectively apply in real industrial control scenarios. To overcome these challenges, the paper proposes an open-source tool called PC-Gym, aimed at providing researchers with a standardized platform for developing and evaluating RL algorithms in chemical process control. ### Main Issues: 1. **Complex Dynamic Characteristics**: Chemical processes typically involve multiple interacting variables, nonlinear behaviors, and time-varying parameters, making standard RL techniques difficult to apply directly. 2. **Strict Safety, Environmental, and Economic Constraints**: Chemical processes are subject to strict safety, environmental, and economic constraints, and violating these constraints can lead to severe consequences such as equipment damage, product quality degradation, or personal injury. 3. **Disturbances**: Various disturbances, such as measurement noise, exist in chemical processes, affecting the performance of control strategies. 4. **Lack of Standardized Evaluation Platform**: Existing RL frameworks (such as Gymnasium and OpenAI Gym) provide environments for various control problems but lack environments specifically tailored for chemical process control, unable to fully simulate the complexity and constraints of real industrial scenarios. ### Solution: - **PC-Gym**: This tool includes a series of environments simulating chemical processes, considering nonlinear dynamics, disturbances, and constraints. PC-Gym provides customizable constraint handling, disturbance generation, and reward function design features, allowing researchers to test the robustness and performance of RL algorithms in different scenarios. - **Comparison with Nonlinear Model Predictive Control (NMPC)**: PC-Gym allows for the comparison of RL algorithms with NMPC, evaluating the performance gap of RL algorithms and identifying directions for improvement. - **Case Studies**: Case studies on systems such as continuous stirred-tank reactors, multi-stage extraction processes, and crystallization reactors demonstrate the effectiveness of PC-Gym in evaluating RL methods. ### Objectives: - **Accelerate Research**: By providing a standardized platform, PC-Gym aims to accelerate research in the intersection of machine learning and process systems engineering. - **Bridge Theory and Practice**: PC-Gym connects theoretical RL advancements with practical industrial process control applications, providing researchers with a tool to explore data-driven control solutions. In summary, this paper proposes PC-Gym to address the complexity and constraints faced in applying RL algorithms in chemical process control, providing researchers with a standardized, customizable evaluation platform to promote further development in this field.