Manuscript Offprint

arXiv:2608.23885

A tale of perfect fit and phantom optima: how data-driven models can fail in real-time optimization

Prithvi Dake, Rahul Bindlish, James B. Rawlings

Abstract

Real-time optimization (RTO) relies on process models to locate economically optimal operating conditions. Because developing first-principles models requires significant process knowledge, data-driven alternatives are increasingly attractive. Modern machine-learning models can fit historical plant data accurately and often pass standard validation tests. Whether such models can be trusted for economic optimization, however, remains unclear. We investigate this question using a vinyl acetate monomer benchmark process with a unique, well-conditioned economic optimum. We train a structured hybrid model that combines known mass balances and thermodynamics with a neural-network closure for unknown kinetics, and a fully data-driven neural ordinary differential equation (ODE) model. Both models reproduce plant measurements accurately and exhibit little variation in predictions across random initializations. Yet their economic optima differ substantially from that of the plant. Where the plant returns a single optimum on multistart search, the trained models return many phantom optima. We further show that the training optimizer alone can be yet another source of error. Even with noise-free data and initialization at weights that recover the plant optimum, stochastic gradient training can drift to weights that yield substantially worse RTO solutions. The identified model is thus an artifact of the training optimizer as well as the data. These results demonstrate that a good predictive fit of all available measurements does not guarantee reliable economic performance. A data-driven model for RTO should at least be required to recover the optimum on a decision-oriented benchmark like the one developed here before being considered for plant testing and application.

Keywords: Real-time optimization, Physics-constrained machine learning, Neural ordinary differential equations, Parameter estimation, Decision-oriented benchmark

1. Introduction

Growing global competition and sustainability demands have made RTO increasingly important to the chemical process industries (Naysmith and Douglas, 1995; Darby et al., 2011; Câmara et al., 2016). RTO operates on a timescale of hours to days, or is triggered when a price change or disturbance is detected. It supplies the profitable steady-state setpoints to lower-level regulatory layers (Cutler and Perry, 1983). Traditional RTO strategies often use a rigorous nonlinear steady-state process model that is updated using plant measurements after each optimization iteration (Seborg et al., 2017, pg. 351).

Specifically, the model parameters are reconciled against the most recent steady-state plant measurements, a step termed model adaptation or data reconciliation (Crowe, 1996). The updated model is then used to solve a steady-state economic optimization problem. This two-step approach (Roberts and Williams, 1981) is a common way of practicing RTO. While the plant tracks the RTO set-point, it is in transient operation, and one must detect the new steady state before reconciling with measurements. Thus, the approach is limited by steady-state wait-times and fragile detection algorithms that require careful tuning (Darby et al., 2011).

Recent developments in the two-step RTO approach adapt the steady-state model using transient plant measurements (Krishnamoorthy et al., 2018), which eliminates both the steady-state wait-times and detection. The RTO problem can also be made dynamic, e.g., economic MPC (Rawlings et al., 2012). However, when the disturbances vary slowly relative to the plant's settling time, steady-state RTO is preferred because it is cheaper to solve.

Besides model-based methods, model-free methods also exist. RTO has been carried out using direct-search methods that usually mimic gradient-free schemes like Nelder-Mead or evolutionary strategies (Box, 1957). Without gradient information, the number of plant evaluations grows steeply with the decision space for these methods.

A second family of model-free methods can be understood as a feedback problem in the form of extremum seeking or self-optimizing type control (Skogestad, 2000). If we

*Corresponding Author

Email addresses: prithvidake@ucsb.edu (Prithvi Dake), rbindlish@dow.com (Rahul Bindlish), jbraw@ucsb.edu (James B. Rawlings) treat the gradient of profit with respect to the degrees of freedom at steady-state as a controlled variable and hold it at zero, the plant self-optimizes to a stationary point of the RTO problem. Most of the feedback methods therefore focus on gradient estimation, e.g., using dither signals. The feedback approach does not distinguish among a maximum, minimum, or saddle point, and leads to prohibitively slow convergence and a difficult dither tuning problem in practice (Krishnamoorthy and Skogestad, 2022). For these reasons, model-free methods are not considered further.

A third method, modifier adaptation, combines the two: it converges in few plant iterations, like a model-based method, yet provably reaches the plant's optimum, like the feedback-based schemes (Bonvin and Pannocchia, 2024). Crucially, it recovers the plant optimum despite model mismatch, provided the model already has the correct curvature at the plant optimum (a positive semidefinite Hessian in the case of a minimum), so that the plant's gradient corrections suffice (Chachuat et al., 2009; Papasavvas et al., 2019). Yet this curvature is not guaranteed even for a model with no mismatch, as we show in this paper. The accurate estimation of plant gradients remains another challenge. We therefore focus on model-based RTO using transient measurements.

References (42)