Engineering, Environment

 

Key parameter values in a linear programming model for oil refinery production planning

 

Mikhail Yurievich PETUKHOV, Mariana-Valentina PETRE*

Department of Planning, Petrotel-LUKOIL S.A.,

235, Mihai Bravu Street, Ploiesti, Romania, 100410

E-mail(s): mypetukhov@yandex.ru; mpetukhov@petrotel.lukoil.com

 petremariana93@yahoo.com; petrem@petrotel.lukoil.com

* Corresponding author, phone: +40 244504761

 

Received: March 20, 2017 / Accepted: November 01, 2017 / Published: December 30, 2017

 

Abstract

The current paper covers the basic mechanisms of an impact of technological quality parameters on the solution of the model based on the linear programming approach, which is used for production planning at oil refineries. The basic aspects of the parametric analysis of a linear programming model are presented. It is shown that a linear programming model of an oil refinery contains quality parameters, which, if changed, can lead to a discontinuity of the first kind of the maximum value of the objective function. The importance of determining the values of the above-mentioned parameters in a linear programming model (the so-called key values of the parameters) is demonstrated. It is shown that the knowledge of key parameter values makes possible to determine the opportunities for significant increase of the refinery’s profit through small changes of the parameter in the neighbourhood of its key value. It means that a small impact on the production process by slightly changing the corresponding process variable can provide a significant increase in the economic efficiency of the refinery. Approaches to the optimal choice of parameter values for linear programming models for increasing economic efficiency of an oil refinery are also considered. 

Keywords

Linear programming model; Production planning; Oil refinery

 

Introduction

 

Currently, the vast majority of oil refineries calculate their production plans using specialized planning optimization systems. The key vendors of such solutions are Aspen Tech (PIMS), Honeywell (RPMS), and Haverly (GRTMPC). These systems operate based on the mathematical model of production incorporated in them and use methods of linear programming (LP) to find an optimal solution (or plan) according to the maximum marginal profit criterion. The effectiveness of LP systems in calculating refinery production plans is undoubtedly very high. At the same time, construction of an adequate refinery production model in a LP system is rather complicated. Errors and inaccuracies in LP models lead to significant economic losses. That is why at present much attention is focused on methods and approaches to the construction of an LP model of an oil refinery. A lot of discussion in the literature is devoted to the problem of improving the planning accuracy by increasing the complexity of the LP model [1-3]. However, specific approaches to optimize a refinery production plan based on LP systems are scantily described.

Refinery models, which are implemented in LP systems, contain a large number of various parameters. In general, these parameters can be subdivided into two principal categories: economic (or market) and technological ones. Economic parameters include prices and constraints on supplies of raw materials and product marketing. The technological parameters involve constraints on the yields of the process units and their capacities, as well as the qualities of semi-finished and marketable products. Technological parameters also include norms of consumption of auxiliary raw materials, additives, energy, reagents and catalysts. The impact of economic parameters is described in the literature in more detail. At the same time, the effect of production parameters is considered much less often. This is due to the complexity of refinery models (a LP matrix typically consists of several thousand rows and columns), which complicates the analysis and development of analytical correlations or recommendations that could help production planning specialists in their routine work.

At present, the prevailing opinion is that the main factor of successful optimization of a production plan is maximum account in LP models of all types of technological and logistic variants for refinery units. For this purpose, various models, including nonlinear ones, have been introduced [4-6] together with mathematical algorithms in order to solve nonlinear LP [7-8]. After all the specific characteristics of an oil refinery have been incorporated into a LP model, the optimal planning system generates an optimal production plan. On the other hand, using rigorous process models for refinery planning imposes unnecessary complications of the problem because such models increase the solution time and often conceal critical issues and parameters for increasing profit [9-11]. Another problem is connected with constraints of the LP system solver. This is determined by the fact that, as soon as the size of the model (i.e., the number of variables and constraints) becomes too large, there occur errors in the model solution (the so-called solution divergence), which are caused by some limitations of the mathematical algorithms used in the solver of LP systems. Another drawback of LP models is the problem caused by accounting for logistical constraints and phased operation settings (for example, in the framework of a LP model, two different types of products are produced at the same unit simultaneously rather than successively, as it is in fact).

The above-mentioned factors lead to the fact that in most practical cases LP models do not incorporate all the variety of possible situations, but only present some basic options and parameters of an oil refinery. At the same time, to understand which parameter value provides the optimal effect, in some cases it is necessary to change the corresponding parameter value in the LP model and restart the solution procedure. The latter means that, in fact, the optimal plan obtained through the solution of the LP model turns out not to be the best in the global sense, but only within those parameter values, which are included in the model. Thus, true optimization is very difficult [12]. If parameters of LP model are changed, the optimal production plan can change as well. Thus, it can be concluded from what was mentioned above that, in order to optimize the production plan, first the parameters of LP model must be "optimized", which implies the need for its parametric analysis. Given the fact that a LP model of a realistic oil refinery contains a huge number of parameters, and taking into account the constantly changing of the external conditions [13-14], a detailed analysis of the model is quite difficult and requires a considerable amount of time, which, in most practical cases, is insufficient or absent.  In this regard, experience and qualification of specialists that work with the model is the issue of vital importance. The required qualification is obtained through long (in most cases, years long) experience of working with the LP model. As a result, such specialists are already familiar with the LP model "bottlenecks", i.e., parameters’ values that may significantly affect the solution, saving time expenditures on the total parametric analysis. Thus, the effectiveness of optimal production plans largely depends on the human factor, and therefore continuous perfection of planning skills of specialists is also of high importance.

            At the same time, approaches to a parametric analysis of refinery LP models that are described in the literature are not sufficient. The latter is largely explained by significant differences between LP models of various configurations of refineries. As a result, at best case scenario, specialists, who have not worked with optimal planning issues long enough, make use of empirical experience of their colleagues. Thus, economic losses are inevitable and significant. That is why the purpose of this paper is to study the mechanisms of parameter influence on the optimal production plan of an oil refinery. Special attention is paid to determine such parameters, whose changes, could qualitatively vary the value of the objective function of an oil refinery, which, at the same time, is the planned margin profit of the oil refinery.

 

Material and method

 

Production planning process

Typical scheme of production planning process at an oil refinery is presented in the Figure 1.

Figure 1. Typical scheme of production planning process at oil refinery

 

The information which is necessary for production planning is collected in LP system (PIMS, RPMS or GRTMPC) from different divisions of refinery. Supply and delivery division provides volume constraints and prices of raw material and finished products which can be discharged/loaded in planning period. Technological division is responsible for process flows qualities data, constraints for yields and capacities of process units, blending recipes, as well as norms of utilities, additives, reagents and catalysts consumption. Production division provides technological flows scheme. Once all necessary data is loaded in LP system or, as it is customarily said, the refinery LP model is formed in LP system, after that the optimal plan search process is started.

 

Specific characteristics of an LP model of oil refinery

 

Mathematically the task of optimal production planning of an oil refinery can be written as follows, equation (1):

                                                               

Where: L – objective function which has an economic meaning of marginal profit; xj (j = 1, …, m) – variables of the sales (products); xj (j = m+1, …, n) – variables of purchases (crude oil, energy consumption, additives, reagents, etc.); cj – sale prices ; dj – purchase prices;

                                                                     

                                                                                       

Where: xj (j = n + 1, …, p) variables of internal flows (semi-finished products, consumption of energy, additives, reagents, etc.), aij coefficients of the matrix constraint. System is also defined as a LP model.

If the second group of summands xj (j = n + 1, …, p) is omitted in equation (2), LP model (1) – (3) reduces to a classical form. Qualitative aspects of the effect of parameters aij (j = 1, …, n), cj, dj and bj, upon its solution have been studied in detail in the literature (e.g., [15]). The most interesting case of the LP model solution behaviour is observed in the situation of changing parameter aij (or cj) which leads to an abrupt discontinuity in the optimal plan solution. In this case, the dependence of optimal values of a part of variables xj on the parameter exhibits a discontinuity of the first kind [15]. At the same time, the optimal value of the objective function remains continuous.

The specific character of a LP model of an oil refinery is in that, apart from variables xj (j = 1, …, n), which are present in equation (1) and pertains to purchases/sales, in inequalities (2) there are additional variables xj (j = n + 1, …, p), which are absent in an explicit form in expression (1) for the objective function. These variables are required for describing the volumes or other characteristics of the semi-finished products in the model. The analysis of the effects determined by the parameters aij (j = n + 1, …, p) on a LP model is not, as a rule, given any special attention. At the same time, it will be further shown that the presence of parameters aij (j = n + 1, …, p) in inequalities (2) can lead to the appearance of qualitatively new parametric impact in the solution of the LP model of an oil refinery, in contrast to its classical form.

Parameters aij (j = n + 1, …, p) at an oil refinery can have the following meaning. Firstly, they determine proportions (material balance) of yields of oil products at the process units. Secondly, aij (j = n + 1, …, p) are used to set norms of consumption of energy, reagents, catalysts and additives at the process units. Thirdly, they determine qualitative characteristics of flows (semi-finished products), for example, density, viscosity etc. It can be readily shown that in the first and second cases parameters aij (j = n + 1, …, p) determine relations between xj (j = 1, …, n) and xj (j = n + 1, …, p), which are defined using linear equations. As a result, any of variables xj (j = 1, …, n) can be written in equation (1) using a linear combination of variables xj (j = n + 1, …, p). It means that in this case parameters aij (j = n + 1, …, p) will have the same qualitative effect on the optimal solution of the LP problem as aij (j = 1, …, n).

In the third case, constraints connected with quality are usually written in the form of inequalities. Consider possible parametric effects in this case in more detail. Let marketable product x0, which is a result of blending of k components, have to comply with certain minimal (maximal) values of quality indexes (l0(1),l0(2), …,l0(s)) according to a certain standard. Depending on the kind of marketable product, the value of s can vary from several units to two tens. The following parameters are used as quality indices: density, sulphur content, viscosity, aromatics, temperature numbers, octane numbers etc. Constraints (2) for x0 will be written as follows, Eq. (4):

                                                            (4)

To simplify the analysis of the effect of quality indices l  on the optimal solution of the LP problem, and keeping in mind equality x0 = x1 + x2 +…+ xk, system of inequalities (4) can be rewritten as, Eq. (5):

                                                                              (5)

The geometrical meaning of constraints (5) can be formulated as follows. The left sides of inequalities (5) define in a k-dimensional space multidimensional “planes”, which are defined by the vectors, Eq. (6):

                                   (6)

Here, an additional coefficient g  is introduced, which is equal to “–1” or “+1”, depending on the sign “≤” or “≥” in the right side of (5).

            Let’s also mention here the condition of collinearity of vectors N(a) and N(b) (a Î (1,s), b Î (1,s)). Obviously, this can happen if the following relation holds, Eq. (7):

                                                                         (7)

 

Results and discussion

 

Parametric analysis of the LP model with one quality parameter

 

Consider a simplified example of the processing of raw material at a process unit of maximal capacity b (see Figure 2).

Figure 2. Simplified scheme of gasoline production

 

The gasoline component x3 with octane number l can be directed to the production of gasolines x01 and x02 of minimum acceptable octane numbers l01 and  l02 (l01 < l02) and prices c1 and c2 (c1 < c2), respectively. The solution of LP model (1) – (3) for the scheme shown in Figure 2 is presented in Figure 3a-c.

Figure 3. Discontinuities of the objective function optimal (maximum) value Lmax and optimal plan x01, x02 as functions of parameter l

 

It is obvious from the Figure 3 that, apart from a jump of the optimal plan of x01 and x02 for parameter values: ,  a discontinuity of the first kind of the optimal value of objective function Lmax is also observed. In what follows, such parameter values will be called “key values”. The geometrical meaning of the appearance of a discontinuity of function Lmax(l) is depicted in Figure 4.

Figure 4. Changes of the tolerance region for x01, x02 versus parameter l

 

For l < l01, the tolerance region for x01 and x02 degenerates into point (0,0). For l = l01, a discontinuous increase of the tolerance region to a line segment, AD, is observed. When the octane number of the component reaches the value of l = l02, there is another jump in the increase of the tolerance region for x01 and x02, which transforms from segment AD to square ABCD.

 

Parametric analysis of the LP model with several quality parameters

 

In the above example, it is shown that, when the quality index value of the gasoline component coincides with the minimum (maximum) admissible quality of the marketable product, this parameter value of the component can be a key value. Then a question arises whether the key parameter value of a gasoline component can differ from the minimum (maximum) admissible quality of the marketable product. To answer the question, in accordance with what was said in the above paragraph, let us try to find such a value, for which a discontinuous change of the tolerance region of the variables is possible. Consider the geometrical meaning of the system of vectors (6). Corresponding «multidimensional» planes bound the tolerance region for x1, …, xk. Further, a situation similar to Figure 4 must be considered where discontinuous changes in the size of the tolerance region for x1, …, xk are possible if the parameters of l are changed. Obviously, this can happen when there are two collinear and oppositely directed vectors: $a Î (1, s), $b Î (1, s): N(a) ­¯ N(b). The latter implies that the condition (7) is fulfilled.

It should be being noted that equation (7) is not a sufficient condition for the existence of a discontinuity in the relation between the maximal value of the objective function and the parameter. This is determined by the fact that, if the sale of product x0 is not the optimal variant, then the parametric effect upon the LP system will have no effect upon the solution of the problem. It also should be noted that in comparison with example shown in Figures 2-4 where it was discussed about key parameter value, in this case key proportions of the values of several parameters should be considered.

Situations with discontinuities of the first kind in the objective function, when N(a) ­¯ N(b), are clearly manifested in the optimal production planning of a realistic oil refinery (Petrotel-LUKOIL SA) using program RPMS (Honeywell). Constraint matrix (2) of this oil refinery has the dimensions of (2300×3600). An example of a complete solution for Petrotel-LUKOIL SA is not presented here, as the large amount of comments and explanations required for the formulation and solution of the problem will conceal the main mechanisms of formation of a discontinuity of the maximum objective function. That is why a simplified example will be used, which, nevertheless, has a direct bearing on the real situation at the oil refinery.

Consider the optimization of production of marketable gasolines x01, x02 (see Figure 5).

Figure 5. A version of production of two gasoline types x01, x02

 

 Here l01 and l02 (l01 < l02) are minimum admissible octane numbers,  a02 is maximum aromatic content for the second gasoline; for the first gasoline there are no constraints on aromatics a01. The marketable gasolines with margin profits c1, c2 (including the costs) are results of blending the components from the isomerization and catalytic reforming units, which produce the same amounts of gasoline components, b.  Let the products from the units have octane numbers l1, l2 and aromatic contents a1, a2.

In Figures 6 and 7 is shown the result of numerical calculation using RPMS software for Figure 5 and Table 1.

 

Table 1. Values of the parameters for the flows indicated in the Figure 5

Parameters

min

 (l01)

RON

min

(l02)

RON

min

(a01)

%

min

(a02)

%

l1

RON

a1

%

a2

%

b th.

tons/day

c1

$/ton

c2 $/ton

Value

92

95

0

42

85

0

63

1

450

500

Figure 6. Optimal value of objective function Lmax versus parameter l2

 

Figure 7. Optimal plan x01, x02 versus parameter l2

 

The figure 6 shows a discontinuity of Lmax (l2) if l2 = 100. It is easy to calculate that in this case for l02, l1, a02, a1, l2, a2 the proportion (7) is satisfied.  

The important consequence of this example is as follows. If it is known that catalytic reforming unit (see. Figure 5) can produce gasoline component with octane number value l2 in the range, for example, from 99.0 till 100.5, and specialist in production planning indicates in RPMS software the average of possible l2 values as 99.75, then the economic losses of calculated in such a way optimal plan (see Figure 6) will be 75 th. $/day. In turn, knowledge of key parameter values allows the production planner to indicate the «optimal» value of parameter as l2 = 100 and helps to avoid such an economic loss.

 

Conclusions

 

The specific properties of the parametric analysis of a LP model of an oil refinery have been considered. It is shown that a LP model of an oil refinery contains quality parameters, which, if changed, can lead to a discontinuity of the first kind of the maximum value of the objective function. The importance of determining the values of the above-mentioned parameters in a LP model (the so-called key values of the parameters) is demonstrated. It is shown that knowledge of key parameter values makes it possible to determine possible ways of significantly increasing the profit margin of an oil refinery through small changes of the parameter in the neighbourhood of its key value. It means that a small impact on the production process by slightly changing the corresponding process variable can provide a significant increase in the economic efficiency of the refinery.

Determining key parameter values in a LP system of a real oil refinery, described by thousands of equations, is not trivial. What makes this task still more difficult is that the software currently used for solving optimization problems (PIMS (Aspen Tech), RPMS (Honeywell), Haverly (GRTMPC)) does not always look for the solution of the LP system in the interval of all the possible parameter values, but only for some of their values. That is why a parametric analysis of a LP model in that case requires numerous restarts of the program for different parameter values. As a complex system comprises quite a large number of such parameters, the quality of optimal planning of an enterprise depends, to a large extent, on the qualifications and experience of the planning personnel.

In practice, the parametric analysis of a LP model solution in most cases is carried out with the direct interaction of the planning and technological departments. Proposals to improve the production efficiency result from the parametric analysis of the solutions of LP models, and are submitted by the planning department to the technological one. If the technological department confirms the possibility of such changes (by changing the severity of the regime in the process unit), then the adjustments are done in the LP model. In most cases, a change of a parameter can affect other parameters associated with it, which should also be considered in the LP model (changes in the quality of the product are directly accompanied by changes in the yields of the unit where the product is produced).

 

References

 

1.               Forrest J., Oettli M., Rigorous simulation supports accurate refinery decisions, Proceedings of fourth international conference on foundations of computer-aided process operations, 2003, p. 273−280.

2.               Menezes B.C., Kelly J.D., Grossmann I. E., Improved swing-cut modelling for planning and scheduling of oil-refinery distillation Units, Industrial and Engineering Chemistry Research, 2013, 52 (51), p. 18324–18333.

3.               Guerra O.J., Le Roux G., Improvements in petroleum refinery planning: 1. formulation of process models, Industrial and Engineering Chemistry Research, 2011, 50 (23), p. 13403–13418.

4.               Pinto J.M., Joly M., Moro L., Planning and scheduling models for refinery operations, Computers and Chemical Engineering, 2000, 24(9), p. 2259–2276.

5.               Kelly, J.D., Formulating production planning models, Chemical Engineering Progress, 2004, 100 (1), p. 43−50.

6.               Alattas A.M., Grossmann I.E., Palou-Rivera I., Integration of nonlinear crude distillation unit models in refinery planning optimization, Industrial and Engineering Chemistry Research, 2011, 50 (11), p. 6860−6870.

7.               Gill P.E., Murray W., Saunders M., SNOPT: An SQP algorithm for large-scale constrained optimization, SIAM Journal on Optimization, 2002, 12(4), p. 979−1006.

8.               Wachter A., Biegler L.T., On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming, Mathematical Programming, 2006, 106 (1), p. 25−57.

9.               Barsamian A., Fundamentals of supply chain management for refining, In IBC Asia Oil & Gas SCM Conference Proceedings, April 26, Singapore.

10.            Hartmann J., Determine the optimum crude intake level − A case history, Hydrocarbon Processing, 2001, 80 (6), p. 77–84.

11.            Li W., Hui C., Li A., Integrating CDU, FCC and blending models into refinery planning, Computers and Chemical Engineering, 2005, 29(9), p. 2010−2028.

12.            Katsavounis S., A greedy algorithm for scheduling tasks on production lines, Operation Research 1, 2001, 1 (3), p. 285−298.

13.            Al-Othman W.B.E., Lababidi H.M.S., Alatiqi I.M., Al-Shayji K., Supply chain optimization of petroleum organization under uncertainty in market demands and prices, European Journal of Operational Research, 2008, 189 (3), p. 822–840.

14.            Chen R., Deng T., Huang S., Ruwen Q., Optimal crude oil procurement under fluctuating price in an oil refinery, European Journal of Operational Research, 2015, 245(2), p. 438–445.

15.            Taha H., Operations research. Eighth Edition, Upper Saddle River, New Jersey, Prentice Hall, 2008.