scieee AI-readable full text Open interactive document viewer

A machine learning-based methodology for multi-parametric solution of chemical processes operation optimization under uncertainty

Shokry Abdelaleem Taha Zied, Ahmed,Medina González, Sergio,Baraldi, Piero,Zio, Enrico,Moulines, Eric François Victor,Espuña Camarasa, Antonio

Abstract

Chemical process operation optimization aims at obtaining the optimal operating set-points by real-time solution of an optimization problem that embeds a steady-state model of the process. This task is challenged by unavoidable Uncertain Parameters (UPs) variations. MultiParametric Programming (MPP) is an approach for solving this challenge, where the optimal set-points must be updated online, reacting to sudden changes in the UPs. MPP provides algebraic functions describing the optimal solution as a function of the UPs, which allows alleviating large computational cost required for solving the optimization problem each time the UPs values vary. However, MPP applicability requires a well-constructed mathematical model of the process, which is not suited for process operation optimization, where complex, highly nonlinear and/or black-box models are usually used. To tackle this issue, this paper proposes a machine learning-based methodology for multiparametric solution of continuous optimization problems. The methodology relies on the offline development of data-driven models that accurately approximate the multiparametric behavior of the optimal solution over the UPs space. The models are developed using data generated by running the optimization using the original complex process model under different UPs values. The models are, then, used online to, quickly, predict the optimal solutions in response to UPs variation. The methodology is applied to benchmark examples and two case studies of process operation optimization. The results demonstrate the methodology effectiveness in terms of high prediction accuracy (less than 1% of NRMSE, in most cases), robustness to deal with problems of different natures (linear, bilinear, quadratic, nonlinear and/or black boxes) and significant reduction in the complexity of the solution procedure compared to traditional approaches (a minimum of 67% reduction in the optimization time).

Full text

Chemical Engineering Journal 425 (2021) 131632 Available online 10 August 2021 1385-8947/© 2021 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). A machine learning-based methodology for multi-parametric solution of chemical processes operation optimization under uncertainty Ahmed Shokry a , e , * , Sergio Medina-Gonz´ alez b , Piero Baraldi c , Enrico Zio c , d , Eric Moulines a , Antonio Espu˜ na e a Center for Applied Mathematics, Ecole Polytechnique, Route de Saclay, 91120 Palaiseau, France b Departamento de Posgrado, Facultad de Ciencias Químicas, Universidad Aut´ onoma de Chihuahua, 31125 Chihuahua, Mexico c Energy Department, Politecnico di Milano, Via Lambruschini 4, 20156 Milan, Italy d MINES ParisTech, PSL Research University, CRC, Sophia Antipolis, France e Department of Chemical Engineering, Universitat Polit` ecnica de Catalunya, EEBE – Eduard Maristany, 14, 08019 Barcelona, Spain ARTICLE INFO Keywords: Chemical processes Operation optimization Uncertainty Multiparametric programming Machine learning Kriging Gaussian process regression ABSTRACT Chemical process operation optimization aims at obtaining the optimal operating set-points by real-time solution of an optimization problem that embeds a steady-state model of the process. This task is challenged by unavoidable Uncertain Parameters (UPs) variations. MultiParametric Programming (MPP) is an approach for solving this challenge, where the optimal set-points must be updated online, reacting to sudden changes in the UPs. MPP provides algebraic functions describing the optimal solution as a function of the UPs, which allows alleviating large computational cost required for solving the optimization problem each time the UPs values vary. However, MPP applicability requires a well-constructed mathematical model of the process, which is not suited for process operation optimization, where complex, highly nonlinear and/or black-box models are usually used. To tackle this issue, this paper proposes a machine learning-based methodology for multiparametric solution of continuous optimization problems. The methodology relies on the offline development of data-driven models that accurately approximate the multiparametric behavior of the optimal solution over the UPs space. The models are developed using data generated by running the optimization using the original complex process model under different UPs values. The models are, then, used online to, quickly, predict the optimal solutions in response to UPs variation. The methodology is applied to benchmark examples and two case studies of process operation optimization. The results demonstrate the methodology effectiveness in terms of high prediction accuracy (less than 1% of NRMSE, in most cases), robustness to deal with problems of different natures (linear, bilinear, quadratic, nonlinear and/or black boxes) and significant reduction in the complexity of the solution procedure compared to traditional approaches (a minimum of 67% reduction in the optimization time). 1. Introduction In the decision-making hierarchy of chemical plants management, plant-wide optimization, or process operation optimization, is a principle layer that receives, as inputs, the outcomes and decisions coming from the above layers (i.e., planning and scheduling) [20,54]. These inputs, basically, include forecasts of prices and demands, production rate targets over long time periods (weeks/days), assignment of resources to activities, (raw material allocation, tasks to units allocation, maintenance interventions, staffing), sequencing of activities and determination of starting and ending times for the execution over short periods of time [36,39]. The goal of the process operations optimization is to obtain the optimal values of the process variables (temperatures, pressures, compositions, flow rates, etc.) at which the plant and its units must operate to maximize certain performance criteria (e.g., efficiency, profit, operational cost), while satisfying all the constraints (equipment capacities, environmental restrictions, etc.) and requirements (product quality, production yields, safety, etc.) [2,3,62]. This is achieved by solving, in real time, an optimization problem, which embeds a detailed and rigorous steady-state model of the process [56]. Depending on the model characteristics, such as its structure, transparency (e.g., white, gray, * Corresponding author. E-mail address: [email protected] (A. Shokry). Contents lists available at ScienceDirect Chemical Engineering Journal journal homepage: www.elsevier.com/locate/cej https://doi.org/10.1016/j.cej.2021.131632 Chemical Engineering Journal 425 (2021) 131632 2 black-box) and availability of derivative information, and on the formulation of the objective(s) and constraints of the optimization problem, different algorithms can be used, like derivative-free algorithms (e.g., Genetic Algorithms), where the explicit values of the objective(s) function are used to direct the optimization search, or derivative-based algorithms (e.g., interior point algorithms), where the optimization search is directed based on the derivatives of the objective (s) with respect to the decision variables [4,55]. In order to maximize the reliability of the optimal set points when they are implemented in the plant, the process-model mismatch is minimized by updating the process model parameters (e.g., heat transfer coefficients, catalyst activities, distillation column tray efficiencies) before performing the operation optimization, relying on reconciled estimates of the steady-state measurements of the plant variables [2,3,12]. These estimates are often obtained by applying data reconciliation and gross error detection techniques to the real data collected by the sensors in order to reduce the effect of random errors and sensor faults (bias, drifting, miss-calibration, total failure, etc.), respectively [5]. Recently, there has been growing interest to use complex and highfidelity mathematical models of the process in the operation optimization task. Although these models are able to capture more detailed features and sophisticated characteristics of the process and, consequently, provide more accurate estimation of its behavior, they show many challenging characteristics which lead to practical drawbacks [14,40,52], such as i) high nonlinearity and complexity, due to the sophisticated phenomena typically involved (thermodynamics, reactions kinetics, heat and mass transfer, etc.) and to the large number of equations contained in the analytical or First Principle Models (FPMs). For example, a full-scale model of a refinery could contain more than a million of equations [21], ii) complex model architectures, which, in many cases, appear to the user as black-boxes with no access to the embedded first principle equations [4], iii) large computational cost required for the model simulation due to the complexity of the utilized numerical solution procedures –e. g., iterative schemes and/or integration techniques- [17]. These challenging characteristics inherent to the FPMs of chemical processes represent an obstacle to their use for the operation optimization, especially for large scale and/or fast dynamic processes [29]. For example, the optimization of a full-scale petrochemical plant (crude oil and gas treatment facilities, refineries, etc.) based on its FPM model requires several hours to obtain the optimal solution, and in many cases, the optimization process may fail to converge [26,55]. To overcome the above drawbacks and cope with the above challenges, Surrogate Based Optimization (SBO) approaches have been proposed and have received significant attention in the chemical process industry area [52]. The basic idea of SBO is to use the original complex FPM to generate input–output data points by “Computer Experiments”, and use them to develop accurate, but simple and fast-running, datadriven models (“metamodels” or “surrogate models”). Then, these datadriven models are used in replacement of the complex FPM in optimization problem [43]. Two classes of SBO approaches can be identified. The first one is based on the development of global metamodels approximating the entire modular simulator or flow-sheet of the process (the FPM), i.e., the input and output variables of the metamodels are the main input and output variables of interest selected over the entire process flow-sheet [6,7,30,42–44,57,59]. The second class of approaches is based on partitioning the simulation model into different units or subgroups of units, for each of which a dedicated surrogate model is developed; then, the different surrogates are aggregated to constitute the final approximate model of the process [4,21,51,52,55]. A comprehensive review about metamodeling and SBO methods applied in the chemical process engineering area can be found in [26]. One challenge for the applications of SBO approaches to process operation optimization comes from the fact that surrogate models are trained on data generated by FPMs with values of parameters and conditions predefined so as to match the real process behavior. So, any sudden and uncertain change in these parameters and conditions in the real process makes the surrogate models and, consequently, the obtained optimal solution based on their analysis, no longer valid/realistic. The presence of uncertainty in the process is unavoidable at various levels [24], including inherent physical properties (e.g., kinetic rates, heat transfer constants) [8,14,40] and process fluctuations (e.g., feed streams properties like temperatures, pressures and concentrations, recipe variations, processing time, equipment efficiencies) [38,45], as well as external uncertainty (such as resources, prices, demands) [32]. Many methods have been developed for handling uncertainty in optimization problems, most of them can be categorized into two main approaches: proactive and reactive [37]. The proactive approach aims at providing conservative optimal decisions, which minimize the consequences of the uncertainty on the performance measures of the system (i.e., objective(s)) [24]. Stochastic programming and robust optimization are among the most popular proactive methods [18]. In stochastic programming methods, the UPs are treated as stochastic variables with “a-priori” known probability distribution functions, whose parameters are estimated from historical data. Then, the goal becomes to identify the optimal decision variables that maximize/minimize the expected value of the objective function(s) and achieve feasibility over the distribution of the Ups [32]. Robust optimization methods deal with unknown but bounded UPs and aim at finding robust optima that ensures the feasibility of the solution and the immunity of the performance measure over the entire range of realizations of the Ups [40]. The three main limitations associated to the use of these methods are: i) the large computational effort required to obtain the optimal solution, since these methods imply the analysis of a large number of scenarios, which grows with the number of UPs, ii) the need of a complete knowledge of the characteristics of the UPs to identify their types and probability distributions, which is unrealistic especially in dynamic environments and iii) the fact that the provided solution becomes suboptimal for most of the realizations of the uncertainties during the operation/production [32,48]. The reactive approach, instead, is considered when it is necessary to promptly provide online update of the optimal values of the decision variables in response to real-time changes of the UPs values, which can be measured once unveiled. Since the reactive approach is able to provide the optimal solution for each realization of the UPs, it is preferred in dynamic production environments [50]. Among the reactive methods, MPP is considered as one of the most powerful tools, as it is able to explicitly map and explain the effect of the parametric uncertainty and variability on optimal decisions [46]. The general MPP problem is expressed as min xZ(x,θ) S.T. gl(x,θ) ≤ 0,l=1,2,….L x∈RK,θ∈Rk, lbx≤x≤ubx,lbθ≤θ≤ubθ ⎫ ⎪ ⎪ ⎪ ⎪ ⎬ ⎪ ⎪ ⎪ ⎪ ⎭ (1) Where x∈RK is the vector of decision variables, θ∈Rk is a set of uncertain parameters and gl(x,θ)is a set of constraints. Generally speaking, MPP algorithms rely on the basic Sensitivity Analysis (SA) theory, but considering a different goal [46]. Whereas SA gives the optimal solution in a local vicinity of the nominal UPs values, MPP provides the optimal solution behavior over the entire space of the Ups [50]. The MPP solution is based on partitioning the UPs space into subdomains called critical regions, where each critical region is uniquely associated to a different active set of constraints and yields a different set of Karush- Kuhn-Tucker (KKT) conditions than the other regions. The set of A. Shokry et al. Chemical Engineering Journal 425 (2021) 131632 3 equations derived from the KKT conditions are analytically solved, leading to the explicit construction of the optimal solution over the entire UPs space [41,46]. This solution is in the form of a number of P simple mathematical relations describing each of the optimal decision variables x* and the objective Z*as functions of the UPs θ, and is expressed as follows: Z* p=F0,p(θ) x* ip =Fi,p(θ),i=1,2,…,K, lbθp≤θ≤ubθp,p=1,2,…P ⎫ ⎪ ⎪ ⎬ ⎪ ⎪ ⎭ (2) where the p th relation is only valid over the p th critical region of the UPs [11]. MPP offers outstanding capabilities [48], which include : i) its solution provides simple mathematical functions mapping the optimal decisions variables and objective(s) over the entire space of UPs, ii) once uncertainty is unveiled, optimal decisions can be readily and immediately calculated by these simple functions, avoiding the large computational cost associated to repetitive optimization procedure, iii) MPP is not only able to handle uncertainty related to the process conditions, but also to the optimization problem parameters (e.g., relative weights or importance of the different objectives). More information on the MPP theory and on the different MPP algorithms developed for problems of different natures (linear, quadratic, nonlinear, mixed-integer, convex, local, global, etc.) can be found in [48,50]. Despite the attractive characteristics of MPP, its successful application is conditioned by two main requirements: the first one is the deep and complex mathematical programming knowledge required for the development of such formulations, while the second is the need to a process model matching some very strict mathematical requirements [1,31,53]. These requirements hinder the smooth application of MPP to process operation optimization in practice, where complex, highly nonlinear and/or black-box models need to be considered (e.g., modular process simulators). To tackle these limitations, the use of data-driven or Machine Learning (ML) techniques for the solution of MPP problems has recently emerged as a feasible alternative, where ML models are built to capture the mapping (embedded in the optimization problem) between the optimal decisions and the UPs. This research direction has been considered in [58], where kriging and Artificial Neural Network (ANN) models have been used to solve explicit Model Predictive Control (MPC) problems. Specifically, ML techniques are employed to build control laws that approximate the optimal control variables that must be applied to the process at future time step as a function of the current values of the state variables. The training data used to develop these ML-based control laws are generated by solving the MPC problem several times, considering different values of the initial state variables. Katz et al. [27] and Katz et al. [28] used multilayer ANNs with ReLU activation functions as surrogate models that approximate highly nonlinear objective and/or constraints, and, then, the MPP problem is traditionally solved on the basis of the surrogate models. Medina-Gonz´ alez et al. [37] have used kriging models for approximating the multiparametric solution of the multi-objective optimization of a bio-based energy chain subjected to uncertainties. In more detail, they employed kriging models to approximate the optimal behavior of each decision variable as a function of the UPs that include electricity demands, environmental conditions and social dynamics. This set of decision variables was composed by the amount of energy that must be produced at each of the considered production plants along each of the considered successive time periods, besides the associated economic benefit of each plant. Luper, et al. [33] have proposed a similar approach for supporting reactive scheduling in a real batch plant for synthesis of polyols, which consists of several units working in parallel. The specific aim of their study was the development of a tool for the online adaptation of the optimal scheduling decisions to avoid overlaps between the emissions generated from the plant units due to frequent and uncertain changes in the units’ starting times and taskunit assignment. Therefore, they utilized one kriging metamodel to approximate each optimal management decision as a function of UPs including equipment starting times and task-unit assignment. Shokry and Espu˜ na [60] have employed kriging metamodels for the dynamic optimization of a batch process, which approximate the relations between the optimal time profiles of the batch control variables and UPs including kinetics properties and initial conditions of the batch. Shokry et al. [61] and Lupera et al. [34] have addressed the solution of mixedinteger optimization problems by using a combination of regression (kriging) and classification (ANN) techniques to approximate the optimal continuous and integer variables, respectively, as a function of the UPs. They have applied the methodology to a simple planning problem. Lupera et al. [35] have proceeded to apply the latter method to successfully solve mixed-integer reactive scheduling problem: in their work, they considered an energy production system which is composed of several Combined Heat and Power (CHP) units subjected to UPs variation, such as heat demand, electricity demand and units’ startup and shutdown states. They have utilized ML models for regression and classification to approximate continuous and discrete optimal scheduling decisions as a function of UPs. In these previous works, each of the developed ML-based method for the solution of MPP problems has been tailored and evaluated in the framework of a particular application of interest, involving an optimization problem of a specific nature, which was, in most of the cases, linear. Also, they have not addressed the optimization of the process and/or unit operations, where the benefits of such methodology, if successfully applied, would be significant, because the update of the optimal setpoints in response to UPs variations is typically required within very tight time slots (minutes or seconds), whereas, the models of the process are often complex, nonlinear and/or in the form of computationally expensive black-boxes. This work contributes with the development of a novel data-driven methodology for the solution of general continuous MPP problems. The proposed methodology is based on the combination of i) Design Of Computer Experiment techniques (DOCE) techniques [22] to uniformly sample over the UPs domain, ii) state-of-art optimization tools to solve the problem with respect to each of the UPs combinations and iii) kriging metamodels which are trained using the generated input–output data (i. e., UPs values-optimal variables and objective values) to approximate the multiparametric behavior of the optimal solutions over the entire space of the UPs. The performance of the methodology is assessed by its application to five MPP benchmark examples of different nature (linear, bilinear, quadratic and nonlinear optimization problems) and to two case studies, which include the operation optimization of a utility plant modeled using a black-box modular process simulator and of a batch reactor. In this sense, the specific novelties and characteristics of this proposal are: i) the generality and applicability of the proposed methodology which, unlike the reviewed data-driven method for the solution of MPP problems, is aimed at solving different types of continuous optimization problems (i.e., linear, bilinear, quadratic, nonlinear, black-box) in a systematic way, ii) the capacity of the proposed methodology to address process and unit operation optimization problems, where highly nonlinear and/or black-box models are typically used, iii) a novel utilization of the kriging metamodel to approximate the optimal behavior of a system, unlike most of the chemical engineering literature, in which the kriging model is used to approximate the response of the actual system. The rest of the work is organized as follows. Section 2 formulates the problem. Section 3 describes the steps of the proposed methodology and the involved techniques. Section 4 assesses the proposed approach A. Shokry et al. Chemical Engineering Journal 425 (2021) 131632 4 through its application to different benchmark continuous MPP problems and to two case studies of process operation optimization. Section 5 concludes the work and highlights possible future directions of research. 2. Problem statement The proposed methodology is aimed at overcoming the difficulties of solving process operation optimization problems using classical/mathematical MPP formulations. Generally speaking, the problem (Eq. (3)) consists on finding the optimal values of the decisions variables x∈RK that maximize an objective function Z(x,θ)representing a performance index of the process. The problem is subjected to set of constraints gl(x,θ),l=1, .., L, and is influenced by a set of bounded UPs θ∈Rk [4,47,50]. Notice that the objective Z and/or the constraints gl could involve complex, nonlinear and/or black-box relations. min xZ(x,θ) S.T. gl(x,θ) ≤ 0,l=1,2,….L x∈RK,θ∈Rk lbx≤x≤ubx,lbθ≤θ≤ubθ ⎫ ⎪ ⎪ ⎪ ⎪ ⎬ ⎪ ⎪ ⎪ ⎪ ⎭ (3) In this work, we consider situations, such as process and unit operation optimization, in which classical MPP approaches cannot be applied due to the high nonlinearity and complexity of the process model, and consequently, the exact solutions in Eq. (2) cannot be attained. Alternatively, the proposed methodology develops ML models that act as accurate data-driven multiparametric relations, which are referred to as “MultiParametric Metamodels (MPM)”, and expressed as follows:  Z*=f0(θ) x* i=fi(θ) lbθp≤θ≤ubθp,i=1,2,…,K ⎫ ⎪ ⎪ ⎬ ⎪ ⎪ ⎭ (4) where, f0,fi,i=1,2, ..K are supervised ML regression models efficiently built to approximate the optimal objective function,  Z*, and the decision variables,  x* i, as functions of the UPs, θ. 3. MPMs for continuous optimization under uncertainty The steps of the proposed methodology are schematically illustrated in Fig. 1, and are detailed in the following subsections. 3.1. UPs sampling by DOCE techniques In this step, the optimization problem and the involved FPM are explored in order to identify the influencing UPs, θ∈Rk, and estimate their bounds lbθ≤θ≤ubθ (MPM input domain). Then, the goal becomes the selection of a proper set of combinations of the UPs values, [θ]n×k, (i. e. the MPMs inputs) that uniformly cover the entire UPs space in order to collect information about the optimal solution behavior over all the subregions of the global domain. Many DOCE techniques are available in the literature such as Latin hypercube sampling [16,17], low discrepancy sequences as Hammersley technique [22], space-filling designs and sequential or adaptive sampling [26]. Most of these DOCE techniques show both desired characteristics and limitation in terms of the uniformity of the generated sampling plan and of the required computational cost [17]. More details about different DOCE techniques can be found in [22]. In this work, a hybrid technique of Hammersley sequence and full factorial design is Fig. 1. Schematic representation of the proposed methodology. A. Shokry et al. Chemical Engineering Journal 425 (2021) 131632 5 used, as it achieves high uniformity with low computational cost [22]. The idea behind this hybrid technique is to employ the factorial design to compensate the limited ability of the Hammersley sequence to select sample points near the bounds and vertices of the input space, while at the same time, exploiting the high uniformity of the samples set of the Hammersley sequence over the bulk of the input space. The number of required sample points, n, is proportional to the number of UPs, k, influencing the optimization problem and depends, also, on the complexity of the multiparametric behavior of the optimal solutions. On the other hand, as n increases, more computational effort is required for performing optimization runs and for the MPM training. So, the modeler should carefully balance this trade-off. The effect of the selection of the number of training patterns to be used, n, on the MPMs accuracy and on the computational effort required for their training and validation will be illustrated and quantified through the first application (Section 4.1). 3.2. Optimization for training data generation Once a good sampling plan, [θ]n×k, is obtained, the optimization problem must be solved ntimes, each time considering one of the generated UPs combinations, so as to obtain the matrix of the optimal values of the objective and decision variables [Z*,x*]n×K+1. State-of-art optimization algorithms can be used to solve the optimization problem depending on its characteristics [2,3]. Particularly, this work addresses different types of continuous optimization problems that include linear, quadratic and nonlinear ones, and employs the algorithms included in the Matlab optimization toolbox for their solutions. Specifically, for linear problems, the solver “linprog”, based on a dual simplex algorithm, is used; for quadratic problems, the solver “quadprog”, based on an interior-point-convex algorithm, is selected; and for nonlinear problems, the optimizer “fmincon”, based on a sequential quadratic programming algorithm, is adopted. Default values for the optimization algorithms parameters (e.g., maximum number of function evaluations, tolerance on the constraint violation, termination tolerance on the firstorder optimality, termination tolerance on decisions variables) are used in all cases. 3.3. MultiParametric metamodels development The generated input ([θ]n×k) and output ([Z*,x*]n×K+1) data are used to train a number of K+1 kriging-based MPMs, f0,f1,…,fK (see Fig. 1), each of them is approximating the optimal behavior of each of the objective and decision variables as a function of all UPs. For one optimal decision variable x*, the kriging technique assumes the predictor  x*(θ) = μ ok +Z(θ), where the constant term μ ok represents the main trend of the system to be approximated, and Z(θ)is a deviation/residual from that trend, which accounts for detailed complex behavior of the system that could not be captured via the main trend μ ok [25]. The residual Z(θ)is modeled as a stochastic Gaussian process with expected value E(Z(θ) ) = 0 and covariance between two residuals cov(Z(θi),Z(θj)) that only depends on the corresponding input values θi,θj. Thus, it can be calculated as: cov(Z(θi),Z(θj)) = σ 2 okR(θi,θj), being σ 2 ok the process variance and R(θi,θj)a correlation function, R(θi,θj) = exp(−∑k l=1ξlθi,l−θj,l−pl)+δijλ,whereξl are the model hyperparameters, δijis the Kronecker delta,pl are smoothing parameters and λ is a regularization constant that enables the kriging predictor to regress noisy data [15]. In order to estimate the values of these parameters [ μ ok, σ 2 ok,ξl,pl,λ], the likelihood function of the observed data [x*]n×1 is maximized. The kriging predictor (Eq. (5)) and its estimated error (Eq. (6)) are obtained by deriving the augmented likelihood function of both the original training data set and a new interpolating point (θnew,x* new). In both equations, [r]n×1 is the vector of correlations between the new point to be predicted θnew and the original training data points, and calculated as R(θi,θnew),and [1]n×1 is the identity vector [4,25]. x*(θnew) = μ ok +rTR−1(x*−1 μ ok)(5) s2(θnew) = σ 2 ok(1+λ−rTR−1r+(1−1TR−1r)−1/(1TR−11))(6) In practice, the maximization of the concentrated log-likelihood function is computationally challenging because of the high effort associated to the repetitive calculation of the correlation matrix inverse [R]−1 n×n during the optimization iterations, which quickly grows with the size of the training data set and/or the model input dimensionality. Besides, the nature of the concentrated log-likelihood function itself is quite complicated because it is flat near the optimum. More details about these computational challenges, and the numerical methods and optimization techniques to overcome or reduce these obstacles can be found in [13,16]. After the training of the MPMs, they are validated using a new and different dataset, [θv]nv×k [Z*,v,x*,v]nv×K, where nv is the number of samples. The MPMs are used to estimate the values of the optimal decision variables and objective, [ Z*,v, x*,v]nv×K, which are compared to their exact counterparts [Z*,v,x*,v]nv×K in order to calculate an accuracy measure, such as the Normalized Room Mean Square Error (NRMSE) (Eq. (7)), for each of the K+1 MPMs. NRMSE =100*RMSE (x*,v,max −x*,v,min)(7) RMSE = 1 nv∑ nv i=1 (x*,v,i−x*,v,i)2 √ √ √ √ Notice that this work adopts the Kriging technique due to its widely reported advantages, especially its ability to capture highly nonlinear input–output mapping requiring a relatively low number of training data and its independence of any manual selection of specific structure or parameters. Nevertheless, any other efficient ML method can be used such as ANNs, Support Vector Regression (SVR), etc. 4. Benchmarks and applications In this section, five benchmark examples with different characteristics selected from the MPP literature are used to assess the proposed methodology in terms of its accuracy of estimating the optimal solutions and its applicability to different types of continuous optimization problems, including linear, bilinear, quadratic and nonlinear cases. The methodology is, then, applied to two additional case studies involving the operation optimization of a utility plant and a batch reactor. 4.1. Linear optimization: Refinery blending problem A refinery blending and production process [49,50] receives raw materials including two types of crude oils with flowrates x1 and x2 (bbl/day), which are processed in order to produce four types of products, namely, Gasoline, Kerosene, Fuel-oil and Residuals. It is required to select the optimal flowrates x1 and x2 that maximize the profit Z ($/day). The optimization problem (Eq. (8)) is subjected to three constraints associated to the maximum allowable production rates of the Gasoline, Kerosene and Fuel-oil from each crude oil type, and is affected by two UPs, θ1 and θ2, which are the maximum allowable production rates (bbl/ day)of the Gasoline and Kerosene, respectively: A. Shokry et al. Chemical Engineering Journal 425 (2021) 131632 6 Min xZ=8.1x1+10.8x2 S.T:0.80x1+0.44x2≤24000 +θ1 0.05x1+0.10x2≤2000 +θ2 0.10x1+0.36x2≤6000 x1≥0,x2≥0 0≥θ1≥6000,0≥θ2≥500 ⎫ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎬ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎭ (8) The methodology is applied following the steps described in Section 2. In this problem, different training sets of different sizes are used to build the MPMs to show the effect of the training set size on the MPMs accuracy and on the computational const of training and prediction. First, over the space of the UPs [0: 60000 bbl/day, 0: 500 bbl/day], five different sampling plans with different sizes, ([θ1,θ2]15×2,[θ1,θ2]30×2, [θ1,θ2]45×2,[θ1,θ2]60×2,[θ1,θ2]75×2), are designed by means of the hybrid technique of Hammersley sequence and two-levels fractional factorial design (Fig. 2). For each of these sampling plans, the LP problem is solved to obtain the corresponding matrixes of the optimal objective and variables values, [Z*,x* 1,x* 2]15×3,…,…,….[Z*,x* 1,x* 2]75×3. The optimization problem is solved using the “linprog” optimizer of the Matlab optimization toolbox, based on a dual simplex algorithm. Finally, using each of the five input–output training datasets (e.g., [θ1,θ2]15×2− [Z*,x* 1,x* 2]15×3), three metamodels are fitted to approximate the optimal objective and decision variables,  Z*=f0(θ1,θ2), x* 1=f1(θ1,θ2), x* 2= f2(θ1,θ2). One validation dataset [θv 1,θv 2]400×2− [Z*,v,x*,v 1,x*,v 2]400×3 is generated and used to assess the performances of the five sets of MPMs, f0,f1,f2, trained with the five different datasets. It is worth highlighting that the validation set is in the form of a uniform grid of 20 ×20 over the UPs space, so as to achieve a credible assessment of the MPMs predictions in all the local regions of the UPs. The NRMSE of the MPMs prediction is calculated by comparing their estimated outputs [ Z*,v, x*,v 1, x*,v 2]400×3 with the exact ones [Z*,v,x*,v 1,x*,v 2]400×3 provided by the rigorous optimization itself. Fig. 3 shows that the NRMSE of the MPMs decreases when the training dataset size increases, while the required computational efforts for the MPMs training and for prediction (of the validation set) increase. The Figure also indicates that even with few (i.e., 15) training patterns, the MPMs are able to achieve a satisfactory accuracy (less than 3 % of NRMSE). Table 1 illustrates the NRMSE and computational efforts required for the MPMs training and validation when the largest training dataset (75 patterns) is considered. Fig. 3 and Table 1 shows i) the high accuracy of the MPMs trained by the dataset containing 75 instances (NRMSE less than 0.5 % of all the MPMs), ii) affordable “offline” computational effort required for training the MPMs (2.79 s =0.86 +0.80 +1.13) and iii) very low computational effort required to estimate the optimal solutions of the validation dataset (0.00127 s =0.51/400), saving 75.7 % ((2.1-0.51)/ 2.1) of the computational effort required for the “wait and see” optimization procedure. It is also worth to emphasize that only one multiparametric relation (i.e., a MPM) is able to describe the optimal solution behavior over the entire space of the UPs, which makes its online usage to react to the UPs variation easier and more flexible than using several multiparametric relations. In the literature [50], the conventional MPP approach provides a solution for the same problem that divides the UPs space into two critical regions and, consequently, two sets of mathematical parametric functions are obtained each of them is valid only for one of the two partitions of the UPs space. As an additional assessment of the performance of the developed MPMs, the deterministic multiparametric solution provided in [50] is used to calculate the optimal objective and decision variables values for the validation dataset and compared with the one obtained by the MPMs in Fig. 4. 4.2. Bilinear optimization In this mathematical example (Eq. (9)) [23], a bilinear objective function is to be minimized, subjected to two linear constraints which are affected by one uncertain parameter: Min xZ=x1x2 S.T.:2x1+x2≥θ x1+3x2≥0.5θ −1≤x1,x2≤1,0≤θ≤1 ⎫ ⎪ ⎪ ⎬ ⎪ ⎪ ⎭ (9) The proposed method is applied starting by designing a sampling plan [θ]60×1 over the space [0: 1] of the UP (i.e., the MPMs input). The optimization problem is solved 60 times considering the values of the UP in the sampling plan, to obtain the corresponding optimal decision variables and objective values (i.e., the MPMs outputs) [Z*,x* 1,x* 2]60×3. The “fmincon” optimizer of the Matlab optimzation toolbox, based on a sequential quadratic programming algorithm, is used. This input–output training dataset is used to build three MPMs, one for each of the optimal objective and decision variables ( Z*=f0(θ), x* 1=f1(θ), x* 2=f2(θ)). A different validation dataset, including a uniform grid of 150 samples, is generated ([θv]150×1− [Z*,v,x*,v 1,x*,v 2]150×3)and the trained MPMs are used to estimate the optimal solutions [ x*,v 1, x*,v 2, Z*,v]150*3. Table 1 reports the results obtained by the proposed methodology, which indicate the very high accuracy of the three MPMs (NRMSE of 0.01 %, 0.8 % and 0.4 %) and, also, the significant reduction (98.9%) in the required computational effort with respect to the use of standard optimization tools. Also, the deterministic MPP solution provided in [23] is used to calculate the optimal objective and variables of the validation dataset, and the extend of matching between both solutions is Fig. 2. Two of the five sampling plans of the UPs ((a) n=15 and (b) n=75): Blue circles indicate UPs combinations generated by the Hammersley techniques, whereas red circles refer to those generated by the two-levels full factorial design. A. Shokry et al. Chemical Engineering Journal 425 (2021) 131632 7 Fig. 3. (a) NRMSE and (b) computational effort required for training data generation, MPMs training and prediction times as a function of the training dataset size. Table 1 NRMSE (%) of the MPMs and computational effort for training and validation. Problem MPMs Training Validation NRMSE (%) No. of training samples CPU Time (s)* No. of validation samples CPU Time (s)* Ups Sampling Optimization for data generation Fitting Optimization for data generation Prediction Refinery blending problem  Z* 75 0.002 0.53 0.86 400 2.10 0.51 0.44  x* 1 0.80 0.39  x* 2 1.13 0.44 Bilinear objective with linear constraints  Z* 60 0.012 6.9 0.53 150 16.20 0.17 0.01  x* 1 1.08 0.80  x* 2 1.56 0.40 Quadratic optimization  Z* 80 0.015 0.815 5.76 400 4.51 1.49 0.00011  x* 1 2.52 0.02813  x* 2 4.46 0.01853 Quadratic optimization: milk surplus problem  Z* 80 0.023 1.07 1.47 400 8.17 1.59 0.00350  x* 1 1.52 0.00020  x* 2 1.42 0.00016  x* 1 1.39 0.00021  x* 2 155 0.00010 Nonlinear optimization  Z* 140 0.039 4.67 4.60 400 13.85 1.60 0.62  x* 1 4.00 1.5  x* 2 6.00 1.9 Operational cost minimization of utility plant  C* 70 0.015 48.4 1.20 400 300.80 0.20 0.31  S* F 1.40 0.61  S* T 1.07 0.77 Operational cost minimization of batch reactor  C* B 150 0.038 861 14.0 300 4887.00 3.88 0.08  V0 * 17.5 1.50  F* 0.66 NA  T* 11.1 1.45 *Intel core i5-6200U [email protected] GHz. A. Shokry et al. Chemical Engineering Journal 425 (2021) 131632 8 shown in Fig. 5. 4.3. Quadratic optimization The second application [10] involves the minimization of a quadratic objective function subjected to a set of six constraints, which are affected by two UPs in their right-hand side (Eq. (10)). Min xZ=cT[x1,x2]T+0.5[x1,x2]Q[x1,x2]T S.T.:A[x1,x2]T≤b+F[θ1,θ2]T −1≤x1,x2≤1,0≤θ1,θ2≤1 ⎫ ⎪ ⎬ ⎪ ⎭(10) c=[0 0],Q[0.0196 0.0063 0.0063 0.0199 ] Fig. 4. Refinery blending problem: comparison between (a) the results obtained by the classical MPP solution provided in [50] and (b) the results provided by the proposed methodology. Fig. 5. Bilinear optimization problem: comparison between the solutions obtained by the classical MPP provided in [23] (blue solid lines) and the solutions provided by the proposed methodology (red dashed lines). A. Shokry et al. Chemical Engineering Journal 425 (2021) 131632 9 b= ⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ 0.417425 3.582575 0.413225 0.467075 1.090200 2.909800 ⎤ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ ,A= ⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ 1 0 −1 0 −0.0609 0 −0.0064 0 0 1 0−1 ⎤ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ ,F = ⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ 3.16515 3.7546 −3.16515 −3.7546 0.17355 0.06585 1.81960 −1.81960 −0.2717 0.4714 −3.2841 3.2841 ⎤ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ The same procedure is considered. A sampling plan [θ1,θ2]80×2 is designed over the UPs space. The problem is solved 80 times to obtain the matrix [Z*,x* 1,x* 2]80×3, using the “quadprog” optimizer of the Matlab optimization toolbox based on an interior-point-convex algorithm. Using this input–output dataset, three MPMs are fitted:  Z*=f0(θ1,θ2),  x* 1=f1(θ1,θ2), x* 2=f2(θ1,θ2). The validation is accomplished using a different dataset including 400 samples ([θv 1,θv 2]400×2− [Z*,v,x*,v 1,x*,v 2]400×3), where the MPMs are used to estimate the outputs [ x*,v 1, x*,v 2, Z*,v]400*3 and the NRMSE of the MPMs predictions is calculated (Table 1). In this case, the accuracy of the MPMs (NRMSE of 0.0001 %, 0.028 % and 0.018 %) is significantly higher than that of the MPMs in the previous two examples, which can be explained by the smooth and continuous multiparametric behavior of the optimal solutions over the entire UPs space (Fig. 6), which is relatively easy to capture by the datadriven models. On the contrary, the multiparametric behavior of the optimal solution in the previous two cases shows discrete features, which represent a challenge for the data-driven models. The MPMs were also able to save a considerable percentage (67 %) of the computational effort required to calculate the optimal solutions through real optimization, but the saving percentage is not as high as in the previous two cases. This is, again, due to the relative simplicity of the optimization problem solution (i.e., a quadratic objective function subjected to linear constraints). The deterministic multiparametric solution obtained by [10] for the same problem, divides the UPs space into four critical regions, and a different set of mathematical multiparametric functions are used to calculate the optimal solutions over each region. Fig. 6. Quadratic optimization problem: comparison between (a) the results obtained by the classical MPP solution provided in [10] and (b) the results provided by the proposed methodology. A. Shokry et al. Chemical Engineering Journal 425 (2021) 131632 16 [42] L. Ochoa-Estopier, et al., Industrial Application of Surrogate Models to Optimize Crude Oil Distillation Units, Chem. Eng. Trans. 69 (2018) 289–294. [43] L. Ochoa-Estopier, M. Jobson, Optimization of Heat-Integrated Crude Oil Distillation Systems. Part I: The Distillation Model, Ind. Eng. Chem. Res. 54 (2015) 4988–5000. [44] K. Palmer, M. Realef, Optimization and validation of steady-state flowsheet simulation metamodels, Trans IChemE 80 (2002) 773–782. [45] M.M. Papathanasiou, et al., Control of a dual mode separation process via multiparametric Model Predictive Control, IFAC PapersOnLine 52 (2019) 988–993. [46] I. Pappas, et al., Multiparametric Programming in Process Systems Engineering: Recent Developments and Path Forward, Front. Chem. Eng. 2 (2021) 620168. [47] E. Pistikopoulos, Uncertainty in process design and operations, Comput. Chem. Eng. 19 (1995) 553–563. [48] E.N. Pistikopoulos, Perspectives in Multiparametric Programming and Explicit Model Predictive Control, AIChE J. 55 (2008) 1918–1925. [49] E.N. Pistikopoulos, et al., On-line optimization via off-line parametric optimization tools, Comput. Chem. Eng. 26 (2002) 175–185. [50] E.N. Pistikopoulos, M.C. Georgiadis, V. Dua, Multi-Parametric Programming: Volume 1: Theory, Algorithms, and Applications, Wiley-VCH Verlag GmbH & Co, Weinheim, 2007. [51] N. Quirante, J. Caballero, Large scale optimization of a sour water stripping plant usingsurrogate models, Comput. Chem. Eng. 92 (2016) 143–162. [52] N. Quirante, J. Javaloyes-Ant´ on, J.A. Caballero, Hybrid simulation-equation based synthesis ofchemical processes, Chem. Eng. Res. Des. 132 (2018) 766–784. [53] P. Rivotti, R.S.C. Lambert, E.N. Pistikopoulos, Combined model approximation techniques and multiparametric programming for explicit nonlinear model predictive control, Comput. Chem. Eng. 42 (2012) 277–287. [54] B. Roffel, B. Betlem, Advanced Practical Process Control, Springer-Verlag, Berlin Heidelberg, Berlin, 2004. [55] D.D. Salback, A Surrogate Model Approach to Refinery-Wide Optimization, PhD thesis, Texas Tech University, Texas, 2004. [56] G. Shao, L. Hasan, C. Martin-Villalba, P. Denno, Standards-based integration of advanced process control and optimization, J. Ind. Informat. Integrat. 13 (2019) 1–12. [57] A. Shokry, A.D. Bojarski, A. Espu˜ na, Using surrogate models for process design and optimization, Uncertainty Model. Knowledge Eng. Decision Making 7 (2012) 483–488. [58] A. Shokry, C. Dombayci, A. Espu˜ na, Multiparametric Metamodels for Model Predictive Control of Chemical Processes, Comput. Aided Chem. Eng. 38 (2016) 1955–1960. [59] A. Shokry, A. Espu˜ na, Applying Metamodels and Sequential Sampling for Constrained Optimization of Process Operations, Lect. Notes Comput. Sci. 8468 (2014) 396–407. [60] A. Shokry, A. Espu˜ na, Dynamic Optimization of Batch Processes under Uncertainty via Meta-MultiParametric Approach, Comput. Aided Chem. Eng. 40 (2017) 2215–2220. [61] A. Shokry, S. Medina-Gonz´ alez, A. Espu˜ na, Mixed-Integer MultiParametric Approach based on Machine Learning Techniques, Comput. Aided Chem. Eng. 40 (2017) 451–456. [62] M. Vaccari, G. Pannocchia, A Modifier-Adaptation Strategy towards Offset-Free Economic MPC, Processes 5 (2017) 1–22. [63] Aspentech, 2020. Aspen-Hysys. https://www.aspentech.com/en/products/engi neering/aspen-hysys. A. Shokry et al.