Example 6.  Find the maximum of   [Graphics:Images/LinearProgrammingMod_gr_439.gif]    subject to the constraints:

        [Graphics:Images/LinearProgrammingMod_gr_440.gif]  

Solution 6.

Enter the objective function and constraints.

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


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

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


[Graphics:../Images/LinearProgrammingMod_gr_444.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_445.gif]
[Graphics:../Images/LinearProgrammingMod_gr_446.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_447.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_448.gif] for determining the pivot rows.

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


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

 

 

Run the subroutine  SimplexMethod.

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


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

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

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

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

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

 

 

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

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

From column 1 and row 1 we see that [Graphics:../Images/LinearProgrammingMod_gr_457.gif].  From column 2 and row 3 we see that [Graphics:../Images/LinearProgrammingMod_gr_458.gif].  From column 3 and row 2 we see that [Graphics:../Images/LinearProgrammingMod_gr_459.gif].  From column 4 and row 4 we see that [Graphics:../Images/LinearProgrammingMod_gr_460.gif].  The final point  [Graphics:../Images/LinearProgrammingMod_gr_461.gif]  is the optimal feasible solution.  The simplex method has moved from the origin along the edges to the point [Graphics:../Images/LinearProgrammingMod_gr_462.gif].  The value of the objective function at the solution point is located in the bottom row of the column "[Graphics:../Images/LinearProgrammingMod_gr_463.gif]",  i.e.  [Graphics:../Images/LinearProgrammingMod_gr_464.gif].  

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

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

 

 

We are done!

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

    
[Graphics:../Images/LinearProgrammingMod_gr_467.gif]   for rows   [Graphics:../Images/LinearProgrammingMod_gr_468.gif] in the tableau.    

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

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


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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2005