Yu Li,Tong Qiu*
Department of Chemical Engineering,Tsinghua University,Beijing 100084,China
Keywords:Piecewise linearization Blending Non-convex Global optimization
ABSTRACT Gasoline blending is a key process in a petroleum refinery,as it can yield 60%–70%of a typical refinery's total revenue.This process not only exhibits non-convex nonlinear blending behavior due to the complicated blend mechanism of various component feed stocks with different quality properties,but also involves global optimum searching among numerous blending recipes.Since blend products are required to meet a series of quality requirements and highly-sensitive to the proportion changes of blending feed stocks,global optimization methods for NLP problems are often difficult to be applied because of heavy computational burdens.Thus,piecewise linearization methods are naturally proposed to provide an approximate global optimum solution by adding binary variables into the models and converting the original NLP problems into MILP ones.In this paper,Logarithm transform piecewise linearization(LTPL)method,an improved piecewise linearization,is proposed.In this method a logarithm transform is applied to convert multi-variable multi-degree constraints into a series of single-variable constraints.As a result,the number of 0–1 variables is greatly reduced.In the final part of this paper,an industrial case study is conducted to demonstrate the effectiveness of LTPL method.In principle,this method would be useful for blending problems with complicated empirical or theoretical models.
The main objective of an oil refining process is to convert its input materials,e.g.a wide variety of crude oils,into consumer-demanded products such as jet fuels and diesel.Among these products,gasoline is considered to be one of the most important and valuable output products as it can yield 60%–70% of a typical refinery's total revenue[1–3].The economic efficiency and profitability are associated with higher-quality products(higher prices)and less-use or less-waste of input materials,which could be achieved by critical and accurate gasoline blending.As it shows in Fig.1[4],which is a flowsheet of a simplified refinery,in a gasoline-blending process,components oil(butanes,alkylate,reformate,etc.)from supply-tanks or produced by other units are mixed in blending tanks or on-line blenders to make the gasoline products meet a variety of quality-requirements.
Some of the most important gasoline quality specifications include research octane number(RON),motor octane number(MON),Reid vapor pressure(RVP),density,sulfur,aromatics(A),and olefins(O)content.The octane number of gasoline is defined as the percentage of iso-octane(assigned an octane number of 100)in a blend with n-heptane(assigned an octane number of 0).It represents the performance of resistance to knocking conditions.RON and MON are based on two different test methods[4]:(1)the RON represents antiknock property under low speed and frequent accelerations and(2)the MON represents engine performance under higher speed conditions.The Reid vapor pressure(RVP)matters as well since it affects the volatility of gasoline.However,RON,MON and RVP do not blend linearly;to the contrary,the blender qualities appear to be in strong nonlinear relationships with the qualities of feedstock components[5].Thus,applying nonlinear blending rules for such quality properties is feasible to increase prediction accuracy and reduce quality giveaway,but most blending equations are non-convex[6].
The blending technology used by refiners to optimize the gasoline recipe typically refers to three levels[7]:off-line optimization,on-line optimization,and regulatory control.Given the component oil properties,the off-line optimizer generates the initial blend recipe.Then this recipe is subsequently downloaded to the on-line optimizer that determines the set points for the controllers.In practice,both off-line and on-line optimizers are typically built with either linear programming or successive LPs to solve nonlinear optimization models.Considering the specific characteristics of blending processes,some companies have developed commercial software packages[8]aiming to optimize and schedule on-line blending problems,such as Honeywell's BPC,HIS'H/BOSS,and ASPENTECH's ORION.However,because of high charge-fees and some restrictions of those software packages,a large amount of domestic refineries still adopt the method of off-line empirical tank blending,which mainly depends on plants' previous blending histories and operators' individual experiences,and often results in highly-cost recipes due to cautious redundant operations for producing higher-quality gasoline products.
Fig.1.A simplified petroleum refinery flowsheet.
There are a number of researches studying on the global optimization of nonlinear non-convex problems.N.Boland[9]proposed a method which replaced the original formulation with an equivalent solution that keeping the feasible space with strong relaxation.His method eliminates the difficulty of calculating tight bounds for objective functions.Sherali and Alameddine[10]gave a reformed linearization technique,in which redundant constraints are added into the model to strengthen the relaxation while keeping the original space the same.However,it is still hard to decide where to add the constraints to realize a stronger relaxation.Spatial branch-and-bound[11,12]is a widely used method and an essential element of many commercial solvers such as BARON[13],ANTIGONE[14],and SCIP[15],because of its advantage in convergence speed for the global optimization problem.It works by iteratively reducing the domain of variables one by one.As a result,when the initial relaxation is weak,the calculation process could be very slow for a big-scale non-convex problem.This efficiency problem occurs with optimality-based bound tightening(OBBT)method[16]as well when dealing with a large number of variables.Hence,it is still in burden with computation by these methods for global optimization.A natural approach for solving this kind of problems is to approximate each general function by a piecewise linear expression and then reformulate the original problem as a discrete linear optimization problem.As for linear programming problems,there are many effective and widely-applied methods to find out the global optimization solutions in a short time.
Piecewise linearization methods are frequently used in various applications to approximate nonlinear problems with non-convex functions in the objective or constraints by adding extra binary variables,continuous variables,and constraints.Accordingly,various piecewise linearization methods have been proposed.In the early 1950s,0–1 variables were firstly introduced to piecewise linearize a concave function[17,18].Sherali and Tuncbilek[19]proposed a method of reformulation–linearization technique (RLT),which introduces polynomial constraints and then linearizes the resulting problem by giving new variables.The method of RTL is able to find out a lower bound in the context of a branch-and bound scheme.Then the author developed a hierarchy of relaxations for solving mixed 0–1 integer programming problems as an extension of RLT.However,the idea is good but the implement procedure is difficult because there are numerous constraints that have to be transformed into linearized forms,which makes the computation even harder.Geoffrion[20]considered to minimize a concave function over a general round set and derive conditions,under which a piecewise linear approximation of the objective function achieves the smallest possible absolute error for a given number of pieces.After that,Morris[21]went further in approximating the objective function of a convex problem and deriving bounds on the number of partitions needed to guarantee a given absolute error.This made the piecewise linearization process controllable and the complexity predictable.Besides,how to find a better way to represent the piecewise linearization problem and reduce the scale of computing is an important topic in this field.Earlier piecewise relaxation techniques scale linearly,while recent formulations scale logarithmically.Compared to many previous methods,C.Huang[22]proposed a method for piecewise linear functions with fewer binary variables,which is achieved by introducing[log2m]instead of[m]extra binary variables with m+1 break points.
Most blending rules are non-convex nonlinear formulas,and blend properties such as RON and MON,are highly-sensitive to the proportion changes of blending feed stocks.Considering these two aspects,it is rather difficult to find out the global optimum solutions.Applying piecewise linearization method is a good idea to provide an approximate optimum solution quickly.However conventional piecewise linearization methods mainly focus on scaling-down the model by relaxing constraints or reducing the number of 0–1 variables.In the next part we will propose a piecewise linearization method aiming to scale down models with multi-variable multi-degree expressions.
Given a general nonlinear function f(x)of a single variable x,here f(x)is a continuous function,and x is located within[a0,am].
In a conventional piecewise linear approximation process, firstly,denote ak(k∈K={0,1,…,m ? 1})as the break points of x in the whole interval,a0<a1<…<am,and Fig.2[23]shows the piecewise linearization of f(x).According to the method proposed by Padberg[24]which is based on big-M method and introduces[m]binary variables,consider
Fig.2.Piecewise linearization of f(x).
It is obvious that we need to introduce[m]binary variables to piecewise f(x)with[m+1]break points.Then f(x)could be expressed as:
where M′is a large positive constant value and skis the slope of the interval approximation function:
With reference to the above construction,the reformulation is finished for the nonlinear programming problem with single independent variable.However,when considering cases with multi independent variable in a non-convex problem,it can be difficult to solve.For example,a function with[n]independent variables,x1,x2,…,xn,if we separate each variable into m intervals,then the linearization form of f(x)will be consisted of[mn]partitions and this will result in the problem of combinatorial explosion nullifying the efficiency of conversion from NLPs to MILPs.
The following part proposed an improved piecewise linearization method which presents an efficient scheme for linearizing f(x)of more than one independent variable.
Considering that most blending laws describe the interaction between different components,there shall be interactive items in blending models.Based on the above conventional method,LTPL method applies a logarithm transform for the multi-variable multi-degree part of problems,which could avoid introducing a large amount of 0–1 variables.Considering the following problem:
Problem P
Given the sign of{lbi},two situations could be classified and discussed.
Situation 1:{lbi},{ubi}are positive constant values.
Problem P contains several multi-variable multi-degree constraints.The linear approximation of problem P is discussed.To simplify the discussion,only one continuous function of one single variable,fi(xi),is considered here,but it should also be noted that LTPL method is also suitable for objective function forms in more complicated forms.There are two steps to solve this problem.
Step 1:
Replacing
Since every xiis positive,take the logarithm transformation,that is,replacebyand replaceby ln(xi)+ln(xj)? ln(zi,j).Thus the programming problem changes to
Step 2:
Defining new variables,Yi,j,Xi,Zi,j
Since ln(yi,j),ln(xi),ln(xj),ln(zi,j)are non-convex terms,it is necessary to convert them into convex expressions.Thus we use piecewise linear functions to approximate these non-convex terms,that is,separating yi,j,xi,and zi,jinto a series of partitions and piecewise functions respectively
Then we could obtain the following mixed-integer linear programming(MILP)problem
Situation 2:{lbi}are negative while{ubi}are positive or negative constant values.
If{lbi}are negative, firstly replace
and the problem P is transformed into the following problem P′.
Problem P′
Thus,we can go back to the former defined step 1 and step2 to continue the transforming process.
In general,LTPL method is able to convert any kinds of multi-variable multi-degree constraints into a series of single-variable constraints avoiding introducing a large number of 0–1 variables.
Fig.3 shows the process of applying LTPL method.With reference to LTPL method,the reformulation is finished and the conversion from NLP to MILP introduces only[n·m]binary variables instead of[mn]given that[n]variables are separated into[m]interval partitions.
This part aims to prove the applicability of LTPL method and test its performance to blending problems.LTPL method is applied to an automotive gasoline blending problem,which is based on a case conducted by Forbes and Marlin[25].The blending problem studied here involves simultaneously blending two grades of automotive gasoline with five feed stocks.Its flow sheet is shown as Fig.4[25].
For the illustrative purposes of this blending example,the product quality specifications for each grade of gasoline(regular and premium)will be limited to:minimum limits on RON and MON,and a maximum limit on the RVP.Maximum and minimum limits for the products' quantity are also presented in the case.All relevant data[4]are provided in Tables 1–3.
Fig.3.Flowchart of LTPL method.
Fig.4.Flow sheet for gasoline blending case study.
Here,bbl is referred to the unit of measurement of crude oil,barrel:1 bbl=42 gal=0.159 m3.Psiis referred to the unit of measurement of pressure,pounds per square inch:1 psi=6894.757 Pa=0.068046 atm.These explanations are applicable in the following passage unless given special remarks.
Table 1 Production requirements
Table 2 Feedstock economic data
Table 3 Feedstock qualities
For prediction and simulation purposes,a set of equations is established to represent the blending process for RON,MON and RVP.Among a lot of empirical models,the ethyl RT-70[26]models have been proved to be one of the most accurate models in expressing the mixing rules for octane numbers.They represent blending nonlinearities as functions of compositions of compounds(e.g.olefins,aromatics and so forth)and are widely used in practice.The ethyl RT-70 models are
where:
a1,a2,a3,b1,b2,b3are model parameters.Referring to 135 blending experiments,Healy et al.[26]used data from those experiments for regression and determined the model parameter values as follows
As for predicting the Reid vapor pressure quality of the mixer,the blending index approach[27]developed by the Chevron Research Company is regarded to be one of the easiest method and is often applied for predicting blended RVP.We adopted this model in the case
where:
The above equations will be used to for the blending process in the latter part,which constitute the nonlinear constraints of the programming problem.
The performance of this method is measured by the comparison between it and the theoretical maximum profit.The blending optimization problem is often consisted of the following parts:
Table 4 Quantities consuming of feed stocks
Table 5 Information of products
This is an NLP problem and in this case it can be formulated as:
where:
Fig.5.A petroleum refinery flowsheet chart.
Table 6 Units parameters
Table 7 Components oils properties
The above model is an NLP problem,and LTPL method has been applied to convert it from an NLP to MILP.The calculation is performed on LINGO?,and the results are shown in the following part.
To meet the quality requirements and quantity limits,the approximation global optimum solutions are listed in Tables 4 and 5.The profit of the whole blending system calculated by LTPL method is 65565USD,and achieves 66136.20USD given smaller partitions.It is better than the results,64622USD and 65491USD,which were given by methods proposed by A.Singh[4].As A.Singh[4]has pointed out the ideal profit for the problem is 66276.55USD,the deviation is only 0.21%.
LTPL method has been applied to a petroleum refinery to determine the maximum profit of the whole blending process[28].The refinery includes seven processing units and a gasoline blending workshop as well as some auxiliary units.The seven main processing units are atmosphere distillation,vacuum distillation,hydrotreater,catalytic reformer,catalytic cracking,claus sulfur plant,and gasoline sweetening device.Input materials are crude oil and MTBE.The refinery produces more than 15 products and the main products are gasoline 90#,93#,97#,straight-run gasoline,residuum,LPG,fuel oil,refinery fuel,and light naphtha.The flow chart is shown in Fig.5,and some related data and parameters[28]are given in Tables 6–8.
LTPL method was applied to this case,converting the non-convex nonlinear programming model into a MILP model by piecewise linearization.Computational results are shown in Table 9,compared with results calculated by B-and-B global solver.By using LTPL method,approximate maximum profit obtained by the gasoline blending workshop is 4.1×106CNY,and the variation is only 4.1%compare with theprofit 4.3×106CNY calculated by the NLP global solver,while time cost of LTPL method is much shorter than that of NLP model calculated by B-and-B global solver.
Table 9 Computational results
The variation of straight-run gasoline is 6.1%which is the largestone among all the computational results.MTBE and light naphtha have no deviation,and the crude oil,LPG,refinery fuel achieve very good accuracy level whose variations are less than 1%.
Despite of the existence of small deviation,the approximate linearization method could quickly give a pretty good solution and direct operators to search for global optimum solutions close to the present solution given by approximation piecewise linearization method.In this way complicated large-scale non-convex nonlinear programming problems can be solved accurately and quickly.
When applying piecewise linear transformation approach to nonconvex programmings,it often concerns the scale of problem size and computational time,especially to the product blending problems in complex refinery plants.Conventional piecewise linearization methods focus on univariate expressions or linear combinations of them.LTPL method aims to convert complex multi-variable multi-degree expressions into single variable expressions by doing a series of logarithm transforms,and then reform new MILP programming problems by piecewise linearization based on big-M method.According to the above discussion,the number of 0–1 variables could be reduced greatly by LTPL method and the scale of models can be controlled.This method has been applied successfully to a gasoline blending process and an industrial petroleum refinery plant with a gasoline blending workshop.It is able to find out approximate global optimum solutions in a short time.
Table 8 Prices data
In conclusion,LTPL method is able to scale down the linearization size of problems containing mixed multi-degree constraints,and convert complicated expressions of NLP into MILP.LTPL method could be more widely applied in different practical situations and solve out nearly-accurate solution within a short time.
Chinese Journal of Chemical Engineering2018年8期