9.5 The Simplex Method: Mixed Constraints: Dard Form. The Constraints For The Maximization Problems All Involved
9.5 The Simplex Method: Mixed Constraints: Dard Form. The Constraints For The Maximization Problems All Involved
2 1 1 1 0 0 50 s1
2 1 0 0 1 0 36 s2
1 0 1 0 0 1 10 s3 ← Departing
1 1 2 0 0 0 0
↑
Entering
You will soon discover that solving mixed-constraint problems can be difficult. One
reason for this is that there is no convenient feasible solution to begin the simplex method.
Note that the solution represented by the initial tableau above,
x1, x2, x3, s1, s2, s3 0, 0, 0, 50, 36, 10,
558 CHAPTER 9 LINEAR PROGRAMMING
is not a feasible solution because the values of the two surplus variables are negative. In fact,
the values x1 x2 x3 0 do not even satisfy the constraint equations. In order to elim-
inate the surplus variables from the current solution, “trial and error” is used. That is, in an
effort to find a feasible solution, arbitrarily choose new entering variables. For instance, in
this tableau, it seems reasonable to select x3 as the entering variable. After pivoting, the new
simplex tableau becomes the following.
Basic
x1 x2 x3 s1 s2 s3 b Variables
1 1 0 1 0 1 40 s1
2 1 0 0 1 0 36 s2 ← Departing
1 0 1 0 0 1 10 x3
1 1 0 0 0 2 20
↑
Entering
The current solution x1, x2, x3, s1, s2, s3 0, 0, 10, 40, 36, 0 is still not feasible, so
choose x2 as the entering variable and pivot to obtain the following simplex tableau.
Basic
x1 x2 x3 s1 s2 s3 b Variables
1 0 0 1 1 1 4 s1 ← Departing
2 1 0 0 1 0 36 x2
1 0 1 0 0 1 10 x3
3 0 0 0 1 2 56
↑
Entering
1 0 0 1 1 1 4 s3
2 1 0 0 1 0 36 x2
0 0 1 1 1 0 14 x3
1 0 0 2 1 0 64
SECTION 9.5 THE SIMPLEX METHOD: MIXED CONSTRAINTS 559
Note that this tableau is final because it represents a feasible solution and there are no
negative entries in the bottom row. So, you can conclude that the maximum value of the
objective function is
z 64 Maximum value
Solution To begin, add a slack variable to each of the first two inequalities and subtract a surplus vari-
able from the third inequality to produce the following initial simplex tableau.
Basic
x1 x2 x3 s1 s2 s3 b Variables
3 2 5 1 0 0 18 s1
4 2 3 0 1 0 16 s2
2 1 1 0 0 1 4 s3 ← Departing
3 2 4 0 0 0 0
↑
Entering
As it stands, this tableau does not represent a feasible solution (because the value of s3 is
negative). So, s3 should be the departing variable. There are no real guidelines as to which
variable should enter the solution, but by trial and error, you will discover that using x2 as
the entering variable produces the following tableau (which does represent a feasible
solution).
Basic
x1 x2 x3 s1 s2 s3 b Variables
1 0 3 1 0 2 10 s1 ← Departing
0 0 1 0 1 2 8 s2
2 1 1 0 0 1 4 x2
1 0 2 0 0 2 8
560 CHAPTER 9 LINEAR PROGRAMMING
Now, because this simplex tableau does represent a feasible solution, you can proceed as
usual, choosing the most negative entry in the bottom row to be the entering variable. (In
this case, there is a tie, so arbitrarily choose x3 to be the entering variable.)
Basic
x1 x2 x3 s1 s2 s3 b Variables
1 0 3 1 0 2 10 s1 ← Departing
0 0 1 0 1 2 8 s2
2 1 1 0 0 1 4 x2
1 0 2 0 0 2 8
↑
Entering
Basic
x1 x2 x3 s1 s2 s3 b Variables
13 0 1 1
3 0 2
3
10
3 x3
1
3 0 0 13 1 4
3
14
3 s2 ← Departing
7
13 53
2
3 1 0 0 3 x2
1 2
23
44
3 0 0 3 0 3
↑
Entering
Basic
x1 x2 x3 s1 s2 s3 b Variables
12 0 1 1
2 12 0 1 x3
1
4 0 0 14 3
4 1 7
2 s3
11
34 5 13
4 1 0 4 0 2 x2
1 1 1
2 0 0 2 2 0 17
So, the maximum value of the objective function is
z 17
and this occurs when
x1 0, x2 13
2 , and x3 1.
Solution First, rewrite the objective function by multiplying each of its coefficients by 1, as
follows.
z 4x1 2x2 x3 Revised objective function
2 3 4 1 0 0 14 s1
3 1 5 0 1 0 4 s2 ← Departing
1 4 3 0 0 1 6 s3
4 2 1 0 0 0 0
↑
Entering
Note that the bottom row has the negatives of the coefficients of the revised objective func-
tion. Another way of looking at this is that for minimization problems (in nonstandard
form), the bottom row of the initial simplex consists of the coefficients of the original
objective function.
As with maximization problems with mixed constraints, this initial simplex tableau does
not represent a feasible solution. By trial and error, you will discover that you can choose
x2 as the entering variable and s2 as the departing variable. After pivoting, you obtain the
following tableau.
Basic
x1 x2 x3 s1 s2 s3 b Variables
7 0 11 1 3 0 2 s1
3 1 5 0 1 0 4 x2
2 0 9 0 2 0 8
562 CHAPTER 9 LINEAR PROGRAMMING
From this tableau, you can see that the choice of x2 as the entering variable was a good one.
All you need to do to transform the tableau into one that represents a feasible solution is to
multiply the third row by 1, as follows.
Basic
x1 x2 x3 s1 s2 s3 b Variables
7 0 11 1 3 0 2 s1
3 1 5 0 1 0 4 x2
11 0 17 0 4 1 10 s3 ← Departing
2 0 9 0 2 0 8
↑
Entering
Now that you have obtained a simplex tableau that represents a feasible solution, continue
with the standard pivoting operations as follows.
Basic
x1 x2 x3 s1 s2 s3 b Variables
2 7 11 144
17 0 0 1 17 17 17 s1
4 3 5 18
17 1 0 0 17 17 17 x2 ← Departing
11 4 1 10
17 0 1 0 17 17 17 x3
65 2 9
17 0 0 0 17 17 46
17
↑
Entering
Basic
x1 x2 x3 s1 s2 s3 b Variables
2
3 73 0 1 0 4
3 6 s1
43 17
3 0 0 1 53 6 s2
1 4
3 3 1 0 0 13 2 x3
11 2 1
3 3 0 0 0 3 2
Finally, you can conclude that the maximization value of the revised objective function is
z 2, and so the minimum value of the original objective function is
w2
(the negative of the entry in the lower-right corner), and this occurs when
x1 0, x2 0, and x3 2.
SECTION 9.5 THE SIMPLEX METHOD: MIXED CONSTRAINTS 563
Applications
An automobile company has two factories. One factory has 400 cars (of a certain model) in
stock and the other factory has 300 cars (of the model) in stock. Two customers order this
car model. The first customer needs 200 cars, and the second customer needs 300 cars. The
cost of shipping cars from the two factories to the customers is shown in Table 9.3.
TABLE 9.3
Customer 1 Customer 2
How should the company ship the cars in order to minimize the shipping cost?
Solution To begin, let x1 and x2 represent the number of cars shipped from Factory 1 to the first and
second customers, respectively. (See Figure 9.20.) The total cost of shipping is then given by
C 30x1 25x2 36200 x1 30300 x2 16,200 6x1 5x2.
Figure 9.20
The constraints for this minimization problem are as follows.
Factory 1
x1 x2 ≤ 400
$30 $25 200 x1 300 x2 ≤ 300 x1 x2 ≥ 200
x1 x2
x1 ≤ 200
x2 ≤ 300
Customer 1 Customer 2
The corresponding maximization problem is to maximize z 6x1 5x2 16,200. So, the
300 − x2
200 − x1
initial simplex tableau is as follows.
$36 $30
Basic
x1 x2 s1 s2 s3 s4 b Variables
Factory 2
1 1 1 0 0 0 400 s1
1 1 0 1 0 0 200 s2 ← Departing
1 0 0 0 1 0 200 s3
0 1 0 0 0 1 300 s4
6 5 0 0 0 0 16,200
↑
Entering
564 CHAPTER 9 LINEAR PROGRAMMING
Note that the current z-value is 16,200 because the initial solution is
x1, x2, s1, s2, s3, s4 0, 0, 400, 200, 200, 300.
Now, to this initial tableau, apply the simplex method as follows.
Basic
x1 x2 s1 s2 s3 s4 b Variables
0 0 1 1 0 0 200 s1
1 1 0 1 0 0 200 x1
0 1 0 1 1 0 0 s3 ← Departing
0 1 0 0 0 1 300 s4
0 1 0 6 0 0 15,000
↑
Entering
Basic
x1 x2 s1 s2 s3 s4 b Variables
0 1 1 0 1 0 200 s1 ← Departing
1 0 0 0 1 0 200 x1
0 1 0 1 1 0 0 s2
0 1 0 0 0 1 300 s4
0 5 0 0 6 0 15,000
↑
Entering
Basic
x1 x2 s1 s2 s3 s4 b Variables
0 1 1 0 1 0 200 x2
1 0 0 0 1 0 200 x1
0 0 1 1 0 0 200 s2
0 0 1 0 1 1 100 s4
0 0 5 0 1 0 14,000
From this tableau, you can see that the minimum shipping cost is $14,000. Because
x1 200 and x2 200, you can conclude that the number of cars that should be shipped
from each factory is as shown in Table 9.4.
TABLE 9.4
Customer 1 Customer 2
37.
Outlet I Outlet II
Plant A $4 $5
Plant B $5 $6