Abstract
Alternative formulations for the optimization of chemical process flowsheets are presented that leverage surrogate models and implicit functions to replace and remove, respectively, the algebraic equations that describe a difficult-to-converge Gibbs reactor unit operation. Convergence reliability, solve time, and solution quality of an optimization problem are compared among full-space, ALAMO surrogate, neural network surrogate, and implicit function formulations. Both surrogate and implicit formulations lead to better convergence reliability, with low sensitivity to process parameters. The surrogate formulations are faster at the cost of minor solution error, while the implicit formulation provides exact solutions with similar solve time. In a parameter sweep on an autothermal reformer flowsheet optimization problem, the full space formulation solves 33 out of 64 instances, while the implicit function formulation solves 52 out of 64 instances, the ALAMO polynomial formulation solves 64 out of 64 instances, and the neural network formulation solves 48 out of 64 instances.
Introduction
In chemical process design, engineers use Nonlinear Programming (NLP) to find optimal operating conditions, such as maximizing hydrogen yield. Traditionally, every equation for every unit operation is fed into the solver simultaneously—a method known as the full-space formulation. However, complex units like the Gibbs reactor often create numerical "black holes." These reactors calculate chemical equilibrium by minimizing Gibbs energy, involving logarithmic terms and complex polynomials. If a solver encounters negative concentrations or mathematical singularities during iteration, the entire optimization can crash. This research explores ways to simplify or "hide" these troublesome equations to improve solver robustness.
Methodology
The authors compare four distinct ways to handle the Gibbs reactor within an Autothermal Reformer (ATR) flowsheet:
- Full-Space: The standard approach where all 895 equations are solved simultaneously.
- ALAMO Surrogate: A machine learning tool that builds simple, sparse polynomial equations to mimic the reactor's behavior.
- Neural Network (NN) Surrogate: A deep learning approach using tanh activations to create a smooth approximation of the reactor.
- Implicit Function Formulation: The reactor is solved externally as a sub-problem. The solver only sees inputs and outputs, using the Implicit Function Theorem to calculate gradients.
These methods were implemented using the IDAES framework and Pyomo in Python, solving the resulting problems with the IPOPT solver. To train the surrogates, the authors generated a dataset of 625 simulations across a 4D grid varying steam flow, natural gas temperature, natural gas flow, and methane conversion.
Results and Discussion
A parameter sweep of 64 different problem instances was conducted to evaluate which method was most robust:
| Formulation | Success Rate | Avg. Solve Time | Accuracy |
|---|---|---|---|
| Full-Space | 33 / 64 | 1.7 s | Exact |
| Implicit | 52 / 64 | 1.5 s | Exact |
| ALAMO | 64 / 64 | 0.5 s | ~1.9% error |
| Neural Net | 48 / 64 | 0.8 s | ~0.96% error |
ALAMO emerged as the clear winner for reliability and speed, solving every instance nearly 3x faster than the full-space model. While the Neural Network offered lower error than ALAMO, it struggled to converge when the optimization pushed the reactor into "untrained" regions (extrapolation).
The Implicit Function Formulation solved 58% more instances than the full-space model while maintaining 100% physical accuracy. It acts as a "numerical lubricant," keeping the reactor feasible at every step of the optimization and preventing the solver from tripping over complex internal reactor math.
Conclusion
This work demonstrates a significant trade-off between accuracy and solve time when improving convergence reliability. While surrogate models like ALAMO provide the highest speed and robustness, the implicit formulation is the superior choice when exact physical solutions are required. Future work will focus on advanced sampling techniques to enhance surrogate accuracy and extending these methods to more complex units like distillation columns.
Summary updated