Académique Documents
Professionnel Documents
Culture Documents
Objective Function:
Subjected to:-
Reid Vapor Pressure
Gas A
Gas B
Gas C
Availability
Alkaline = X11 + X12 + X13 + X1= 14000
Demand
Gas A = X11 + X21 + X31 + X41 >= 12000
Marketing
(X11 – X12) + (X21 – X22) + (X31 – X32) + (X41 – X42) >= 0
Octane
Gas A
Gas B
Gas C
1. Included a row to update values of the decision variables and update the price of each type of gasoline and the
feedstock in another row:
2. Now, calculate the total profit based on the given price and the values of the decision variables using the SUMPRODUCT
() function in the cell R5 as shown in the above screenshot.
3. Now Reid Vapor Pressure for each stock is given and the maximum Reid Vapor Pressure for Gasoline is mentioned as
seven. To convert the constraint into an equation, we will take (Reid Vapor Pressure – Limit of Reid Vapor Pressure = 0).
Since we have less than or equal to condition, we are subtracting it.
4. In Availability constraint, the cells corresponding to Alkylate in both the rows and columns should be marked as 1. Also,
in Demand constraint, the cell corresponding to the Gasoline A in both rows and columns should be marked as 1.
Similarly do it for rest:
5. It is given that Marketing Condition of Gasoline A should be greater than B. For this we will do
(Gasoline A – Gasoline B = 0). Since there is less than equal to condition, we are subtracting it. Hence, update one in the
Gasoline A cell and minus one in Gasoline B cell.
6. Last constraint is Octane. For Gasoline A the value will be equal to the difference between the maximum octane number
given in the table when the TEL value is 0.5 and the minimum octane number for Gasoline A (i.e. 80). For the other two
the value will be the difference between the maximum octane number given in the table when the TEL value is 4.0 and
the minimum octane number for Gasoline B & C (i.e. 91 & 100 resp.)
7. Finally, to calculate all the final values for each constraints based on the values of the decision variables, copy the
formula from cell R5 to the cell range R9 to R11, R14 to R17, R20 to R22, R24 and R27 to R29.
If we run the solver we get the Total Maximum Income Based on the Product Mix is $816,200.