Example 2. Consider
the region
in the plane defined by the inequalities:
2 (a). Find the
maximum of
over
the region
.
Solution 2 (b).
Graph the domain defined by the constraints.
![[Graphics:../Images/LinearProgrammingMod_gr_217.gif]](../Images/LinearProgrammingMod_gr_217.gif)
![[Graphics:../Images/LinearProgrammingMod_gr_218.gif]](../Images/LinearProgrammingMod_gr_218.gif)
Enter the objective function.
![[Graphics:../Images/LinearProgrammingMod_gr_220.gif]](../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).
Use the simplex algorithm to find this solution.
Enter the coefficients of the decision variables and right side of the tableau.
Mathematica will fill in the columns for the slack
variables and append a column of zeros which will be use to calculate
the ratios
for determining the pivot rows.
![[Graphics:../Images/LinearProgrammingMod_gr_226.gif]](../Images/LinearProgrammingMod_gr_226.gif)
Aside. The bottom line of the tableau corresponds to the augmented objective function
The first step in the simplex method is to determine an exchange variable.
![[Graphics:../Images/LinearProgrammingMod_gr_230.gif]](../Images/LinearProgrammingMod_gr_230.gif)
There is a tie for choosing the first
exchange variable
is chosen since the current
coefficients
are
negative and is smaller any of the other
coefficients
.
This time, let us eliminate the exchange
variable
and
use
.
![[Graphics:../Images/LinearProgrammingMod_gr_237.gif]](../Images/LinearProgrammingMod_gr_237.gif)
To determine the pivot row we need to
consider the ratios
. The
pivot row
is
chosen to be the row where the minimum ratio
occurs. Since
is
smallest, use simplex Gaussian elimination to eliminate
using the pivot row
.
![[Graphics:../Images/LinearProgrammingMod_gr_244.gif]](../Images/LinearProgrammingMod_gr_244.gif)
From column 1 we see that
. The
new point
in
a feasible
solution. The simplex method has moved from its
previous point
along the edge
to
the point
.
![[Graphics:../Images/LinearProgrammingMod_gr_251.gif]](../Images/LinearProgrammingMod_gr_251.gif)
The second step in the simplex method is to determine the next exchange variable.
![[Graphics:../Images/LinearProgrammingMod_gr_254.gif]](../Images/LinearProgrammingMod_gr_254.gif)
The second exchange variable
is chosen since the current coefficient
is
negative and is smaller any of the other
coefficients
.
Eliminate the exchange variable
and
use
.
![[Graphics:../Images/LinearProgrammingMod_gr_261.gif]](../Images/LinearProgrammingMod_gr_261.gif)
To determine the pivot row we need to
consider the ratios
. The
pivot row
is
chosen to be the row where the minimum ratio
occurs. Since
is
smallest, use simplex Gaussian elimination to eliminate
using the pivot row
.
![[Graphics:../Images/LinearProgrammingMod_gr_268.gif]](../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
. From
column 2 and row 3 we see that
. The
new point
is
the optimal feasible
solution. The simplex method has moved from its
previous point
along the edge
to
the point
. The
value of the objective function at the solution point is located in
the bottom row of the column "
", i.e.
.
![]()
We are done!
Aside. The
slack variables could be computed from (4)
using the initial coefficients of the tableau:
for
rows
in the
tableau.
The bottom line of the tableau corresponds to the augmented objective function.
![[Graphics:../Images/LinearProgrammingMod_gr_282.gif]](../Images/LinearProgrammingMod_gr_282.gif)
![[Graphics:../Images/LinearProgrammingMod_gr_284.gif]](../Images/LinearProgrammingMod_gr_284.gif)
![[Graphics:../Images/LinearProgrammingMod_gr_285.gif]](../Images/LinearProgrammingMod_gr_285.gif)
Graph the domain defined by the constraints and the level curves of the objective function.
![[Graphics:../Images/LinearProgrammingMod_gr_287.gif]](../Images/LinearProgrammingMod_gr_287.gif)
![[Graphics:../Images/LinearProgrammingMod_gr_288.gif]](../Images/LinearProgrammingMod_gr_288.gif)
(c) John H. Mathews 2005