You are on page 1of 38

Supplement to Chapter 06 - Linear Programming

SUPPLEMENT TO CHAPTER 6: LINEAR PROGRAMMING


Answers to Discussion and Review Questions
1. Linear programming is well-suited to an environment of certainty. 2. The area of feasibility, or feasible solution space is the set of all combinations of values of the decision variables which satisfy the constraints. Hence, this area is determined by the constraints. 3. Redundant constraints do not affect the feasible region for a linear programming problem. Therefore, they can be dropped from a linear programming problem without affecting the optimal solution. 4. An iso-cost line represents the set of all possible combinations of two inputs that will result in a given cost. Likewise, an iso-profit line represents all of the possible combinations of two outputs which will yield a given profit. 5. Sliding an objective function line towards the origin represents a decrease in its value (i.e., lower cost, profit, etc.). Sliding an objective function line away from the origin represents an increase in its value. 6. a. Basic variable: In a linear programming solution, it is a variable not required to equal zero. b. Shadow price: It is the change in the value of the objective function per unit increase in a constraint right hand side. c. Range of feasibility: The range of values over which a constraints right hand side value may vary without changing the optimal basic feasible solution. d. Range of optimality: The range of values over which a variables objective function value may vary without changing the current optimal basic feasible solution.

6S-1

Supplement to Chapter 06 - Linear Programming

Solution to Problems
1. a. 1. The optimal values of the decision variables are x1 = 2, x2 = 9 and the optimal objective function value = z = 35. 2. None of the constraints have any slack. Both constraints are binding. 3. Neither of the constraints have any surplus (there are no greater than or equal to constraints). 4. No, there are no redundant constraints. X2 18

16

14 Optimum

12

10

8 ProfitLine Material Labor 2 2 4 Simultaneous solution: *2 (6x1 + 4 x2 = 48) *1 (4 x1 + 8 x2 = 80) 6 8 10 12 14 16 18 20 X1

(12x1 + 8x2 = 96) * 1 (4x1 + 8 x2 = 80)

6S-2

Supplement to Chapter 06 - Linear Programming

Solutions (continued)
12x1 4x1 8x1 x1 8x2 + 8x2 = 96 = 80 = 16 = 2 4x1 4(2) + 8x2 + 8x2 8x2 x2 = 80 = 80 = 72 = 9

z = 4x1 + 3x2 = 4(2) + 3(9) = 35 b. 1. The optimal values of the decision variables are x1 = 1.5, x2 = 6.25 and the optimal objective function value z = 65.5. 2. None of the constraints have any slack. 3. The second constraint has a surplus of 15. (There are 15 lbs. of excess material). 4. No, there are no redundant constraints. *R & T (Optimum) 10x1 + 4x2 x1 + 2x2 10x1 + 4x2 2x1 4x2 8x1 = 40 = 14 = 40 = 28 = 12 R & S** 10x1 + x1 + 10x1 + 10x1 4x2 6x2 4x2 60x2 56x2 = 40 = 24 = 40 = 240 = 200

x1 = 1.5 1.5 + 2x2 = 14 2x2 = 12.5 x2 = 6.25 x1 = (1.5) (2), x2 = (6.25) (10) x1 = 3, x2 = 62.5 x1 + x2 = 65.5 S & T*** x1 + 6x2 = 24 x1 + 2x2 = 14 x1 + 6x2 = 24 x1 2x2 = 14 4x2 = 10 x2 = 2.5 x1 + 5 = 14 x1 = 9 x1 = (9) (2) = x2 = (2.5) (10) x1 = 18 x2 = 25 * R = durability ** S = Strength *** T = Time

x2 = 3.57 x1 + 21.42 = 24 x1 = 2.58 x1 = (2.58) (2), x2 = (3.57) (10) x1 = 5.16, x2 = 35.7 x1 + x2 = 40.86

6S-3

Supplement to Chapter 06 - Linear Programming

Solutions (continued)

X2 24 22 20 18 16 14 12 10 8 6 4 2 0 R S 14 16 18 20 22 24 X1 Optimum

T 6 8 10 12

6S-4

Supplement to Chapter 06 - Linear Programming

Solutions (continued) c. 1. The optimal values of the decision variables are A = 24, B = 20 and the optimal objective function value = z = 204. 2. The third constraint has a slack of 120. In other words, there are 120 hours of unutilized labor hours. 3. There are no greater than or equal to constraints, therefore no surplus is possible. 4. No, there are no redundant constraints. B 100 90 80 70 Material 60 50 40 30 20 10 Machinery 10 20 30 40 50 60 70 At the intersection of Machinery and Material constraints: *5 (20A + 6B = 600) (Material) (Machinery) *4 (25A + 20B = 1000) 100A 100A + 30B = 3000 80 90 100 A Profit Line

Optimal Solution

Labor

80B = 4000 50B = 1000 B = 20

6S-5

Supplement to Chapter 06 - Linear Programming

Solutions (continued) From the material constraint 20A 20A + 6B + 6(20) = 600 = 600 substituting B = 20 20A = 480 A = 24

2. a. 1. The optimal values of the decision variables are: S = 8 and T = 20. The optimal objective function value = z = 58.4. 2. Since all of the constraints are greater than or equal to type, none of the constraints have any slack. 3. The third and fourth constraints have surpluses of 92 grams and 10 grams respectively. 4. Yes, the third constraint is redundant. It does not affect the feasible region. b. 1. The optimal values of the decision variables are: x1 = 4.2 and x2 = 1.6. The optimal value of the objective function = z = 13.2. 2. Yes, the constraint F has a slack of 4.6. 3. No, there is no surplus. 4. No, there are no redundant constraints.
X2

12

11 10 9 8 7 6 5 4 3 2 1 00
1
Optimum E D

10

11

12

X1

6S-6

Supplement to Chapter 06 - Linear Programming

Solutions (continued) D&E 4x1 + 2x2 2x1 + 6x2 4x1 + 2x2 4x1 12x2 10x2 = 20 = 18 = 20 = 36 = 16 1.6 D&F 4x1 + x1 + 4x1 + x1 3x1 2x2 = 20 2x2 = 12 2x2 = 20 2x2 = 12 = x1 = 2x2 = x2 = x1 = (2) (2.67) = 8 2.67 9.33 4.67 5.34

x2 =

4x1 + 3.2 = 20 4x1 = 16.8 x1 = x1 = (2) (4.2) = x2 = (3) (1.6) = 4.2 8.4 4.8

2.67 + 2x2 = 12

x2 = (3) (4.67) = 14.01 Total = 19.35

Total = 13.2 3. Subject to: Maximize: $40H + $30W

300

fabrication 4H + 2W 600 hours assembly 2H + 6W 480 hours a. Optimum: H = 132 W = 36 Z = $6,360 b. 0,80: Z=$2,400 150,0: Z = $6,000 132,36: Z = $6,360 (optimum)
W

250 fabrication 200

150

100

optimum

50

assembly

0 100 150 200 H 250

6S-7

Supplement to Chapter 06 - Linear Programming

Solutions (continued) 4. Peanuts cost $.60/lb. Deluxe revenue is $2.90/lb. Raisins cost $1.50/lb. Standard revenue is $2.55 /lb. Deluxe mix has 1/3 lb. peanuts, 2/3 lb. raisins. Hence, deluxe mix cost is 1 2 ($.60) + ($1.50) = $1.20/lb. 3 3 The standard mix has lb. peanuts and lb. raisins. Hence, the standard mix cost is ($.60) + ($1.50) = $1.05/lb. Profits are $2.90 $1.20 = $1.70/lb. for deluxe and $2.55 $1.05 = $1.50/lb. for the standard mix. Thus, the objective function is: Standard 220 Maximize: Z = $1.70D + $1.50S 200 Subject to: 180 2 1 raisins D + S 90 lb. 3 2 160 raisins 1 1 140 peanuts D + S 60 lb. 3 2 S = 110 120 D 110 lb. 100 S 110 lb. 80 Optimum: 60 D = 90 lb. 40 peanuts S = 60 lb. 20 Profit = $243 0 20 40 60 80 100 120 140 160 180 200 220 240 5. Maximize: $1.50A + $1.20G Deluxe Grape Subject to:
D = 110

sugar: flour:

1.5A + 2.0G 1,200 cups 3.0A + 3.0G 2,100 cups

1200 1000 800 600 400 200

time: 6.0A + 3.0G 3,600 min. Optimum: A = 500 pieces G = 200 pieces Revenue = $990

sugar

0
200 400 600

flour time
800 1000

Apple

6S-8

Supplement to Chapter 06 - Linear Programming

Solutions (continued)
Unused supplies sugar: 1.5(500) + 2(200) = 1,150 cups used. Hence, 1,200 1,150 = 50 cups remaining. flour: 3.0(500) + 3.0(200) = 2,100 cups used. No flour remains. time: 6.0(500) + 3.0(200) = 3,000 minutes. No time remains. 6. a. The optimal value of the decision variables are: x1 = 4, x2 = 0, x3 = 18. The optimal value of the objective function value = z = 106. b. The optimal value of the decision variables are: x1 = 15, x2 = 10, x3 = 0. The optimal value of the objective function value = z = 210. 7. a. follows: Constraint 1: Constraint 2: Constraint 3: For problem 6a, the range of feasibility for the three constraints are as 22 to infinity () 10 to 47.5 20 to 45

b. For problem 6a, the range of optimality for the three coefficients of the objective function are: Variable 1 (x1): Variable 2 (x2): Variable 3 (x3): 8. a. follows: Constraint 1: Constraint 2: Constraint 3: 2.5 to 15 to 10.6 1.333 to 8 For problem 6b, the range of feasibility for the three constraints are as 20 to 26.6667 35 to 50 35 to

b. For problem 6b, the range of optimality for the three coefficients of the objective function are: Variable 1 (X1): Variable 2 (X2): Variable 3 (X3): 6 to 12 5 to 10 to 20

9. The optimal value of the decision variables are: x1 = 0, x2 = 80, x3 = 50. The optimal value of the objective function is z = 350. The range of optimality for the profit coefficient of each variable is as follows:

x1:

to 3.042

6S-9

Supplement to Chapter 06 - Linear Programming

x2: x3:

1.95 to 3.75 2 to 5

Solutions (continued) 10. x1 = number of containers of orange juice x2 = number of containers of grapefruit juice x3 = number of containers of pineapple juice x4 = number of containers of All-in-One Orange Juice Grapefruit Juice Revenue per qt. $1.00 $.90 Cost per qt. Profit per qt. .50 $.50 .40 $.50

Pineapple Juice $.80 .35 $.45

All-in-One $1.10 .417 $.683

Maximize .50x1 + .50x2 + .45x3 + .683x4 s.t. Orange juice: Grapefr. juice: Pineapple juice: Grapefr. cont.: Ratio: 5x1 1x1 1x2 1x3 7x3 +.33x4 1600 qt. +.33x4 1200 qt. +.33x4 800 qt. 0 cont. 0 0

.30x1 +.70x2 .30x3 .30x4 x1, x2, x3, x4

The optimal values of the decision variables are: x1 = 800, x2 = 400, x4 = 2,424.24. The optimal value of the objective function coefficient: z = 2,255.78.

6S-10

Supplement to Chapter 06 - Linear Programming

Solutions (continued) 11. x1 = qty. of chopping boards x2 = qty. of knife holders maximize s.t. Cutting Gluing Finishing 1.4x1 + .8x2 5x1 12x1 + 3x2 x1, x2
x2 Opt. is: x1 = 0 120 x2 = 50 z = 300 finishing 70 50 Opt. gluing cutting x1 Slack: Cutting 16 minutes Gluing 0 Finishing 210 minutes

2x1

+ 6x2 56 minutes 360 0

+ 13x2 650

30

40

130

12.

x1 = qty. ham spread x2 = qty. deli spread maximize s.t. mayo mayo ham deli 1.4x1 + 1.0x2 70 lb. 1.4x1 + 1.0x2 112 lb. x1 20 pans x2 18 pans x1, x2 0 a. x1 = 37.14, x2 = 18, Cost = $165.42 b. x1 = 20, x2 = 84, Profit = $376.
mayo = 70 18 0 x1 70 mayo = 112 112

2x1

+ 4x2

(profit) or minimize 3x1 + 3x2 (cost)


x2

20

50

80

6S-11

Supplement to Chapter 06 - Linear Programming

Solutions (Continued) 13. A = quantity of product A B = quantity of product B C = quantity of product C A Revenue $80 Cost Matl #1 Matl #2 Labor Total Profit 2 3 x $ 5 = $10 1 x $ 4 = $12 5 $54 $26

B $90

C $70

x $ 5 = $ 5 6 x $ 5 = $30 x $ 4 = $20 $40 $50 $50 $20

3.2 x $10 = $32 1.5 x $10 = $15 2 x $10 = $20

Maximize 26A + 50B + 20C (profit) s.t. Matl #1 Matl #2 Labor A output A/B A 2A + 1B + 6C 200 lb. 3A + 5B 300 lb. 3.2A + 1.5B +2.0C 150 hr. 2/3A 1/3 0 B 1/3C 2A A A, B, C 0 Solution: Optimal values of the decision variables are: A = 18.75 B = 12.50 C = 25.00 Optimal value of the objective function is: z = $1,612.50 14. x1 = boxes of regular mix x2 = x3 = x4 = x5 = x6 = mix deluxe mix cashews mix raisins mix caramels mix chocolates 3B =0 5

6S-12

Supplement to Chapter 06 - Linear Programming

Solutions (continued) maximize s.t. cashews raisins caramels chocolate boxes: regular deluxe cashews raisins caramels chocolates x1, x2, x3, x4, x5, x6 0 Solution: x1 = 320 x2 = 40 x3 = 20 x4 = 120 x5 = 20 x6 = 60 Z = 433 x1 x2 x3 x4 x5 20 boxes 20 boxes 20 boxes 20 boxes 20 boxes x6 20 boxes .25x1 + .50x2 + .25x1 .25x1 .25x1 + .50x2 x3 + x4 + x5 + 120 lb./day 200 lb./day 100 lb./day x6 160 lb./day .80x1 + .90x2 + .70x3 + .60x4 + .50x5 + .75x6

15. a. The first constraint (machine) and the third constraint (material) are binding because S1 and S3 are not in the solution (are not basic variables). Therefore as nonbasic variables, they each have a value of zero. In other words, there are no excess machine hours or materials. b. The range of optimality for the objective function coefficient of product 3 is from 13.5 to 36. Therefore an increase from 15 to 22 would not change the value of the decision variables. However, the objective function value would increase from 792 to 792 + 48 (22 15). Therefore the new value of z = 1128. c. The range of optimality for the objective function coefficient of product 1 is from to 22.2. Since 22 is within the range, the change would not affect the value of decision variables. Since x1 is not a basic variable, the objective function value will not be affected (we are not producing any units of product 1). d. We have a slack of 56 hours (S2 = 56), and the range of feasibility lower limit for the second constraint is 232. Therefore, reducing the available labor hours by 10 (288 10 = 278) will not affect the value of the decision variables. The objective function value will not change either. However, there will be 10 hours less slack. Thus, the new value of S2 = 56 10 = 46.

6S-13

Supplement to Chapter 06 - Linear Programming

Solutions (continued) e. If no additional machine hours and materials are obtained, there would not be any change in the profit (z). No change is allowed in the objective function value because all machine hours and all materials are used (constraint 1 and constraint 3 are binding). f. To determine if the changes are within the range for multiple changes, we first compute the ratio of the amount of each change to the end of the range in the same direction. 1 1 For product 1, it is = = 9.8% 22.2 12 10.2 1 1 For product 2, it is = = 50% 20 18 2 1 1 For product 3, it is = = 4.76% 36 15 21 The sum of the ratios = .098 + .50 + .0476 = .646 Since .646 < 1.0, we conclude that these values are within the range. Therefore, the optimal values of the decision variables will not change (x1 = 0, x2 = 4, x3 = 48). However, the objective function value will change. The new objective function value = z = (19 x 4) + (16 x 48) = 844 or 792 + 4 + 48 = 844. Instructor Note: The RHS of the machine constraint should be 660 minutes. 16. a. The marginal value (shadow price) of a pound of bark is $1.50. This marginal value is in effect from 510 lbs. to 750 lbs. of bark (range of feasibility for the first constraint right hand side). b. 1.50 per pound. c. The marginal value (shadow price) of 1 labor hour is zero because we currently have 105 excess labor hours remaining. This marginal value is in effect from 375 hours to infinity. d. We can not use any additional machine hours because we currently have 135 minutes of excess machine time. e. Maximum possible increase for pine bark constraint is 150 lbs. (750 600). Maximum possible increase for storage constraint is 14.21 bags. (1.50) (150) = $225 (expected increase in profit for pine bark) (1.50) (14.21) = $21.32 (expected increase in profit for storage) Therefore, add 150 pounds of pine bark. f. The range of optimality for the objective function coefficient of chips (x3) is from 5.4 to 9. Therefore an increase from $6 to $7 would not change the value of the decision variables. However, the optimal objective function value (z) would increase from 1125 to 1125 + 1(75 units) = $1200. g. To determine if the changes are within the range for multiple changes, we first compute the ratio of the amount of each change to the end of the range in the same direction. 1 For chips (x3), it is = .333 96

6S-14

Supplement to Chapter 06 - Linear Programming

6S-15

Supplement to Chapter 06 - Linear Programming

Solutions (continued) .6 = .600 98 The sum of the ratios = .333 + .600 = .933 For nuggets (x1), it is Since .933 < 1.0, we conclude that these values are within the range. Therefore, the optimal values of the decision variables will not change (x1 = 75, x2 = 0, x3 = 75). However, the optimal value of the objective function will change. The new z = (8.4 x 75) + (7 x 75) = $1,155. h. To determine if the changes are within the range for multiple changes, we first compute the ratio of the amount of each change to the end of the range in the same direction. 15 For pine barks (first constraint), it is = .10 750 600 27 For machine time (second constraint), it is = .36 600 525 5 For storage capacity (fourth constraint), it is = .352 164.21 150 The sum of the ratios = .10 + .36 + .352 = 1.112 Since 1.112> 1.0, we conclude that these values are not within the range. Therefore, the optimal values of the decision variables will not change (x1 = 75, x2 = 0, x3 = 75). The optimal value of the objective function (z) will change.

Solution to Son, Ltd. Case


Q = quantity of Product Q R = quantity of Product R W = quantity of Product W 1. subject to Labor L = quantity of labor A = quantity of Material A B = quantity of Material B

Maximize 122Q + 115R + 76W 8L 4A 4B 5Q + 4R + 2W L


1

0 hr.

Material A 2Q Material B 1Q Product R Budget 8L

+ 2R + /2W A 0 lb. + 2W B 0 lb. R + 4A + 4B All variables 85 units $11,980 0 Contribution = $22,875

Optimal:

R = 85

Labor = Mat B =

1,000 hr. 335 lb. 660 lb.

W = 330 Mat A =

6S-16

Supplement to Chapter 06 - Linear Programming

2. E = equal quantities of Q, R, and W [E contribution is 122 + 115 + 76 = 313] [An alternate approach would be T = total amount, with an average contribution of 313/3 = 104.333] Maximize 313E 8L 4A 4B subject to Labor Matl A Matl B Product R Budget 11E 4.5E 3E E 8L + 4A + 4B All variables L A B 0 0 0 85 $11,980 0

Optimal: E = 101.53 [i.e., Q = 101.53, R = 101.53, and W = 101.53.] Labor = 1,116.78 hr. Material A = 456.86 lb. Material B = 304.58 lb. Contribution = $19,798.89 The contribution is less by: $22,875 $19,798.89 = $3,076.11 3. 5% waste on A:

4.5E .95A 0

6S-17

Supplement to Chapter 06 - Linear Programming

Case: Custom Cabinets, Inc.


Problem Formulation: Semi-custom Cabinets A = quantity of Type A B = quantity of Type B C = quantity of Type C D = quantity of Type D Standard Cabinets S10 = quantity of Type S10 S20 = quantity of Type S20 S30 = quantity of Type S30 S40 = quantity of Type S40

Max Z = 325A + 575B + 257C + 275D +175S10 + 210S20 + 260S30 + 230S40


s.t.

Wood: 125A + 160B + 140C + 200D + 60S10 + 110S20 + 200S30 + 180S40 < 400,000 Trim: 27A + 42B + 35C + 52D + 21S10 + 28S20 + 50S30 + 43S40 < 140,000 Granite: 175A + 243B < 45,000 Solid Surface: 160C + 140D + 112S10 < 150,000 Laminate: + 135S20 + 254S30 + 176S40 < 400,000 Assembly: 37A + 57B + 30C + 35D + 21S10 + 25S20 + 30S30 + 27S40 < 100,000 Finish: 7A + 12B + 5C + 7D + 3S10 + 5S20 + 7S30 + 5S40 < 25,000 A > 117 B > 92 C > 130 D > 150 S10 > 475 S10 < 875 S20 > 363 S20 < 713 S30 > 510 S30 < 960 S40 > 412 S40 < 887 All variables > 0 Optimal Values A = 117 B = 101 C = 193 D = 150 S10 = 875 S20 = 713 S30 = 535 S40 = 412 Z = $723,831.60

6S-18

Supplement to Chapter 06 - Linear Programming

Sensitivity Analysis Both Assembly and Finishing have shadow prices equal to 0, so dont work overtime. Laminate also has a shadow price of 0, so dont purchase additional laminate. Wood has a shadow price of $1.30, and an allowable increase of 462,136.8 board feet. Purchase that amount (500,000 board feet is available) at a cost per board foot of $.50, for a net increase in profit of $.80 per board foot. Using the additional wood, all decision variables values remain the same except S30, which increases by 250 units to 849.6821. The revised profit increases by $260(250) = $65,000 to $776,617.36

Enrichment Module: The Simplex Method


The simplex method is a general-purpose linear-programming algorithm widely used to solve largescale problems. Although it lacks the intuitive appeal of the graphical approach, its ability to handle problems with more than two decision variables makes it extremely valuable for solving problems often encountered in operations management. When teaching the simplex method, please consider the following points: 1. A computer package for simplex is highly desirable because it permits assigning a range of problems and concentrating on interpretation of solutions rather than on technique. 2. Students should solve a few problems manually to gain some knowledge of what is actually taking place during computations, and gain some insight as to why. 3. Insight receives a boost when simplex and graphical solutions are compared for the same problem. 4. Computations are best done without calculators; students should keep numbers in fractional form. 5. Minimization, artificial variables and ranging can be skipped without seriously impairing appreciation and understanding of the simplex method. The simplex technique involves a series of iterations; successive improvements are made until an optimal solution is achieved. The technique requires simple mathematical operations (addition, subtraction, multiplication, and division), but the computations are lengthy and tedious, and the slightest error can lead to a good deal of frustration. For these reasons, most users of the technique rely on computers to handle the computations while they concentrate on the solutions. Still, some familiarity with manual computations is helpful in understanding the simplex process. You will discover that it is better not to use your calculator in working through these problems because rounding can easily distort the results. Instead, it is better to work with numbers in fractional form. Even though simplex can readily handle three or more decision variables, you will gain considerable insight on the technique if we use a two-variable problem to illustrate it because you can compare what is happening in the simplex calculations with a graphical solution to the problem. Lets consider the simplex solution to the following problem:

6S-19

Supplement to Chapter 06 - Linear Programming

Maximize Subject to

Z=

4x1 x1 4x1

+ 5x2 + 3x2 + 3x2 x1, x2 12 24 0

The solution is shown graphically in Figure 1. Now lets see how the simplex technique can be used to obtain the solution. Figure 1. Graphical Solution X2 10 8 6 4 2 4X1 + 5X2 = 20 0 2 4 6 X1 + 3X2 = 12 X1 4X1 + 3X2 = 24 Objective function Optimum

10

12

The simplex technique involves generating a series of solutions in tabular form, called tableaus. By inspecting the bottom row of each tableau, one can immediately tell if it represents the optimal solution. Each tableau corresponds to a corner point of the feasible solution space. The first tableau corresponds to the origin. Subsequent tableaus are developed by shifting to an adjacent corner point in the direction that yields the highest rate of profit. This process continues as long as a positive rate of profit exists. Thus, the process involves the following steps: 1. Set up the initial tableau. 2. Develop a revised tableau using the information contained in the first tableau. 3. Inspect to see if it is optimum. 4. Repeat steps 2 and 3 until no further improvement is possible. Setting Up the Initial Tableau Obtaining the initial tableau is a two-step process. First, we must rewrite the constraints to make them equalities and modify the objective function slightly. Then we put this information into a table and supply a few computations that are needed to complete the table. Rewriting the objective function and constraints involves the addition of slack variables, one for each constraint. Slack variables represent the amount of each resource that will not be used if the solution is

6S-20

Supplement to Chapter 06 - Linear Programming

implemented. In the initial solution, with each of the real variables equal to zero, the solution consists solely of slack. The constraints with slack added become equalities:

6S-21

Supplement to Chapter 06 - Linear Programming

1) 2)

x1 + 3x2 4x1 + 3x2

+ 1s1 + 1s2

= 12 = 24

It is useful in setting up the table to represent each slack variable in every equation. Hence, we can write these equations in an equivalent form: 1) 2) x1 + 3x2 4x1 + 3x2 + 1s1 + 0s1 + 0s2 + 1s2 = 12 = 24

The objective function can be written in similar form: Z = 4x1 + 5x2 + 0s1 + 0s2 The slack variables are given coefficients of zero in the objective function because they do not produce any contributions to profits. Thus, the information above can be summarized as: Maximize Z = 4x1 + 5x2 + 0s1 + 0s2 Subject to 1) 2) x1 + 3x2 4x1 + 3x2 + 1s1 + 0s1 + 0s2 + 1s2 = 12 = 24

This forms the basis of our initial tableau, which is shown in Table 5S1. To complete the first tableau, we will need two additional rows, a Z row and a C Z row. The Z row values indicate the reduction in profit that would occur if one unit of the variable in that column were added to the solution. The C Z row shows the potential for increasing profit if one unit of the variable in that column were added to the solution. To compute the Z values, multiply the coefficients in each column by their respective row profit per unit amounts, and sum within columns. To begin with, all values are zero: C 0 0 Z x1 (1)0 4(0) 0 x2 3(0) 3(0) 0 s1 1(0) 0(0) 0 s2 (0)0 (1)0 0 Quantity (12)0 (24)0 0

The last value in the Z row indicates the total profit associated with a given solution (tableau). Since the initial solution always consists of the slack variables, it is not surprising that profit is 0. Values in the C Z row are computed by subtracting the Z value in each column from the value of the objective row for that column. Thus, Variable row x1 x2 s1 s2 Objective row (C) 4 5 0 0 Z 0 0 0 0 CZ 4 5 0 0

6S-22

Supplement to Chapter 06 - Linear Programming

Table 1 Partial Initial Tableau Profit per unit for variables in solution C Variables in solution 0 0 s1 s2 4 x1 1 4 Decision Variables 5 x2 3 3 0 s1 1 0 0 s2 0 1 Objective row Solution quantity 12 24

The completed tableau is shown in Table 2. The Test for Optimality If all the values in the C Z row of any tableau are zero or negative, the optimal solution has been obtained. In this case, the C Z row contains two positive values, 4 and 5, indicating that improvement is possible. Developing the Second Tableau Values in the C Z row reflect the profit potential for each unit of the variable in a given column. For instance, the 4 indicates that each unit of variable x1 added to the solution will increase profits by $4. Similarly, the 5 indicates that each unit of x2 will contribute $5 to profits. Given a choice between $4 per unit and $5 per unit, we select the larger and focus on that column, which means that x2 will come into the solution. Now we must determine which variable will leave the solution. (At each tableau, one variable will come into the solution, and one will go out of solution, keeping the number of variables in the solution constant. Note that the number of variables in the solution must always equal the number of constraints. Thus, since this problem has two constraints, all solutions will have two variables.) To determine which variable will leave the solution, we use the numbers in the body of the table in the column of the entering variable (i.e., 3 and 3). These are called row pivot values. Divide each one into the corresponding solution quantity amount, as shown in Table 3. The smaller of these two ratios indicates the variable that will leave the solution. Thus, variable s1 will leave and be replaced with x2. In graphical terms, we have moved up the x2 axis to the next corner point. By determining the smallest ratio, we have found which constraint is the most limiting. In Figure 1, note that the two constraints intersect the x2 axis at 4 and 8, the two row ratios we have just computed. The second tableau will describe the corner point where x2 = 4 and x1 = 0; it will indicate the profits and quantities associated with that corner point. It will also reveal if the corner point is an optimum, or if we must develop another tableau.

6S-23

Supplement to Chapter 06 - Linear Programming

Table 2 Completed Initial Tableau. C 0 0 Variables in solution s1 s2 Z CZ C Variables in solution s1 s2 Z CZ 4 x1 1 4 0 4 4 x1 1 4 0 4 5 x2 3 3 0 5 5 x2 3 3 0 5 Largest positive 0 s1 1 0 0 0 0 s1 1 0 0 0 0 s2 0 1 0 0 0 s2 0 1 0 0 Solution quantity 12/3 = 4 24/3 = 8 0 Solution quantity 12 24 0

0 0

Smallest positive ratio

At this point we can begin to develop the second tableau. The row of the leaving variable will be transformed into the new pivot row of the second tableau. This will serve as a foundation on which to develop the other rows. To obtain this new pivot row, we simply divide each element in the s1 row by the row pivot value (intersection of the entering column and leaving row), which is 3. The resulting numbers are: x1 Pivot-row value 1/3 x2 1 s1 1/3 s2 0 Solution quantity 4

These numbers become the new x2 row of the second tableau. The pivot-row numbers are used to compute the values for the other constraint rows (in this instance, the only other constraint row is the s2 row). The procedure is: 1. Find the value that is at the intersection of the constraint row (i.e., the s2 row) and the entering variable column. It is 3. 2. Multiply each value in the new pivot row by this value. 3. Subtract the resulting values, column by column, from the current row values.

6S-24

Supplement to Chapter 06 - Linear Programming

Current value: 3 x (pivot row) New row value

x1 4 3(1/3) 3

x2 3 3(1) 0

s1 0 3(1/3) 1

s2 1 3(0) 1

Quantity 24 3(4) 12

The two new rows are shown in Table 4. The new Z row can now be computed. Multiply the row unit profits and the coefficients in each column for each row. Sum the results within each column. Thus, Row x2 s1 New Z row Next, we compute the C Z row: C Z CZ Table 4 partially completed second tableau C Variables in solution x2 s2 4 x1 1/3 3 5 x2 3 0 0 s1 1/3 1 0 s2 0 1 Solution quantity 4 12 x1 4 5/3 7/3 x2 5 5 0 s1 0 5/3 5/3 s2 0 0 0 Profit 5 0 x1 5(1/3) 0(3) 5/3 x2 5(1) 0(0) 5 s1 5(1/3) 0(1) 5/3 s2 5(0) 0(1) 0 Quantity 5(4) 0(12) 20

5 0

Table 5 completed second tableau C Variables in solution x2 s2 Z CZ 4 x1 1/3 3 5/3 7/3 5 x2 1 0 5 0 0 s1 1/3 1 5/3 5/3 0 s2 0 1 0 0 Solution quantity 4 12 20

5 0

6S-25

Supplement to Chapter 06 - Linear Programming

The completed second tableau is shown in Table 5. It tells us that at this point 4 units of variable x2 are the most we can make (see column Solution quantity, row x2) and that the profit associated with x2 = 4, x1= 0 is $20 (see row Z, column Solution quantity). The fact that there is a positive value in the C Z row tells us that this is not the optimal solution. Consequently, we must develop another tableau. Developing the Third Tableau The third tableau will be developed in the same manner as the previous one. 1. Determine the entering variable: Find the column with the largest positive value in the C Z row (7/3, in the x1 column). 2. Determine the leaving variable: Divide the solution quantity in each row by the row pivot. Hence, 4 = 12 12/3 = 4 1/3 The smaller ratio indicates the leaving variable, s2. See Table 5S6. 3. Divide each value in the row of the leaving variable by the row pivot value (3) to obtain the new pivot-row values: x1 3 1 x2 0 0/3 s1 1 1/3 s2 1 1/3 Quantity 12 12/3 = 4

Current value New pivot-row value Table 6 Leaving/Entering Variables C Variables in solution 5 0 x2 s2 Z CZ

4 x1 1/3 3 5/3 7/3 Entering variable is x1

5 x2 1 0 5 0

0 s1 1/3 1 5/3 5/3

0 s2 0 1 0 0 Solution quantity 4 1/3 = 12 Leaving variable is s2

12/3 = 4 20

6S-26

Supplement to Chapter 06 - Linear Programming

4. Compute values for the x2 row: Multiply each new pivot-row value by the x2 row pivot value (i.e., 1/3) and subtract the product from corresponding current values. Thus, x1 1/3 1/3(1) 0 x2 1 1/3(0) 1 s1 1/3 1/3(1/3) 4/9 0 1/3(1/3) 1/9 s2 Quantity 4 1/3(4) 8/3

Current value: 1/3 x (pivot row) New row value

At this point, it will be useful to consider the tableaus in relation to a graph of the feasible solution space. This is shown in Figure 2. 5. Compute new Z row values. Note that now variable x1 has been added to the solution mix; that rows unit profit is $4. Row x2 x1 New Z row Profit $5 $4 x1 5(0) 4(1) 4 x2 5(1) 4(0) 5 s1 5(4/9) 4(1/3) 8/9 s2 5(1/9) 4(1/3) 7/9 Quantity 5(8/3) 4(4) 88/3

6. Compute the C Z row values: x1 4 4 0 x2 5 5 0 s1 0 8/9 8/9 s2 0 7/9 7/9

C Z CZ

Figure 2 Graphical Solution and Simplex Tableaus X 102 8 6 4 2nd tableau 2 0 1st tableau 2 4 6 8 10 12 X1 3rd tableau

6S-27

Supplement to Chapter 06 - Linear Programming

Table 7. Optimal Solution C Variables in solution x2 x1 Z CZ 4 x1 0 1 4 0 5 x2 1 0 5 0 0 0 Solution quantity 8/3 4 88/3

5 4

s1 s2 4/9 1/9 1/3 1/3 8/9 7/9 8/9 7/9

The resulting values of the third tableau are shown in Table 7. Note that each of the C Z values is either 0 or negative, indicating that this is the final solution. The optimal values of x1 and x2 are indicated in the quantity column: x2 = 8/3, or 2 2/3, and x1 = 4. (The x2 quantity is in the x2 row and the x1 quantity in the x1 row.) Total profit is 88/3, or 29.33 (quantity column, Z row).
Handling and = Constraints Up to this point, we have worked with constraints. Constraints that involve equalities and constraints are handled in a slightly different way. When an equality constraint is present, use of the simplex method requires addition of an artificial variable. The purpose of such variables is merely to permit development of an initial solution. For example, the equalities (1) 7x1 + 4x2 = 65 (2) 5x1 + 3x2 = 40 would be rewritten in the following manner using artificial variables a1 and a2: (1) 7x1 + 4x2 + 1a1 + 0a2 = 65 (2) 5x1 + 3x2 + 0a1 + 1a2 = 40 Slack variables would not be added. The objective function, say Z = 2x1 + 3x2, would be rewritten as: Z = 2x1 + 3x2 + Ma1 + Ma2 where M = A large number (e.g., 999) Since the artificial variables are not desired in the final solution, selecting a large value of M (much larger than the other objective coefficients) will insure their deletion during the solution process. For constraints, surplus variables must be subtracted instead of added to each constraint. For example, the constraints (1) 3x1 + 2x2 + 4x3 80 (2) 5x1 + 4x2 + x3 70 (3) 2x1 + 8x2 + 2x3 68

6S-28

Supplement to Chapter 06 - Linear Programming

would be rewritten as equalities: (1) 3x1 + 2x2 + 4x3 1s1 0s2 0s3 = 80 (2) 5x1 + 4x2 + x3 0s1 1s2 0s3 = 70 (3) 2x1 + 8x2 + 2x3 0s1 0s2 1s3 = 68 As equalities, each constraint must then be adjusted by inclusion of an artificial variable. The final result looks like this: (1) 3x1 + 2x2 + 4x3 1s1 0s2 0s3 + 1a1 + 0a2 + 0a3 = 80 (2) 5x1 + 4x2 + x3 0s1 1s2 0s3 + 0a1 + 1a2 + 0a3 = 70 (3) 2x1 + 8x2 + 2x3 0s1 0s2 1s3 + 0a1 + 0a2 + 1a3 = 68 If the objective function happened to be 5x1 + 2x2 + 7x3 it would become 5x1 + 2x2 + 7x3 + 0s1 + 0s2 + 0s3 + Ma1 + Ma2 + Ma3 Summary of Maximization Procedure The main steps in solving a maximization problem with only constraints using the simplex algorithm are these: 1. Set up the initial tableau. a. Rewrite the constraints so that they become equalities; add a slack variable to each constraint. b. Rewrite the objective function to include the slack variables. Give slack variables coefficients of 0. c. Put the objective coefficients and constraint coefficients into tableau form. d. Compute values for the Z row; multiply the values in each constraint row by the rows C value. Add the results within each column. e. Compute values for the C Z row. 2. Set up subsequent tableaus. a. Determine the entering variable (the largest positive value in the C Z row). If a tie exists, choose one column arbitrarily. b. Determine the leaving variable: Divide each constraint rows solution quantity by the rows pivot value; the smallest positive ratio indicates the leaving variable. If a tie occurs, divide the values in each row by the row pivot value, beginning with slack columns and then other columns, moving from left to right. The leaving variable is indicated by the lowest ratio in the first column with unequal ratios. c. Form the new pivot row of the next tableau: Divide each number in the leaving row by the rows pivot value. Enter these values in the next tableau in the same row positions. d. Compute new values for remaining constraint rows: For each row, multiply the values in the new pivot row by the constraint rows pivot value, and subtract the resulting values, column by column, from the original row values. Enter these in the new tableau in the same positions as the original row. e. Compute values for Z and C Z rows. f. Check to see if any values in the C Z row are positive; if they are, repeat 2a2f. Otherwise, the optimal solution has been obtained.

6S-29

Supplement to Chapter 06 - Linear Programming

Minimization Problems The simplex method handles minimization problems in essentially the same way it handles maximization problems. However, there are a few differences. One is the need to adjust for constraints, which requires both artificial variables and surplus variables. This tends to make manual solution more involved. A second major difference is the test for the optimum: A solution is optimal if there are no negative values in the C Z row. Example Solve the following problem for the quantities of x1 and x2 that will minimize cost.

Minimize Subject to

= 12x1 + 10x2 x1 + 4x2 3x1 + 2x2 x1, x2 8 6 0

Solution to example 1. Rewrite the constraints so that they are in the proper form: x1 + 4x2 8 becomes x1 + 4x2 1s1 0s2 + 1a1 + 0a2 = 8 3x1 + 2x2 6 becomes 3x1 + 2x2 0s1 1s2 + 0a1 + 1a2 = 6 2. Rewrite the objective function (coefficients of C row): 12x1 + 10x2 + 0s1 + 0s2 + 999a1 + 999a2 3. Compute values for rows Z and C Z: C 999 999 Z CZ x1 1(999) 3(999) 3,996 3,984 x2 4(999) 2(999) 5,994 5,984 s1 1(999) 0(999) 999 999 s2 0(999) 1(999) 999 999 a1 1(999) 0(999) 999 0 a2 0(999) 1(999) 999 0 Quantity 8(999) 6(999) 13,986

4. Set up the initial tableau. (Note that the initial solution has all artificial variables.) C Variables in solution a1 a2 Z CZ 12 x1 1 3 3,996 10 x2 4 2 5,994 0 s1 1 0 999 0 s2 0 1 999 999 a1 1 0 999 0 999 a2 0 1 999 0 Solution Quantity 8 6 13,986

999 999

999 999

3,984 5,984

5. Find the entering variable (largest negative C Z value: x2 column) and leaving variable (smaller of 8/4 = 2 and 6/2 =3; hence, row a1).

6S-30

Supplement to Chapter 06 - Linear Programming

6. Divide each number in the leaving row by the pivot value (4, in this case) to obtain values for the new pivot row of the second tableau: 1/4 4/4 = 1 1/4 0/4 1/4 0/4 8/4 = 2 7. Compute values for other rows; a2 is:
Current value 2 x (new pivot row) New row x1 3 2/4 10/4 x2 2 2 0 s1 0 2/4 +2/4 s2 1 0/4 1 a1 0 2/4 2/4 a2 1 0/4 1 Quantity 6 4 2

8. Compute a new Z row:


Row x2 a2 Z Cost 10 999 x1 10(1/4) 999(10/4) 2,500 x2 10(1) 999(0) 10 s1 10(1/4) 999(2/4) 497 s2 10(0) 999(1) 999 a1 10(1/4) 999(2/4) 497 a2 10(0) 999(1) 999 Quantity 10(2) 999(2) 2,018

9. Compute the C Z row:


x1 12 2,500 2,488 x2 10 10 0 s1 0 497 497 s2 0 999 999 a1 999 497 1,496 a2 999 999 0

C Z CZ

10. C

Set up the second tableau: 12 Variables in solution a1 a2 Z CZ x1 1/4 10/4 2,500 2,488 10 x2 1 0 10 0 0 s1 1/4 2/4 497 497 0 s2 0 1 999 999 a1 1/4 2/4 1,496 999 a2 0 1 999 0 Solution Quantity 2 2 2,018

10 999

999 497

a. b. c. d.

11. Repeat the process. Check for optimality: It is not optimum because of negatives in C Z row. Determine the entering variable: The largest negative is in column x1. Determine the leaving variable: 2/(1/4) = 8, 2/(10/4) = 0.8. Therefore, it is row a2. Find new pivot-row value using the pivot value of 10/4: 1 0 0.2 0.4 0.2 0.4 0.8

6S-31

Supplement to Chapter 06 - Linear Programming

e. Determine values for new x2 row: 0 f. Row x2 x1 Z 1 0.3 0.1 0.3 0.1 1.8 Determine new values for row Z: Cost 10 12 x1 10(0) 12(1) 12 x1 12 12 0 x2 10(1) 12(0) 10 x2 10 10 0 s1 10(0.3) 12(0.2) 0.6 s1 0 0.6 0.6 s2 10(0.1) 12(0.4) 3.8 s2 0 3.8 3.8 a1 999 0.6 998.4 a1 10(0.3) 12(0.2) 0.6 a2 999 3.8 995.2 a2 10(0.1) 12(0.4) 3.8 Quantity 10(1.8) 12(0.8) 27.6

g. Determine values for the C Z row: C Z CZ

h. Set up the next tableau. Since no C Z values are negative, the solution is optimal. Hence, x1 = 0.8, x2 = 1.8, and minimum cost is 27.60. C Variables in solution a1 a2 Z CZ 12 x1 0 1 12 0 10 x2 1 0 10 0 0 s1 0.3 0.2 0.6 0.6 0 s2 0.1 0.4 3.8 3.8 999 a1 0.3 0.2 0.6 999 a2 0.1 0.4 3.8 Quantity 1.8 0.8 27.6

10 12

998.4 995.2

6S-32

Supplement to Chapter 06 - Linear Programming

Problems for the enrichment module (simplex) 1. Given this information: Maximize Subject to Cutting Stapling Wrapping 5x + 12y + 8z 1,400 minutes 7x + 9y + 9z 1,250 minutes 4x + 3y + 6z 720 minutes x, y, z 0 Solve for the quantities of products x, y, and z that will maximize revenue. 2. a. Minimize Subject to Use the simplex method to solve these problems: Z = 21x1 + 18x2 (1) 5x1 + 10x2 100 (2) 2x1 + 1x2 10 x1, x2 0 b. Minimize Subject to Z = 2x + 5y + 3z (1) 16x + 10y + 18z 340 (2) 11x + 12y + 13z 300 (3) 2x + 6y + 5z 120 x, y, z 0 3. Use the simplex method to solve the following problem. Minimize Z = 3x1 + 4x2 + 8x3 Subject to 2x1 + x2 6 x2 + 2x3 4 x1, x2, x3 0 Use the simplex method to solve the following problem. Maximize Z = 8x1 + 2x2 Subject to 4x1 + 5x2 20 2x1 + 6x2 18 x1, x2 0 Note: Row operations in problems 3 and 4 are computationally easy. Z = 10.50x + 11.75y + 10.80z

4.

6S-33

Supplement to Chapter 06 - Linear Programming

Solutions-Enrichment Module (SIMPLEX)


1. C Var 0 0 4 S1 S2 S3 Z CZ 10.5 x 5 7 4 0 10.5 11.75 y 12 9 3 0 11.75 10.80 z 8 9 6 0 10.80 0 S1 1 0 0 0 0 0 S2 0 1 0 0 0 0 S3 0 0 1 0 0 bi 1,400 1,250 720 0 ratio 116.67 138.89 240

Var

x 5/12 13/4 11/4

y 1 0 0

z 2/3 3 4

S1 1/12 3/4 1/4

S2 0 1 0 0 0

S3 0 0 1 0 0

bi

ratio

11.45 y 0 S2 0 S3 Z CZ

1,400/12 280 200 61.54 370 134.54 1,370.83

4.896 11.75 5.604 0

7.833 0.979 2.967 0.979

Var

x 0 1 0 10.5 0 x 0 1 0 10.5 0

y 1 0 0 11.75 0 y 39/7 9/7 15/7 13.5 1.75

z 11/39 12/13 19/13

S1 7/39 3/13 5/13

S2 5/39 4/13 11/13

S3 0 0 1 0 0 S3 0 0 1 0 0

bi 91.026

ratio 507.1

11.75 y 10.5 0 x S3 Z CZ C 0 10.5 0 Var S1 x S3 Z CZ

61.54 2610/13 522 1,715.73

13.01 0.314 1.724 2.206 0.314 1.724 z 11/7 117/91 78/91 13.5 2.7 S1 1 0 0 0 0 S2 5/7 1/7 4/7 1.5 1.5

bi 507.14 178.57 5.72 1,874.99

Optimal solution is x = 178.57, y = 0, z = 0, and optimal solution = 1874.9

6S-34

Supplement to Chapter 06 - Linear Programming

Solutions (continued)
2. a. Minimize Z = s.t. 21x1 + 18x2 5x1 + 10x2 + A1 S1 = 100 2x1 + 1x2 + A2 S2 = 10 21 x1 5 2 18 x2 10 1 M A1 1 0 M 0 0 S1 1 0 M M M A2 0 1 M 0 0 S2 0 1 M M

I.

C C Var M A1 M A2 Z CZ

bi 100 10 110M

ratio 10 10

7M 11M [217M] [1811M]

C II. C Var 18 x2 M A2 Z CZ

21 x1 0.5 1.5 [1.5M+9] [121.5M]

18 x2 1 0 18 0

M A1 0.1 0.1

0 S1 0.1 0.1

M A2 0

0 S2 0 bi 10 0 180 ratio 20 0

1 1 M M 0 M

[1.80.1M] [0.1M1.8] [1.1M1.8] [1.8.1M]

C III. C Var 18 x2 21 x1 Z CZ

21 x1 0 1 21 0

18 x2 1 0 18 0

0 S1 0.1333 +0.0667 0.99999 0.99999

0 S2 0.333 0.667 8.000 8.000 bi 10 0 180

The optimal solution: x1 = 0; x2 = 10; Z = 180

6S-35

Supplement to Chapter 06 - Linear Programming

Solutions (continued) 2. b. I. C 2 Var x M M M A1 A2 A3 16 11 2

5 y 10 12 6

3 z 18 13 5

M A1 1 0 0 M 0

0 S1 1 0 0 M M S1 .0556 .722 .2778

M A2 0 1 0 M 0 A2 0 1 0 M 0 S3

0 S2 0 1 0 M M S2 0 1 0 M M

M A3 0 0 +1 M 0 A3 0 0 1 M 0 bi

0 S3 0 0 1 M M S3 0 0 1 M M bi

bi 340 300 120 760M

Z 29M 28M 36M CZ [29M+2] [28M+5] [36M+3] II. C 3 M M Var Z A2 A3 x .8889 .5556 2.444 y .5556 4.778 3.222* [8M+1.7] [8M+3.3] y 0 0 1 5 0 z 1 0 0 3 0 y 0 0 1 5 0 z 1 0 0 3 0 z 1 0 0 3 0 S1 .1034 .3103 0.08621 A1

.0556 .722 .2778

18.89 54.44 25.56 80M+56.7

Z [3M+2.7] CZ [+3M+.7] III. C 3 M 5 Var z A2 Y x 1.31 3.069* 0.7586

[M+.17] [M.17] [2M47] [M+.17] A2 0 1 0 0 S2 .427 .3258 .2472 0.6067 0.6067 S2 0.3333 3.222 .2778* +0.3889 0.3889 S2 0 1 0 M M

.1724 1.483 0.3103 [1.5M1.03] [1.5M+1.03] S3 0.4607 .4831 .05618 0.1348 0.1348 S3 .6667 4.778 0.7222 1.6111 1.6111

14.48 16.55 7.931 [16.55M+83.1]

Z [3M+.138] CZ [3.1M+1.86] IV. C 3 2 5 Var z x y Z CZ V. C 3 0 5 Var z S1 y Z CZ x 0 1 0 2 0 x 2.333 9.889 1.611 1.06 3.056 y 0 0 1 5 0

[.3M+.121] [.3M.121] S1 0.236 .1011 .1629 0.309 0.309 z 1 0 0 3 0 S1 0 1 0 0 0

bi 7.416 5.393 12.02 93.15

bi 20 53.33 3.333 76.67

6S-36

Supplement to Chapter 06 - Linear Programming

Solutions (continued) VI. C 3 0 0 Var z S1 S2 Z CZ x .4 8.8 5.8 1.2 .8 y 1.2 11.6 3.6 3.6 1.4 z 1 0 0 3 0 S1 0 1 0 0 0 S2 0 0 1 0 0 S3 0.200 3.6 2.6 0.6 .6 bi 24 92 23 72

Optimal solution is: x = 0; y = 0; z = 24 and Z = 72.0

3.
C Var M M A1 A2 Zj CjZj C Var 3 M x1 A2 Zj CjZj C Var 3 8 x1 x3 Zj CjZj C Var 3 4 x1 x2 3 x1 2 0 2M 32M 3 x1 1 0 3 0 3 x1 1 0 3 0 3 x1 1 0 4 x2 1 1 2M 42M 4 x2 1 M3/2 5/2 M 4 x2 11/2 3/2 4 x2 0 1 8 x3 0 2 2M 82M 8 x3 0 2 2M 82M 8 x3 0 1 8 0 8 x3 1 2 0 S1 1 0 M M 0 S1 0 3/2 3/2 0 S1 0 3/2 3/2 0 S1 0 0 S2 0 1 M M 0 S2 0 1 M M 0 S2 0 4 4 0 S2 1 M A1 1 0 M 0 M A2 0 1 M 0 bi 6 4 10M bi/aij 6/2 = 3

bi 3 4 4M+9

bi/aij 3 =6 4 1=4

bi 3 2 25

bi/aij 3 =6 2 =4

bi 1 4 19

Zj 3 4 5 3/2 5/2 CjZj 0 0 3 3/2 5/2 The optimal solution is: x1 = 1; x2 = 4; x3 = 0 and Z = 19.

6S-37

Supplement to Chapter 06 - Linear Programming

Solutions (continued)
4. Cj Var 0 0 S1 S2 Zj CjZj Cj Var 8 0 x1 S2 Zj CjZj x1 1 0 8 0 x2 5/4 7/2 10 8 S1 1/2 2 2 S2 0 1 0 0 bi 5 8 40 8 x1 4 2 0 8 2 x2 5 6 0 2 0 S1 1 0 0 0 0 S2 0 1 0 0 bi 20 18 0

Optimal solution is x1 = 5, x2 = 0, S1 = 0, S2 = 8 and Z = 40.

6S-38

You might also like