A robust crude oil supply chain design under uncertain demand and market price: A case study

In today’s global economy, the oil industry plays a vital role and has an effect on most of countries within leading business environments, particularly in oil producing countries. To deal with the complexity of the crude oil supply network, a mathematical programming model is developed to formulate a crude oil supply chain. A robust optimization model is developed to maximize the profitability of the entire chain and take uncertainties of price and demand into account. The results show that according to the real case study data the robust optimization technique will increase the profitability of the crude oil supply chain.


Introduction
Crude oil as a main energy source nowadays has a vital role in today's business. The most energy experts predict that world primary energy demand will double by the year 2030, increasing from 9 to 18 Gtoe. There are a number of different energy scenarios that forecast this demand will roughly triple to 25 or 30 Gtoe by the year 2050. According to these outlooks, by 2050 fossil fuels will supply no more than two thirds of all energy consumed, as against 85% today [1].
The crude oil supply network management is extremely complicated and deals with oilfield development, crude oil transportation, oil refining, petrochemical production, and products distribution. Complex studies are conducted to decide on different problems at this supply network, optimize this competitive system, and gain competitive advantages. Crude Oil Supply Chain (COSC) falls into four broad parts: crude oilfields, petroleum refineries, petrochemicals, and distribution facilities. Until recent times, COSC network structures have been rarely considered comprehensively. Due to increasing competition, designing and planning of extensive crude oil supply chains (including all entities and segments of upstream, midstream, and downstream network) and the goal of achieving the maximum profitability of the entire chain, some researches had recently been undertaken [2]. The key issue to configure the optimal crude oil network design is the uncertainty in the price and demand. As a result, deterministic mathematical programming cannot be relied on, under such uncertain conditions in the crude oil context, to reach maximum profitability. Sometimes defining specific stochastic scenarios is impossible through lack of detailed information. That's the reason behind using the robust mathematical programming to control risks in different situations and reduce their negative effects. On that account, this study is based on optimization with robust mathematical programming to find robust solutions under uncertain situations of this problem.
La Londe and Masters [3] proposed that a supply chain is a set of firms that pass materials forward. Normally, several independent firms are involved in manufacturing a product and placing it in the hands of the end user in a supply chain raw material and component producers, product assemblers, wholesalers, retailer merchants and transportation companies are all members of a supply chain. Mentzer et al. [4] defined the supply chain as a set of three or more entities (organizations or individuals) directly involved in the upstream and downstream flows of products, services, finances, and/or information from a source to a customer. There is no agreement on whether the COSC is divided into two or three sections. In this paper, the second classification scheme (i.e. upstream, midstream, and downstream) is selected. Considering the main entities of this supply network can be a suitable solution to studying the structure of the COSC. As shown in Figure 1, four key facilities (i.e. oilfield, refinery, petrochemical, and distribution center) are remarked to consider the structure of presented models in the literature. Neiro and Pinto [5] addressed a deterministic mathematical programming model to make tactical and operational decisions on several segments of the crude oil industry. Their COSC model comprised oilfield infrastructure, crude oil transportation modes, storage tanks, refinery operations, and products distribution. Particular frameworks were presented to reach decisions on stream flow rates, product properties, production planning, inventory management, and facilities allocations. MirHassani [6] also focused on the tactical variables to distribute crude oil products among a capacitated crude oil supply network. He formulated this COSC to study the long-term transportation of crude oil and its products by ship, pipeline, truck, and railway. This study provides new insight into this field by surmounting the demand uncertainty related issues. In this direction, Oliveira et al. [7] studied demand uncertainty more deeply and put forward a risk measure to formulate supply investment planning problem in the inventory capacity of crude oil products. They presented a new Lagrangian decomposition approach and a hybrid algorithm to deal with a large-scale two-stage model. Oliveira et al. [8] developed their model and recommended an accelerating benders stochastic decomposition to reduce the solution time of their largescale problem. One of the most comprehensive distribution networks, from structural point of view, was addressed by Fernandes et al. [9]. A deterministic downstream COSC network design and a planning model were developed to figure out optimal depot locations, depot capacities, transportation routes and modes, and refinery planning. They considered a multi-entity (refineries, transportation modes, and storage depots) and multi-transportation downstream crude oil supply network.
In addition to downstream problems, oilfield development and crude oil transportation are two significant upstream problems in the crude oil supply management context. Chen et al. [10] configured an import crude oil transportation network to save international logistics costs. They put their concentration on China's oil production and consumption nodes to investigate a detailed study of sink and source nodes, stream flow of crude oil, and transportation routes in China's crude oil supply network. Then, a mathematical programming model was developed by them and carried out using Genetic Algorithm. Gupta and Grossmann [11] studied upstream problems more. They presented a seminal generic strategic and tactical model for offshore oilfield development problems. This model scheduled FPSO (Floating Production, Storage, and Offloading) installation and expansion as well as involving well drilling schedule. Connection between the fields and the FPSOs and the production planning were also determined by the model. Sahebi and Nickel [12] attacked to an extensive upstream crude oil supply chain design problem. Their model considered oilfield developments decisions, determined optimal allocation of facilities, studied transportation modes, and figured out the best markets to which crude oil be exported . Elsholkami and Elkamel [13] focused on the efficiency and environmental sustainability of the sulfur supply chain for sour gas processing. They considered supply and demand uncertain and investigated their effects on the design of the supply chain. Casault et al. [14] studied North American oil and gas exploration and production firms. They showed that these firms have rapid and large fluctuation in stock value. As a result, dealing with uncertainty is essential in these firms, although in these kinds of studies, mostly, was ignored.
At the midstream, most of researchers put their attention on the production planning problems in refineries. A complete refinery process was formulated by Neiro and Pinto [5]. Processing units of a refinery, intermediate streams, storage tanks, and transportation modes were taken into account. Decision variables including properties, stream flow rates, production and inventory planning, and entities assignment were considered. Chufu et al. [15] formulated a hybrid model for optimal production planning in refineries. They developed a programming model to study uncertainty in demand. In this direction, a robust planning model of multisite refinery supply chain was addressed by Al-Qahtani and Elkamel [16]. This work considered the multisite integration and coordination problems within a crude oil supply network, especially midstream section, under uncertainty. The main decision variables were process input flow rates, blending levels, and transshipment levels. The risk of customer satisfaction and inventory violation were very important in the crude oil supply management [16]. For this purpose, a stochastic refinery planning model was extended by means of conditional value-at-risk theory. Tong et al. took, simultaneously, demand amount uncertainty and product yield fluctuation into account [17].
When the historical data is well enough to specify scenarios and their probabilities, the approach of stochastic optimization can be a suitable programming method. Sometimes this may not be possible to define scenarios specifically by available historical data because of indistinctive pattern amongst the data and high fluctuation of parameter that is why the stochastic programming cannot be an effective approach to dealing with uncertain crude oil's price. Since there are too many influential factors behind crude oil price changes, predicting the probabilities of scenarios are also impossible in the petroleum industry. Consequently, the robust optimization method was more appropriate to be employed by a decision-maker to have a suboptimal solution. The solution remains feasible and close-to-optimal under fluctuation of data. This method can even be used when there is limited information about the uncertain parameters. Then, the robust optimization was the proper method to deal with uncertainty in demand and price accurately. Leiras et al. [18] extended the work of Al-Qahtani and Elkamel [16] to account for raw material cost, final products prices, and demand uncertainty. A robust optimization method was applied by them.
A few papers in the literature studied more than one segment of the crude oil supply network. Oliveira and Hamacher [19] formulated midstream and downstream of the COSC simultaneously. They addressed a model to optimize the investment in the logistics infrastructure to distribute crude oil products. A production planning in refineries and flow material planning between refineries and distribution centers were considered under uncertainty. A similar model under demand and price uncertainty was presented by Ribas et al. [20] to formulate Brazil's petroleum supply chain. Al-Othman et al. [21] proposed an extensive petroleum supply network model. They addressed a complete spatial integration including upstream, midstream, and downstream. Uncertainties were introduced in prices and demands. A two-stage stochastic programming approach was developed to determine optimal solution.
In a nutshell, uncertainty in demand and price for energy sources, especially crude oil, is a leading factor which should be born in mind to make more realistic decisions [1]. To deal with these high uncertain parameters with difficulty in specifying scenarios, to our knowledge, the robust optimization was the most appropriate method in crude oil supply context. Moreover, spatial integration had a significant effect on the profitability of the whole supply network, which was ignored in the literature. It is a proper scientific way to have a real case study and analyze the results to validate the proposed model. One thing more, the crude oil supply chain has a striking similarity to the LNG supply chain [20][21][22][23][24]. A summary of the literature is shown in Table 1. According to this, the main contributions of current work are as follows: spatial integration to form a comprehensive structure of the COSC, taking uncertain demands and prices into account, determining the nearoptimal solution under the robust optimization method, validating the presented mathematical programming model by providing a real case study.
Owing to the complexity of the COSC, decision making was a difficult process in this context. From this background, a mathematical programming model was developed to formulate Iranian crude oil supply chain, which consisted of oilfield platforms, oil refineries, petrochemicals and markets. Market prices and demands are uncertain intended and expressed by a series of scenarios. A robust optimization model was developed to take uncertainties of price and demand into account and maximize the profitability of the entire chain. In this model, reducing the differences of the mean scenario with the other scenarios and the violations of constraints demand possibility was considered. The field of energy, especially petroleum, was faced with high sensitivity and could have a direct impact on a country's economy. Therefore, in addition to reducing the average costs of all scenarios, the model considered reducing the difference between average costs and reducing the costs of any of the scenarios accordingly. Demand constraints in the model needed to be violated to increase profitability; this makes the product shipped to demand client differ from the amount of actual demand. For this purpose, a cost constraint violation was considered to demand constraint the profitability of models by which in different scenarios had been examined. In this paper, different scenarios of the model have been studied. The optimization method is resolved based on the two-stage condition. The results illustrate that under uncertain demands and prices the robust optimization technique will increase the profitability of the crude oil supply chain.
The reminder of this paper is organized as follows: The deterministic optimization model of the supply chain is described in Section 3, followed by a description of the robust optimization mathematical modeling Section 4.

Oil Production
Price Demand Others Neiro and Pinto [5] x x x x Al-Othman et al. [21] x Brazil Al-Qahtani and Elkamel [16] x x x x x Chen et al. [10] x x x China Leiras et al. [18] x Tong et al. [17] x x x x x x Oliveira and Hamacher [19] x x x x Northern Brazil Gupta and Grossmann [11] x x Fernandes et al. [9] x x x Portugal Oliveira et al. [7] x Sahebi and Nickel [12] x x x Current study The proposed mathematical models were tested on a hypothetical supply chain network, which is described in Section 5. Deterministic and stochastic results are presented and discussed in Section 6, and the derived conclusions are stated in Section 7.

Problem definition
Iran's crude oil supply chain consists of four sections. Symbolic Iran's crude oil supply chain network is shown in Figure 1. This figure contains all activities related to production and processing of crude oil as well as depots and transportation to the demand sources.
In this chain, a great deal of petroleum is exported to world markets while some of it is transmitted to local refineries and is refined. Every refinery refines a certain amount of petroleum. Some of refined products are produced in the refining units and can be exported to demand centers or applied for local usage or used in petrochemical plants. Petrochemical products are exported or used in the downstream chemical industry. It is clear that demand centers (markets) of petroleum and refined products and downstream products are different and may be determined by economic conditions and specific geographical locations. Petroleum production planning is usually based on a monthly schedule. The demand of each sector in each period is fulfilled or transferred to the next period as the deficiency or counted as the lost demand. It is caused that the sales departments determined the production amount for the next period. In addition, this schedule can run for the long-term, which usually considers a 12-month period. It is clear that 12-month period is very difficult to plan and deal with anticipation and uncertainty. The quality of this program determines the overall benefit of the manufacturing organizations. Thus offering a practicable and good implementation of the program is important.
In this chain, the first part related to crude oil has five production centers. In all production centers, one type of crude oil is produced, which combines all the input raw materials for these sectors. As can be seen from Figure 1, the produced crude oil is exported to the three demand centers: European Union, OECD Asia and Non OECD Asia, or it is used by refineries. There are nine production centers in the refinery sector each of which converts raw materials from crude oil sector into six types of products: Naphtha, Gasoline Engine, Kerosene, Gas oil, Fuel oil, and Propylene. These materials are used in the petrochemical sector or sent to the 11 possible demand centers mr1, mr2, mr3, mr4, mr5, mr6, mr7, mr8, mr9, mr10, and mr11. The propylene doesn't have any demands from out of the chain, and only naphtha and propylene are used in the petrochemical sector. Naphtha is used by Mahshahr, Assaluyeh and Shazand-Arak production centers and propylene is used by Shiraz and Tabriz production centers. The products produced in the petrochemical sector are as follows: Ethan, Propane, Ethylene, Heavy naphtha cut, Benzene, Ammonia, Urea, and Methanol.
There are three demand centers for petrochemical products containing: mp1, mp2, mp3.
Benzene is used by downstream chemical sector. There are three demand centers in the downstream chemical sector, md1, md2, md3, also a product, Styrene, is produced in each production center. Styrene is used directly in three existing demand centers.

Deterministic mathematical model
A deterministic model will be presented in this section. Before offering deterministic mathematical optimization model for crude oil supply chain network, the definition of following expressions are important.
Planning horizon: indicates a period of time when the company tries to predict product demands and allotment. The planning horizon is usually separated into some periods in which the program items are run. Demand sources: markets and distribution centers. Demand: it is product size requirements for different client demands of certain periods of time.
Lost demand: the volume of products that could not be sent to the demand authorities for meeting the demand. Backlog: it is additional demanded products (and met) that are not met until then. Some or all of the backlog may be sent in later periods. A volume of backlog that are not met during the planning horizon, counted as lost demand.

The objective function
The objective function intends to optimize crude oil resources with minimization the total cost of production and logistics as well as lost demands and backlog penalties and with maximization of profit. The objective function for deterministic model can be expressed in the following equation.
Here z C , z R , z P and z D are the profit on crude oil, refineries, petrochemicals and downstream sectors respectively. z C , z P and z D are expressed by equation (2) and z R by equation (3). Equation (2) includes 6 items: costs of production, warehousing, transportation, lost demands, backlog and profit. Decision variables in equation (2) are production values V s;k i;t , the stored values in the warehouse S s;k i;t , posted sources to the demand clients F s;k i;j;t , lost demands, L s i;j;t , backlog values, B s i;j;t . Refineries production costs are highly dependent on crude mix and the main challenge is the maximization of profit from each input barrel of the crude oil. The crude mix cost with the first item has been mentioned in equation (3).

Material flow balance
Materials balance for crude oil section: X Materials balance for the refinery products: Materials balance for the petrochemical products: Materials balance for the downstream products: In equations (5)- (7) it is assumed that storehouse and common market facilities are used for all factories.

Demand balance
The demand constraints of market can be expressed by the following equations for four business sectors: The quantity of lost demand L s i;j;t is as follows:

Producing products
Equation (11) defines the quantities of refined products that may be produced from a specific kind of crude oil: Producing of petrochemical products are defined with respect to the refined products as: Producing of downstream products are defined with respect to the petrochemical products as:

Refinery throughput
Bounds on total yield's crude oil in the refineries are expressed as:

Petrochemicals and downstream chemicals production bounds
Upper bounds for the production quantities of petrochemical and downstream chemical products: 4 Robust optimization mathematical model Many countries, including Iran, have an oil-dependent economy. Thereupon, income fluctuations in such countries can greatly affect the national economy and results in political challenges. In order to provide an efficient production plan based on the concerned problem assumptions, a model has to be elaborated that can meet all the limitations of the studied problems at the same time. Since in the oil market the demands can be accompanied with uncertainties and this issue may impose high cost to decision maker, the model should be formed in the way which can conveniently control the violation cost and average performance of the system. Another issue here is the risk aversion nature of the net profit in such supply chain. High tolerances in net profit can cause instability in the economy of a country.
Therefore, the proposed model should also able to control the performance variance under different possible values of uncertain parameters to avoid the relevant risks. The solution of an optimization problem is called to be robust if it remains feasible for almost all possible values of uncertain parameters (feasibility robustness) and the relevant objective function value remains close to optimal value for almost all possible values of uncertain parameters (optimality robustness) [25]. Here a scenario-based twostage robust optimization model proposed by Yu and Li [26] that it is modified version of Mulvey et al. [27] model is applied to ensure the robustness of the model solution.
Compared to different robust programming approaches such as the methods proposed by Pishvaee et al. [25], Bertsimas and Sim [28] and Ben-Tal and Nemirovski [29], the scenario-based robust optimization method has significant advantages. This method can use both the subjective and objective information to model the uncertain parameters via scenarios which is more convenient compared to forming probability or possibility distributions. Also, this method is able to form a reasonable balance between average performance, feasibility robustness and optimality robustness and therefore, achieve a more practical solution compared to worst-case methods which impose high conservatism to decision maker. The proposed model tries to increase the average benefits of all the scenarios (average system's performance) while reducing the amount of variance (optimality robustness) and controlling the constraint violation cost (feasibility robustness).
In the developed model h s represents the violation unit cost of constraints which controls the feasibility robustness. In addition n% and (1 À n)% importance weights are given to average performance and the variance, respectively. The probability of each scenario is denoted by p w , which w represents the index of scenarios. Moreover, q þ s;w ; q À s;w denote the positive and negative deviation of the value of the objective function under each scenario from the average performance and / þ s ; / À s denote the amount of positive and negative constraint violation, respectively.
In the petroleum company problem presented in this study, the first-stage decisions correspond to the production profile of each type of crude oil during the planning horizon. Second-stage decisions consist of quantities of refinery and petrochemical products produced as well as quantities of all shipments, storage, lost demands and backlogs for different scenarios.
First-stage decisions are crude oil production quantities V c;k i;t . Hence, the second-stage variables include production quantities of refinery products, petrochemicals and downstream petrochemicals (V s;k;w i;t ; s 2 {R, P, D}), allocated quantities for further processing (VC R;k;w i;t ; VP R;k;w i;t and VD P ;k;w i;t ), as well as quantities shipped, stored, lost demand, and backlog (F s;k;w i;j;t ; S s;k;w i;t ; L s;w i;j;t ; B s;w i;j;t ; s 2 {C, R, P, D}). The two sources of uncertainty considered in this study changed in market demand for crude oil and the market prices of crude oil, refinery products, petrochemicals and downstream chemicals produced by the petroleum organization.

The objective function in a state of uncertainty
The objective is to reduce the net loss or increase the net profit that can be expressed as follows: Here z C ; z R ; z P and z D show the profit of crude oil, refineries, petrochemical and downstream sectors respectively, which together achieved with regard to all scenarios come. In all these sections the prices are uncertain.
Objective function of crude oil in a state of uncertainty can be expressed as follows: Objective function of petrochemical and downstream sector in a state of uncertainty can be expressed as follows: Objective function of the refinery in a state of uncertainty can be expressed as follows:

The constraints at state of uncertainty
Variance constraints for crude oil sectors is expressed as follows: E Z c ð Þ is average net loss of crude oil and Z c;w is loss for each scenario in the crude oil. The quantity of crude oil production is a primary variable and independent from scenarios. This limitation shows the amount of difference between function benefit and the average. c represents the supply chain crude oil sector.
Variance constraints for petrochemical and downstream sectors is expressed as follows: E Z s ð Þ is average net loss for the petrochemical and downstream segments and Z s;w is the loss for each scenario in the petrochemical and downstream segments.
Variance constraints for refinery sectors is expressed as follows: E Z r ð Þ is average net loss for the refinery segments and Z r;w is the loss for each scenario in the refinery segments:

Constraints material balance
Material balance for crude oil in a state of uncertainty as follows: Material balance for refinery products in a state of uncertainty as follows: Material balance for petrochemical products in a state of uncertainty as follows: In this equation assumes that all factories have common storage and market facilities.

Demand balance in a state of uncertainty
Demand market constraints can be expressed by the following equations to four business sections. In this part, the uncertainty of demand for each scenario is specified by / w factor: The amount of lost demand L s i;j;t in a state of uncertainty are as follows: 8s 2 C; R; P ; D f g ; 8i 2 P s ; j 2 M s ; t 2 T ; w ¼ 1; :::; 5: ð36Þ Crude oil constraints production in a state of uncertainty are as follows:

Production constraints in a state of uncertainty
The following equation defines the value of refined products, which may be of a certain type of crude oil: Production of petrochemical products in relation to refined products, will be as follows: i;j VC R;k;w j;t 8i 2 P P ; k 2 I P ; t 2 T ; w ¼ 1; . . . ; 5: ð39Þ The production of downstream products in relation to petroleum products, is expressed as follows: The total efficiency range of crude oil in refineries is as follows: Range of petrochemicals and chemical downstream products explained as follow: In this part, the offered model will be reviewed in certain mode by the country's crude oil supply chain data. The costs include the cost of warehousing, manufacturing cost, the cost of the backlog, the cost of lost demand, and transmission cost to demand centers. The cost of buying and selling between the supply chain is not considered because the cost of sales per unit of goods is equal to the cost of buying it in the next section. In the following, the demands and different cost of products have been considered for 12 months. Figure 2 shows the demand for various products for a 12-month period and Figure 3 shows the price of refined products for a period of 12 months. As previously mentioned, in the energy market, particularly oil and gas, the demands and oil price have usually had fluctuations and uncertainties in different periods for various reasons as political, economic, etc. As a consequence, the estimation of producing quantity in different situations is very important for planners, in the way that the loss of this uncertainties is minimized. Therefore, the scenarios for demands and prices should always be predicted, and the most probable of them must be selected; furthermore, a suitable model have to be designed for solving the problem. In this issue five different scenarios are considered. Table 2 illustrates the five scenarios (the initial demand D and the initial price P).

Results and discussion
Both the deterministic and stochastic formulations described above are Linear Programs (LP), which are implemented and solved using GAMS. The solver used is CPLEX 12.6. For the supply chain network example presented in the following section, the deterministic cases involve solving 5849 equations with 14 369 variables and 89 104 non-zero elements. The nondeterministic cases involve solving 27 019 equations with 69 535 variables and 742 858 non-zero elements. Figure 4 shows the lack of demand lost in each period to meet the demands for crude oil. Here net profit of the whole supply chain for four parts (i.e. crude oil, refinery, petrochemical and downstream) is determined. It should be noted that the profit from the difference between revenue and expenditure chain is different. Figure 5 shows a net profit of four sections of petroleum supply chain. Figure 6 shows the percentage contribution of each of these sectors to benefit the entire petroleum supply chain.

The state of certainty
The total cost of the petroleum supply chain is imposed in this 12 periods are: production cost, maintenance cost, backlog cost, lost demand cost, shipping cost. The supply chain revenue is the sales revenue. The costs and revenues of petrochemical products to 12 specifies the period are set out in Figure 7. As it stands, backlog cost accounted for the highest cost, and this amount increases in each   Table 2. Price and demand scenarios in the case of uncertainty.

The state of uncertainty
Here the problem has been raised by regarding to the five scenarios, the following criteria will be examined. Table 3 shows each of the scenarios probability in three modes. Table 4 shows the cost of constraints violation for each of the petroleum supply chain in five modes. Table 5 shows the importance of variance and mean in the five modes. Figure 8 shows average net profit chain for various scenarios in case of uncertainty, When the probability of all scenarios is equal to 0.2 (Mode 3) and the cost of constraints violation is in Mode 3 and the importance of the mean and variance is in Mode 1. If the issue is certain, the value of total net income is shown. As shown in Figures 8 and 9 as the problem is faced with an uncertainty, the amount of profitability is much more than in certainty mode. Figure 9 shows the net profit of the entire supply chain in a state of uncertainty vs. certainty.

Analysis of different modes in uncertainty
The probability of different scenarios could affect the profitability of the entire petroleum supply chain. Three modes are considered for probability of different scenarios in which once every five scenarios have same probability and in other two modes, the probability of each scenario is different. Figure 10 shows three different modes of the probabilities.
In Figure 11 the profitability of each of the considered scenarios can be observed. The results indicated that the change in the value of scenarios' probability has a low impact on the average value of profit under scenarios. However, when the scenario 3 is more probable, the average profit increases more than the other modes. In the case of    same probability for scenarios, the total profit is reduced. Therefore, it can be concluded that the average total profit is somehow robust according to changes in the probability of scenarios. As previously mentioned, the amount of constraint violation could cause some costs for the supply chain. However, since violation cost avoids the probability of infeasibility it can also increase the total profit under real-life situation. For this purpose, five different modes for the cost of constraint violation are intended. By examining these cases, the profitability can be increased under different modes. In case of constraint violation, as shown in Table 4, the cost is extremely high. It can be seen from Figure 12 that when the violation cost is high the profitability of all scenarios as well as the average total profit reduced (see the results of Mode 1), but when violation cost is low (i.e. the risk is low) the total profit increases (cases 2 and 5).
In different conditions the importance of average and variance of the supply chain performance can be varied. So the five different modes in which the importance of the average and variance of interest have investigated to examine the profitability of the entire chain. According to Table 5 in Modes 1 and 2 the coefficient of variation (i.e., importance weight) is high, but, in the Mode 3 the important weights are the same and the importance weight of the average performance is high in the Modes 4 and 5. As it can be seen in Figure 13 when the importance weight of the average is zero, the objective function reduces since only the variance term in the objective function is activated. Therefore, the profitability of different scenarios occurs at a very low value and the variance would be zero (Mode 1). When the importance of both average and variance terms are the same, the most desirable result is achieved, i.e., the low amount of variance and high value for average (Mode 3). In the case of Modes 4 and 5, that the importance of average has gone up not only the total profit is not increased, but also the average is also facing decline, while the variance has not changed. Therefore, the state 3 can be considered as a more favorable condition.

Conclusion
Always the demands of different energies, particularly oil, have a lot of fluctuations. So demands cannot be estimated precisely. Also, the cost of various products derived from crude oil is affected by different factors which in each period has uncertainty. In this study, we tried to examine the situation on the oil and gas markets and taking into account the existing uncertainty to price and market demand, offer a model that is based on linear programming with regard to the different scenarios, offer the optimal solution for the profitability of the various sectors of petroleum supply chain. In this study we also examined the risk appetite in this area and it was found that as the importance of variance and average was closer to them, the profit would be higher. This is on the condition that one of the risks is in the Middle conditions. But much more risk-averse will be less profit and also at high risks will decrease the average profit compared to the middle. The impact of probability of each scenario has little impact on the ultimate answer, but the changes in the cost constraint violation in some circumstances could    have a great impact on the ultimate answer. As the cost of limitation violation is higher, the profitability becomes less and as this cost is lower, model can apply a better solution to the problem of gain by violations of restrictions. The profitability when uncertainty is considered often more than the case when we consider the problem as certain. For future studies can be carried out much more with considering the optimal solution for each scenario and comparing it with the questions each scenario in the effect of other scenarios and minimizing the distance between them (or minimize the relative regret). You can always consider the demand and prices as continuum and solve the problem with Robust Convex Optimization and Robust Fuzzy Optimization. Also you can complete the chain and its development for other sections of energy and examine the profitability and reduce energy losses in a country. A recommended avenue for future research is to study Enhanced Oil Recovery (EOR) technology. The successful application of t EOR technology can have a significant impact on the energy conservation program of any oil producing country [30].