Example 2.  Consider the region [Graphics:Images/LinearProgrammingMod_gr_137.gif] in the plane defined by the inequalities:  

        [Graphics:Images/LinearProgrammingMod_gr_138.gif]   

2 (a).  Find the maximum of   [Graphics:Images/LinearProgrammingMod_gr_139.gif]   over the region [Graphics:Images/LinearProgrammingMod_gr_140.gif].  

Solution 2 (b).

Graph the domain defined by the constraints.

[Graphics:../Images/LinearProgrammingMod_gr_216.gif]


[Graphics:../Images/LinearProgrammingMod_gr_217.gif]

[Graphics:../Images/LinearProgrammingMod_gr_218.gif]

 

 

Enter the objective function.

[Graphics:../Images/LinearProgrammingMod_gr_219.gif]


[Graphics:../Images/LinearProgrammingMod_gr_220.gif]

 

 

Use the Mathematica subroutine LinearProgramming to find the solution (note carefully the "-" signs in front of the matrix and vector in the second and third arguments).

 

[Graphics:../Images/LinearProgrammingMod_gr_221.gif]

[Graphics:../Images/LinearProgrammingMod_gr_222.gif]


Use the simplex algorithm to find this solution.  

Enter the coefficients of the decision variables and right side of the tableau.  

 

[Graphics:../Images/LinearProgrammingMod_gr_223.gif]

Mathematica will fill in the columns for the slack variables and append a column of zeros which will be use to calculate the ratios [Graphics:../Images/LinearProgrammingMod_gr_224.gif] for determining the pivot rows.

[Graphics:../Images/LinearProgrammingMod_gr_225.gif]


[Graphics:../Images/LinearProgrammingMod_gr_226.gif]

 

 

Aside.  The bottom line of the tableau corresponds to the augmented objective function

[Graphics:../Images/LinearProgrammingMod_gr_227.gif]

[Graphics:../Images/LinearProgrammingMod_gr_228.gif]

The first step in the simplex method is to determine an exchange variable.

[Graphics:../Images/LinearProgrammingMod_gr_229.gif]


[Graphics:../Images/LinearProgrammingMod_gr_230.gif]

 

 

There is a tie for choosing the first exchange variable [Graphics:../Images/LinearProgrammingMod_gr_231.gif] is chosen since the current coefficients  [Graphics:../Images/LinearProgrammingMod_gr_232.gif]  are negative and is smaller any of the other coefficients  [Graphics:../Images/LinearProgrammingMod_gr_233.gif].  
This time, let us eliminate the exchange variable  [Graphics:../Images/LinearProgrammingMod_gr_234.gif]  and use  [Graphics:../Images/LinearProgrammingMod_gr_235.gif].

[Graphics:../Images/LinearProgrammingMod_gr_236.gif]

[Graphics:../Images/LinearProgrammingMod_gr_237.gif]

To determine the pivot row we need to consider the ratios  [Graphics:../Images/LinearProgrammingMod_gr_238.gif].  The pivot row  [Graphics:../Images/LinearProgrammingMod_gr_239.gif]  is chosen to be the row where the minimum ratio occurs.  Since  [Graphics:../Images/LinearProgrammingMod_gr_240.gif]  is smallest, use simplex Gaussian elimination to eliminate [Graphics:../Images/LinearProgrammingMod_gr_241.gif] using the pivot row   [Graphics:../Images/LinearProgrammingMod_gr_242.gif].

[Graphics:../Images/LinearProgrammingMod_gr_243.gif]

[Graphics:../Images/LinearProgrammingMod_gr_244.gif]

 

 

From column 1 we see that [Graphics:../Images/LinearProgrammingMod_gr_245.gif].  The new point  [Graphics:../Images/LinearProgrammingMod_gr_246.gif]  in a feasible solution.  The simplex method has moved from its previous point  [Graphics:../Images/LinearProgrammingMod_gr_247.gif] along the edge  [Graphics:../Images/LinearProgrammingMod_gr_248.gif]  to the point [Graphics:../Images/LinearProgrammingMod_gr_249.gif].

[Graphics:../Images/LinearProgrammingMod_gr_250.gif]


[Graphics:../Images/LinearProgrammingMod_gr_251.gif]

[Graphics:../Images/LinearProgrammingMod_gr_252.gif]

The second step in the simplex method is to determine the next exchange variable.

[Graphics:../Images/LinearProgrammingMod_gr_253.gif]


[Graphics:../Images/LinearProgrammingMod_gr_254.gif]

 

 

The second exchange variable [Graphics:../Images/LinearProgrammingMod_gr_255.gif] is chosen since the current coefficient  [Graphics:../Images/LinearProgrammingMod_gr_256.gif]  is negative and is smaller any of the other coefficients  [Graphics:../Images/LinearProgrammingMod_gr_257.gif].  
Eliminate the exchange variable  [Graphics:../Images/LinearProgrammingMod_gr_258.gif]  and use  [Graphics:../Images/LinearProgrammingMod_gr_259.gif].  

[Graphics:../Images/LinearProgrammingMod_gr_260.gif]

[Graphics:../Images/LinearProgrammingMod_gr_261.gif]

To determine the pivot row we need to consider the ratios  [Graphics:../Images/LinearProgrammingMod_gr_262.gif].  The pivot row  [Graphics:../Images/LinearProgrammingMod_gr_263.gif]  is chosen to be the row where the minimum ratio occurs.  Since  [Graphics:../Images/LinearProgrammingMod_gr_264.gif]  is smallest, use simplex Gaussian elimination to eliminate [Graphics:../Images/LinearProgrammingMod_gr_265.gif] using the pivot row   [Graphics:../Images/LinearProgrammingMod_gr_266.gif].

[Graphics:../Images/LinearProgrammingMod_gr_267.gif]

[Graphics:../Images/LinearProgrammingMod_gr_268.gif]

 

 

There are no negative coefficients in the bottom row, so we are done.

From column 1 and row 1 we see that [Graphics:../Images/LinearProgrammingMod_gr_269.gif].  From column 2 and row 3 we see that [Graphics:../Images/LinearProgrammingMod_gr_270.gif].  The new point  [Graphics:../Images/LinearProgrammingMod_gr_271.gif]  is the optimal feasible solution.  The simplex method has moved from its previous point  [Graphics:../Images/LinearProgrammingMod_gr_272.gif] along the edge  [Graphics:../Images/LinearProgrammingMod_gr_273.gif]  to the point [Graphics:../Images/LinearProgrammingMod_gr_274.gif].  The value of the objective function at the solution point is located in the bottom row of the column "[Graphics:../Images/LinearProgrammingMod_gr_275.gif]",  i.e.  [Graphics:../Images/LinearProgrammingMod_gr_276.gif].

[Graphics:../Images/LinearProgrammingMod_gr_277.gif]

[Graphics:../Images/LinearProgrammingMod_gr_278.gif]

 

 

We are done!

Aside.  The slack variables could be computed from (4) using the initial coefficients of the tableau:

    
[Graphics:../Images/LinearProgrammingMod_gr_279.gif]   for rows   [Graphics:../Images/LinearProgrammingMod_gr_280.gif] in the tableau.    

The bottom line of the tableau corresponds to the augmented objective function.

[Graphics:../Images/LinearProgrammingMod_gr_281.gif]


[Graphics:../Images/LinearProgrammingMod_gr_282.gif]

 

 

[Graphics:../Images/LinearProgrammingMod_gr_283.gif]


[Graphics:../Images/LinearProgrammingMod_gr_284.gif]

[Graphics:../Images/LinearProgrammingMod_gr_285.gif]

 

 

Graph the domain defined by the constraints and the level curves of the objective function.

[Graphics:../Images/LinearProgrammingMod_gr_286.gif]


[Graphics:../Images/LinearProgrammingMod_gr_287.gif]

[Graphics:../Images/LinearProgrammingMod_gr_288.gif]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2005