Introduction
Process synthesis—the task of determining optimal equipment configurations and connectivity for chemical plants—is a cornerstone of chemical engineering. Traditionally, this challenge is addressed using Mixed-Integer Non-Linear Programming (MINLP). While mathematically rigorous, MINLP often struggles with computational rigidity and scaling issues as the search space of potential plant configurations expands.
This paper introduces Distillation Gym, a novel reinforcement learning (RL) environment that reframes process synthesis as a sequential decision-making problem. By bridging the gap between AI algorithms and industry-standard simulators like COCO and ChemSep, the authors demonstrate that deep RL agents can autonomously design complex chemical separation processes that maximize profitability while minimizing capital expenditure.
Methodology: The Tree-MDP Framework
The core innovation of Distillation Gym is the conceptualization of distillation train design as a tree-structured Markov Decision Process (tree-MDP). Unlike standard linear RL paths, a distillation column splits a single input stream into two distinct output streams (distillate and bottoms).
In this framework, the agent observes a single stream, decides whether to separate it, and specifies column parameters. This action generates two new streams, which are added to a queue for subsequent decisions. To optimize this process, the researchers employed an adapted Soft Actor-Critic (SAC) algorithm. SAC is particularly suited for this task as its maximum-entropy objective encourages the agent to explore a wide variety of design configurations, preventing premature convergence on suboptimal solutions. The reward function is tied to the Total Annual Cost (TAC) of the equipment versus the Revenue generated by high-purity product streams.
Benchmarks and Results
The framework was tested on two primary simulation-based benchmarks: a three-component Benzene, Toluene, and p-Xylene (BTX) separation and a more complex six-component hydrocarbon mix.
BTX Separation
For the BTX problem, the agent successfully synthesized designs achieving high recoveries (98.2% for Benzene and >99.9% for p-Xylene). The resulting distillation train generated a total revenue of $13.17 million against a capital cost of only $0.45 million.
Hydrocarbon Separation
In the more challenging six-component environment, the agent managed a complex separation yielding a best-design revenue of $1588 million with a cost of $119 million. Across both benchmarks, learning curves showed a consistent upward trend in episode returns over 1,000 training episodes, confirming that the agent was actively optimizing the design rather than stumbling upon random valid solutions.
Discussion and Future Work
By simplifying the state space to focus on one stream at a time and adapting Bellman equations for recursive branching, the authors successfully demonstrated a functional interface between modern RL libraries and legacy simulation software.
However, limitations remain. The current environment is restricted to simple distillation without recycle streams or heat integration. Future iterations of a "Chemical Engineering Gym" aim to expand the action space to include reactors and heat exchangers, allowing agents the full design freedom of a human engineer to manipulate entire flowsheet topologies.
Summary updated