Exercise 3.21

Consider the oil refinery problem in Exercise 1.16.

  • Use the simplex method to find an optimal solution.
  • Suppose that the selling price of heating oil is sure to remain fixed over the next month, but the selling price of gasoline may rise. How high can it go without causing the optimal solution to change?
  • The refinery manager can buy crude oil B on the spot market at $40/barrel, in unlimited quantities. How much should be bought?

Answers

(a) We start with the linear programming formulation from Exercise 1.16, convert it to standard form by introducing slack variables x 4 , x 5 , and switch to minimization by negating the objective function.

minimize 200 x 1 60 x 2 206 x 3 subject to 3 x 1 + x 2 + 5 x 3 + x 4 = 8 5 x 1 + x 2 + 3 x 3 + x 5 = 5 x 1 , x 2 , x 3 , x 4 , x 5 0 .

The initial basic feasible solution is x = ( 0 , 0 , 0 , 8 , 5 ) , with basis variables x 4 , x 5 . We apply the simplex method.

x 1 x 2 x 3 x 4 x 5
0 -200 -60 -206 0 0
x 4 = 8 3 1 5 1 0
x 5 = 5 5 1* 3 0 1

 

x 1 x 2 x 3 x 4 x 5
300 100 0 -26 0 60
x 4 = 3 -2 0 2* 1 -1
x 2 = 5 5 1 3 0 1

 

x 1 x 2 x 3 x 4 x 5
339 74 0 0 13 47
x 3 = 3 2 -1 0 1 1/2 -1/2
x 2 = 1 2 8 1 0 -3/2 5/2


All reduced costs are non-negative, so the algorithm terminates. The optimal solution is x 1 = 0 , x 2 = 1 2 , x 3 = 3 2 . The optimal profit is $339 million.

(b) Let the selling price of gasoline be P g = 38 + Δ . The original profit coefficients change as follows:

c 1 ( Δ ) = 4 ( 38 + Δ ) + 3 ( 33 ) 51 = 200 + 4 Δ c 2 ( Δ ) = 1 ( 38 + Δ ) + 1 ( 33 ) 11 = 60 + Δ c 3 ( Δ ) = 3 ( 38 + Δ ) + 4 ( 33 ) 40 = 206 + 3 Δ

The current basis B = { 3 , 2 } remains optimal as long as the reduced costs of all nonbasic variables remain non-positive (for the maximization problem). Let p = c B B 1 be the vector of shadow prices. From the final tableau, the columns corresponding to the initial slack variables give us B 1 :

B 1 = [ 1 2 1 2 3 2 5 2 ]

The new basic cost vector is c B ( Δ ) = [ c 3 ( Δ ) , c 2 ( Δ ) ] = [ 206 + 3 Δ , 60 + Δ ] . The new shadow prices are:

p ( Δ ) = c B ( Δ ) B 1 = ( [ 206 , 60 ] + [ 3 Δ , Δ ] ) B 1 = [ 13 , 47 ] + [ 3 Δ , Δ ] [ 1 2 1 2 3 2 5 2 ] = [ 13 , 47 ] + [ 0 , Δ ] = [ 13 , 47 + Δ ]

We check the reduced costs c ¯ j ( Δ ) = c j ( Δ ) p ( Δ ) A j for nonbasic variables j = 1 , 4 , 5 :

  • c ¯ 1 ( Δ ) = ( 200 + 4 Δ ) [ 13 , 47 + Δ ] [ 3 5 ] = ( 200 + 4 Δ ) ( 39 + 235 + 5 Δ ) = 74 Δ . We need 74 Δ 0 Δ 74 .
  • c ¯ 4 ( Δ ) = 0 [ 13 , 47 + Δ ] [ 1 0 ] = 13 . This is always 0 .
  • c ¯ 5 ( Δ ) = 0 [ 13 , 47 + Δ ] [ 0 1 ] = 47 Δ . We need 47 Δ 0 Δ 47 .

Both conditions must hold, so we require Δ 47 . This means the price can drop by up to $47, but since the question asks how high it can go, there is no upper bound. The price of gasoline can rise indefinitely without changing the optimal basis.

(c) The shadow price corresponding to the crude oil B constraint (the second constraint) is p 2 = 47 . This means that for each additional barrel of crude B, the profit increases by $47. The spot market price is $40/barrel. Since the marginal value ($47) is greater than the cost ($40), it is profitable to buy more crude B. The net gain is $7 per barrel.

We can continue buying crude B as long as the current basis remains feasible. Let δ be the millions of barrels of crude B purchased. The new RHS vector is b = [ 8 , 5 + δ ] . The new basic feasible solution is:

x B ( δ ) = B 1 b = [ 1 2 1 2 3 2 5 2 ] [ 8 5 + δ ] = [ 4 ( 5 + δ ) 2 12 + 5 ( 5 + δ ) 2 ] = [ 3 2 δ 2 1 2 + 5 δ 2 ]

For this solution to remain feasible, both components must be non-negative:

  • x 3 ( δ ) = 3 2 δ 2 0 3 δ .
  • x 2 ( δ ) = 1 2 + 5 δ 2 0 , which is true for all δ 0 .

The basis remains optimal for 0 δ 3 . Since the purchase is profitable throughout this range, the manager should buy the maximum possible amount. Therefore, the manager should buy 3 million barrels of crude oil B.

User profile picture
2025-10-21 13:57
Comments