Machine Learning Surrogates with OMLT and IDAES for Improved Design and Analysis of Energy Systems

Bashar Ammari, Francesco Ceccon, Jordan Jalving, Joshua Haddad, Alexander Thebelt, Calvin Tsay, Michael Bynum, Carl D. Laird, Ruth Misener2022

Introduction

Designing and analyzing complex energy systems, such as power plants or chemical reactors, traditionally requires high-fidelity "first-principles" models rooted in physics and thermodynamics. While these models provide high accuracy, they present significant challenges for optimization. They are often computationally expensive to evaluate, behave as "black boxes" (preventing solvers from accessing underlying equations), and are frequently non-convex, leading standard optimization tools to stall in local optima.

This research introduces a robust workflow to address these issues by embedding machine learning (ML) models directly into large-scale optimization problems. By utilizing the Optimization and Machine Learning Toolkit (OMLT) in conjunction with the IDAES (Institute for the Design of Advanced Energy Systems) framework, researchers can replace expensive simulations with algebraic surrogates compatible with rigorous global optimization solvers.

Methodology

The primary innovation lies in the use of OMLT as a bridge between popular ML libraries—such as PyTorch, TensorFlow, and scikit-learn—and the Pyomo algebraic modeling language. This integration allows trained ML models to be represented as sets of algebraic constraints within a larger optimization model.

Workflow of embedding ML models into optimization problems using OMLT

The technical approach varies based on the model type:

  • Neural Networks: ReLU-based networks are formulated using Mixed-Integer Linear Programming (MILP) techniques like Big-M or partition-based reformulations. Networks with smooth activation functions (e.g., Sigmoid) are handled via Nonlinear Programming (NLP).
  • Tree-Based Models: Gradient Boosted Decision Trees (GBDT) are translated into MILP. Notably, the authors introduce support for Linear Model Decision Trees, which are particularly adept at capturing the sharp transitions and discontinuities common in physical systems.
  • Formulation Strategies: The framework supports both "Full Space" formulations (retaining all intermediate ML variables) and "Reduced Space" formulations (simplifying the expression tree), allowing users to balance solver performance against model complexity.

Case Studies and Results

The researchers validated this approach using synthetic datasets generated from high-fidelity models within the IDAES framework.

Autothermal Reformer (ATR)

The team trained surrogates to predict chemical concentrations (such as $H_2, N_2, CO_2$) based on inputs like natural gas/steam ratios. Both Sigmoid and ReLU surrogates successfully matched target concentrations ($H_2$ at 0.331 and $N_2$ at 0.34) while significantly simplifying the underlying optimization problem compared to the original physics-based simulation.

Heat Exchanger Design

In a thermodynamic property modeling task for heat exchanger design, the authors employed a Linear Tree surrogate. By using the global solver BARON, they achieved an annual cost of $4.78 million. Crucially, this matched the results of local IDAES models but provided a rigorous global optimality guarantee—a level of mathematical certainty that local solvers cannot provide for non-convex problems.

Flexibility Analysis

To test control policies under uncertainty, the researchers compared ReLU Neural Networks against Linear Tree models. The Linear Tree model achieved a flexibility index ($\delta$) of 0.890, nearing the true solution of 1.0. In contrast, the ReLU network failed to capture the system's inherent non-linearities, yielding a much lower index of 0.152.

Key Insights

  • Equation-Oriented Design: Converting ML models into algebraic constraints enables an "equation-oriented" environment. Solvers can leverage gradient and Hessian information from the ML surrogate to navigate the search space more efficiently.
  • Enabling Global Optimization: By providing explicit algebraic structures, OMLT allows global solvers like BARON to operate on ML-derived components, ensuring the discovery of the absolute best solution rather than just a local optimum.
  • Handling Discontinuities: A significant finding is that Linear Model Decision Trees outperform standard neural networks when modeling physical phenomena with sharp transitions, such as phase changes.

Conclusion and Future Work

While ML surrogates are approximations, the authors note that their tendency toward "conservative" results in flexibility analysis is actually a benefit for safety-critical process design. Future research will focus on improving the scalability of "Full Space" formulations for deeper networks and further refining the implementation of Linear Model Decision Trees. This workflow represents a major step toward making complex energy system optimization both faster and more mathematically rigorous.

Summary updated

BibTeX
@misc{ammari2022machine,
  author = {Bashar Ammari and Francesco Ceccon and Jordan Jalving and Joshua Haddad and Alexander Thebelt and Calvin Tsay and Michael Bynum and Carl D. Laird and Ruth Misener},
  title = {{Machine Learning Surrogates with OMLT and IDAES for Improved Design and Analysis of Energy Systems}},
  year = {2022},
  doi = {10.2172/2432248},
}
Figure