




















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















































Fall 1994 Dennis Bricker Dept. of Industrial Engineering University of Iowa mmmmmmmmmmmmmmmmmmmm
Matrix Algebra Review: The following problems are to be found in Chapter 2 of the text, Operations Research (3rd edition) by W. Winston:
(1.) Exercise # 7&8, p. 31 Use the Gauss-Jordan method to determine whether each of the following linear systems has no solution, a unique solution, or an infinite number of solutions. Indicate the solutions (if any exist). a.) x 1 + x 2 = 2 -x 2 + 2x 3 = 3 x 2 + x 3 = 3
b.) x 1 + x 2 + x 3 = 1 x 2 + 2x 3 + x 4 = 2 x 4 = 3
(2.) Exercise #5, p. 35 Determine if the following set of vectors is independent or linearly dependent:
(3.) Exercise # 4, p. 40: Find A-1^ (if it exists) for the following matrix: 1 2 1 1 2 0 2 4 1
Linear Programming Model Formulation: Formulate a Linear Programming model for each problem below, and solve it using LINDO (available both on the Apollo workstations and Macintoshes of ICAEN.) Be sure to state precisely the definitions of your decision variables, and briefly explain the purpose of each type of constraint. State verbally the optimal solution. (All exercises are from Chapter 3 of the text. For instructions on LINDO, see §4.7 and the appendix of chapter 4 of the text.)
(4.) Exercise #2, page 73 (Manufacturing of Heart Valves) "U.S. Labs manufactures mechanical heart valves from the heart valves of pigs. Different heart operations require valves of different sizes. U.S. Labs purchases pig valves from three different suppliers. The cost and size mix of the valves purchased from each supplier are given in the table below. Each month, U.S. Labs places one order with each supplier. At least 400 * large, 300 medium, and 300 small valves must be purchased each month. Because of limited availability of pig valves, at most 500 valves per month can be purchased from each supplier. Formulate an LP that can be used to minimize the cost of acquiring the needed valves."
Cost Percent Percent Percent per valve Large Medium Small
Supplier 1 $5 40 40 20 Supplier 2 $4 30 35 35 Supplier 3 $3 20 20 60
*The original problem statement specifies a requirement of 500 large valves per month, which is infeasible given the specified availability from each supplier. I have modified the requirement so as to make the problem feasible.
(5.) (Exercise 3, page 112) " I now have $100. The following investments are available during the next three years:
Investment A : Every dollar invested now yields $.10 a year from now and $1.30 three years from now. Investment B : Every dollar invested now yields $0.20 a year from now and $1.10 two years from now. Investment C : Every dollar invested a year from now yields $1.50 three years from now.
During each year, uninvested cash can be placed in money market funds, which yield 6% interest per year. At most $50 may be placed in each of investments A, B, and C. Formulate an LP to maximize my cash on hand three years from now." mmmmmmmmmmmmmmmmmmmm Solutions:
1a.)
1 1 0 0 − 1 2 0 1 1
That is (x 1 ,x 2 ,x 3 )=(1,1,2).
1b.)
1 1 1 0 0 1 2 1 0 0 0 1
There are infinite solutions, since (x 1 ,x 2 ,x3,x 4 )=(a+2,-1-2a,a,3) for all a∈ R.
(2.) These three vectors are dependent, since
1 2 3
(3.) The inverse does not exists, since the three row vectors are dependent. Note: (1,2,1)+(1,2,0)=(2,4,0) implies they are dependent.
(4.) The original problem statement specifies a requirement of 500 large valves per month, which is infeasible given the specified availability from each supplier. I have modified the requirement so as to make the problem feasible.
Define: X1=# of valves produced by Supplier 1, Define: X2=# of valves produced by Supplier 2, Define: X3=# of valves produced by Supplier 3, respectively.
: go LP OPTIMUM FOUND AT STEP 6
OBJECTIVE FUNCTION VALUE
VARIABLE VALUE REDUCED COST A1 13.541664 0. C2 50.000000 0. F3 55.000000 0. B1 50.000000 0. F1 36.458336 0. F2 0.000000 0.
ROW SLACK OR SURPLUS DUAL PRICES
mmmmmmmmmmmmmmmmmmmm
(1.) Find A-1^ for the following matrix:
and use this result to solve the equations:
7x 1 +3x 2 + 2x 3 = 2 7x 1 -2x 2 + 5x 3 = 0 5x 1 +6x 2 - x 3 = 4
(2.) The following problem (Exercise 3, §3.5, page 76 of Winston, 3rd edition) refers to Example 7 of that same section:
"Suppose that the post office can force employees to work one day of overtime each week. For example, an employee whose regular shift is Monday to Friday can also be required to work on Saturday. Each employee is paid $50 a day for each of the first five days worked during a week and $62 for the overtime day (if any). Formulate an LP whose solution will enable the post office to minimize the cost of meeting its weekly work requirements." Also, use LINDO (or other LP software) to find the optimal solution of the LP. (Is it integer-valued?)
(3.) Exercise 11, §3.8, page 92 of Winston, 3rd edition:
Eli Daisy produces the drug Rozac from four chemicals. Today they must produce 1000 lb. of the drug. The three active ingredients in Rozac are A, B, and C. By weight, at least 8% of Rozac must
consist of A, at least 4% of B, and at least 2% of C. The cost per pound of each chemical and the amount of each active ingredient in one pound of each chemical are given in the table below:
Chemical Cost per lb. A B C 1 $8 0.03 0.02 0. 2 $10 0.06 0.04 0. 3 $11 0.10 0.03 0. 4 $14 0.12 0.09 0.
It is necessary that at least 100 pounds of chemical 2 be used. Formulate an LP whose solution would determine the cheapest way of producing today's batch of Rozac. Also, use LINDO (or other LP software) to find the optimal solution of the LP.
(4.) Use the Simplex Method to solve the following two LPs: a. Maximize x 1 + x 2 b. Minimize x 1 + 2x 2 subject to x 1 + 5x 2 ≤ 5 subject to x 1 + 3x 2 ≥ 11 2x 1 + x 2 ≤ 4 2x 1 + x 2 ≥ 9 x 1 ≥0, x 2 ≥ 0 x 1 ≥0, x 2 ≥ 0 In (b), use a "Phase-One" procedure to get a starting basic feasible solution.
mmmmmmmmmmmmmmmmmmmm Solutions: (1.)
[^ A I ] =
Therefore,
The solution for the equations is given by
− 1 b =
(2.) Define: xi=the # of employees who start to work on ith day for 5 days. (i=1,2,...,7)
(3.) Define: Xi=the # of lb from Chemical i, i=1,2, 3, and 4. The formulation and outputs of LINDO are shown below. The optimal solution is: 285 lb of Chemical 1, 100 lb of Chemical 2, 417.5 lb of Chemical, and 197.5 lb of Chemical 4.
- LP OPTIMUM FOUND AT STEPMIN 8 X1 + 10 X2 + 11 X3 + 14 X SUBJECT TO
: go LP OPTIMUM FOUND AT STEP 8
OBJECTIVE FUNCTION VALUE
VARIABLE VALUE REDUCED COST X1 285.000000 0. X2 100.000000 0. X3 417.500000 0. X4 197.500000 0.
ROW SLACK OR SURPLUS DUAL PRICES
NO. ITERATIONS= 8
(4a.) -z x1 x2 s1 s2 RHS
ratio
-z x1 x2 s1 s2 RHS
ratio
-z x1 x2 s1 s2 RHS
-z x1 x2 s1 s2 RHS
-z x1 x2 s1 s2 RHS
which is optimal. Optimal solution is (x1,x2)=(16/5,13/5), Z*=42/5.
mmmmmmmmmmmmmmmmmmmm
1.) Exercise 50, Review Problems, page 120 of Winston, 3rd edition (#36, p. 120 of 2nd edition):
"To process income tax forms, the IRS first sends each form through the data preparation (DP) department, where information is coded for computer entry. Then the form is sent to data entry (DE), where it is entered into the computer. During the next three weeks, the following number of forms will arrive: Week 1: 40,000; week 2: 30,000; week 3: 60,000. The IRS meets the crunch by hiring employees who work 40 hours per week and are paid $200 per week. Data preparation of a form requires 15 minutes, and data entry of a form requires 10 minutes. Each week, an employee is assigned to either data entry or data preparation. The IRS must complete processing of all forms by the end of week 5 and wants to minimize the cost of accomplishing this goal. Formulate an LP that will determine how many workers should be working each week and how the workers should be assigned over the next five weeks." Find the optimal solution by LINDO (or other LP software). Is the LP solution integer?
2.) Revised Simplex Method : Complete the computations below for the problem: Maximize 12X 1 + 8X 2 + 0X 3 + 0X 4 + 0X 5 subject to 5X 1 + 2X 2 + 1X 3 + 0X 4 + 0X 5 = 150 2X 1 + 3X 2 + 0X 3 + 1X 4 + 0X 5 = 100 4X 1 + 2X 2 + 0X 3 + 0X 4 + 1X 5 = 80 Xj≥0, j=1,2,3,4, Use the slack variables X 3 , X 4 , and X 5 to form the initial basis, i.e., B={3,4,5}. Then
AB^ =
Iteration 1: The basic solution is XB = (AB)-1b = [150, 100, 80]t. CB = [0, 0, 0] and so the simplex
multiplier vector is πB = CB(AB)-1^ = [0, 0, 0]. The relative profits of the nonbasic variables X 1 and X 2 are: C 1 = C 1 - πA^1 = a C 2 = C 2 - πA^2 = b Let's select X 1 to enter the basis. The substitution rates of X 1 for the basic variables are
α = AB - A^1 =
c i.e., one unit increase of X 1 will replace c units of the third basic variable, X 5. To determine the first basic variable to reach its lower bound as X 1 increases, we perform the minimum ratio test: Min 150 5
c = d Therefore, the basic variable which reaches zero first (and leaves the basis) is X 5 , and the new basis will be B= {3, 4, e }, with the basis matrix
1 0 f
0 1 g
0 0 h To update the basis inverse, we write the pivot column A1 alongside the old basis inverse, and perform the pivot in row 3:
1 0 0 5 0 1 0 2 0 0 1 4
1 0 i 0
0 1 j 0
0 0 k 1 so that, for B= {3, 4, e },
1 0 i
0 1 j
0 0 k Iteration 2: The new basic solution is
XB = AB -1b =
l
60
20 The new simplex multiplier vector is πB =CB AB - = m , 0, n AB - = o , 0, p We next "price" the nonbasic variables, X 2 and X 5 :
C 2 = C 2 - πBA^2 = C 2 - πB
q
= p
C 5 = C 5 - πBA^5 = r Since p > 0 (and we are maximizing), we select X 2 to enter the basis. The substitution rates of X 2 for the basic variables are
α = AB - A^2 =
s
2
t
which means that, if X 2 increases by one unit,
Yi=the # of workers for entering the data in week i, i=1,2,3,4,5.
The optimal solution is: (Note : not unique solution) Week 1: hire 250 workers for preparing data and 167 workers for entering data, Week 2: hire 188 workers for preparing data and 0 workers for entering data, Week 3: hire 375 workers for preparing data and 0 workers for entering data, Week 4: hire 0 workers for preparing data and 375 workers for entering data, Week 5: hire 0 workers for preparing data and 0 workers for entering data,
The LINDO formulation and outputs are as follows.
MIN 200 X1 + 200 Y1 + 200 X2 + 200 Y2 + 200 X3 + 200 Y
: go LP OPTIMUM FOUND AT STEP 6
OBJECTIVE FUNCTION VALUE
VARIABLE VALUE REDUCED COST X1 250.000000 0. Y1 166.666672 0. X2 187.500000 0. Y2 0.000000 0. X3 375.000000 0. Y3 0.000000 0. X4 0.000000 0. Y4 375.000000 0. X5 0.000000 0. Y5 0.000000 0.
ROW SLACK OR SURPLUS DUAL PRICES
NO. ITERATIONS= 6
2.) Revised Simplex Method : Complete the computations below for the problem: Maximize 12X 1 + 8X 2 + 0X 3 + 0X 4 + 0X 5 subject to 5X 1 + 2X 2 + 1X 3 + 0X 4 + 0X 5 = 150 2X 1 + 3X 2 + 0X 3 + 1X 4 + 0X 5 = 100 4X 1 + 2X 2 + 0X 3 + 0X 4 + 1X 5 = 80 Xj≥0, j=1,2,3,4, Use the slack variables X 3 , X 4 , and X 5 to form the initial basis, i.e., B={3,4,5}. Then
AB^ =
Iteration 1: The basic solution is XB = (AB)-1b = [150, 100, 80]t. CB = [0, 0, 0] and so the simplex
multiplier vector is πB = CB(AB)-1^ = [0, 0, 0]. The relative profits of the nonbasic variables X 1 and X 2 are: C 1 = C 1 - πA^1 = C 2 = C 2 - πA^2 =
Let's select X 1 to enter the basis. The substitution rates of X 1 for the basic variables are
α = AB - A^1 =
i.e., one unit increase of X 1 will replace 4 units of the third basic variable, X 5. To determine the first basic variable to reach its lower bound as X 1 increases, we perform the minimum ratio test: Min 150 5
Therefore, the basic variable which reaches zero first (and leaves the basis) is X 5 , and the new basis will be B= {3, 4, 1 }, with the basis matrix
To update the basis inverse, we write the pivot column A1 alongside the old basis inverse, and perform the pivot in row 3:
1 0 0 5 0 1 0 2 0 0 1 4
so that, for B= {3, 4, 1 },
Iteration 2: The new basic solution is
XB = AB -1b =
1/
i.e., X 3 = 65, X 2 = 30, and X 1 = 5. The simplex multiplier vector is now πB =CB AB - = 0 , 8 , 12 AB - = 0, 1 ,^5 2
We next price the nonbasic variables, X 4 and X 5 : C 4 = C 4 - πBA^4 = - C 5 = C 5 - πBA^5 = -^5 2 Since the relative profits are both negative, this means that the current basic solution is optimal! The optimal profit is therefore 300.
3a.) Dual problem: Min 33Y1+40Y2+70Y st. 11Y1+8Y2+7Y3≥ 2 3Y1+5Y2+10Y3≥ 1 Y1≤0,Y2≥0,Y3≥ 0
3b) Dual problem: Max 33Y1+40Y2+70Y st Y1+2Y2= -Y2+Y3≤- 3Y1+5Y3≥ 5 Y1 urs, Y2≤0, Y3≥ 0 mmmmmmmmmmmmmmmmmmmm
1.) Exercise 2, §5.2, page 211 of Winston, 3rd edition:
"Carco manufactures cars and trucks. Each car contributes $300 to profit, and each truck contributes $400. The resources required to manufacture a car and a truck are shown in the table below. Vehicle Days on Type Days on Type Tons of Type 1 Machine 2 Machine Steel Car 0.8 0.6 2 Truck 1.0 0.7 3 Each day, Carco can rent up to 98 type 1 machines at a cost of $50 per machine. At present, the company has 73 type 2 machines and 260 tons of steel available. Marketing considerations dictate that at least 88 cars and at least 26 trucks be produced. Let x 1 = number of cars produced daily; x 2 = number of trucks produced daily; and m 1 = type 1 machines rented daily. To maximize profit, Carco should solve the LP MAX 300 X1 + 400 X2 - 50 M ST 0.8 X1 + X2 - M1 <= 0 M1 <= 98 0.6 X1 + 0.7 X2 <= 73 2 X1 + 3 X2 <= 260
Use the LINDO output (given in the textbook, page 212) to answer the following questions: a. If each car contributed $310 to profit, what would be the new optimal solution to the problem?
b. If Carco were required to produce at least 86 cars, what would Carco's profit become?"
2.) Exercise 6, Review Problems, page 227 of Winston, 3rd edition:
Gepbab Production Company uses labor and raw material to produce three products. The resource requirements and sales price for the three products are as shown in the tale below: Product 1 Product 2 Product 3 Labor 3 hours 4 hours 6 hours Raw material 2 units 2 units 5 units Sales price $6 $8 $ At present, 60 units of raw material are available. Up to 90 hours of labor can be purchased at $1 per hour. To maximize Gepbab profits, solve the following LP: MAX 6 X1 + 8 X2 + 13 X3 - L ST 3 X1 + 4 X2 + 6 X3 - L <= 0 2 X1 + 2 X2 + 5 X3 <= 60 L <= 90 END Here, xi = units of product i produced, and L = number of labor hours purchased. Use the LINDO output in figure 21 (page 228 of the text) to answer the following questions:
a. What is the most the company would be willing to pay for another unit of raw material? b. What is the most the company would be willing to pay for another hour of labor? c. What would product 1 have to sell for to make it desirable for the company to produce it? d. If 100 hours of labor could be purchased, what would the company's profit be? e. Find the new optimal solution if product 3 sold for $15.
3.) Write the dual LP of the following primal LP:
Maximize 12X 1 +X 2 + 5X 3 subject to X 1 - 3X 3 = 33 2X 1 + X 2 ≤ 40 X 2 + 5X 3 ≥ 70 X 1 unrestricted in sign, X 2 ≥ 0, X 3 ≤ 0
4.) Consider the LP: Minimize 4X 1 - X 2 subject to 2X 1 +X 2 ≤ 8 X 2 ≤ 5 X 1 - X 2 ≤ 4 X 1 ≥0, X 2 ≥ 0 a. Indicate on the graph below the feasible region:
b. What is the most the company would be willing to pay for another hour of labor? Solution. $1.75. (There are two ways to obtain this value: i. The dual price for row #4 is $0.75, implying that they could afford to spend up to 75¢ per hour to expand the labor supply, which they could then purchase for $1.00. ii. The dual price for row #2 is $1.75, implying that using one more hour than is purchased would increase their profits by $1.75.)
c. What would product 1 have to sell for to make it desirable for the company to produce it? Solution. $6.25. (The reduced cost for product #1 is $0.25. Thus, in order to balance, the sell price is at least $6+$0.25=$6.25)
d. If 100 hours of labor could be purchased, what would the company's profit be? Solution. $105. (Changing the RHS of constraint #4 from 90 to 100. Since the allowable increase is 30, the profit becomes $97.5+$0.75(100-90)=$105.
e. Find the new optimal solution if product 3 sold for $15. Solution. $112.5. (Since the allowable increase for X3 is 3, the basics remain the same. The objective value becomes $97.5+($7.5)(2)=$112.5. 3.) (Dual) Min 33Y1+ 40Y2 + 70Y s.t. Y1+ 2Y2 = Y2+Y3 ≥ 1 -3Y1 +5Y3 ≤ 5 Y1 urs, Y2≥0, Y3≤0.
4.) a. Indicate on the graph below the feasible region:
b. Inserting the slack variables to primal problem, we obtain Minimize 4X 1 - X 2 subject to 2X 1 +X 2 + S1 = 8 X 2 +S2 = X 1 - X 2 +S3 = 4
point basic variable A S1, S2, S3 (since X1=X2=0 and S1>0, S2>0, S3>0) B X1, S1, S2 (since X1>0, S1>0. We arbitrarily choose the other one basic variable from X2, S2, S3) C X2, S1, S3 (since X1=S2=0, X2>0, S1>0, S3>0) D X1, X2, S3 (since S1=0, S2=0) E X2, S2, S3 (since X1=S1=0)
c. Point B is degenerate, since some element of basic variables is 0 (e.g. S2=0). Point E is infeasible, since S2=-3<0.
d. Point Objective value A 0 B 16 C - D 1 Thus, the optimal solution is point C with objective value -5.
e. Max 8Y1+5Y2+4Y s.t. 2Y1 +Y3≤ 4 Y1+ Y2 -Y3≤- Y1≤0, Y2≤0, Y3≤ 0
f. The optimal solution for primal is point C=(0, 5) in which X1=0,X2=5, S1=3, S2=0, S3=9. Hence the constraints #1 and #3 in primal are tight, which imply Y1=Y3=0.
g. As above, since X2=5>0, constraint #2 in dual problem must be tight, i.e., Y1+Y2-Y3=-1. Because Y1=Y3=0 by (f), we get Y2=-1.
h. Objective value for dual is 8(0)+5(-1)+4(0)=-5. Since primal objective value=dual objective value=-5, Y=(0,-1,0) is the optimal.
mmmmmmmmmmmmmmmmmmmm
1.) Continuation of second exercise from HW#4 (Gepbab Prod'n Co., Exercise 6, Review Problems, page 227 of Winston, 3rd edition):
Gepbab Production Company uses labor and raw material to produce three products. The resource requirements and sales price for the three products are as shown in the tale below: Product 1 Product 2 Product 3 Labor 3 hours 4 hours 6 hours Raw material 2 units 2 units 5 units Sales price $6 $8 $ At present, 60 units of raw material are available. Up to 90 hours of labor can be purchased at $1 per hour. To maximize Gepbab profits, solve the following LP: MAX 6 X1 + 8 X2 + 13 X3 - L ST 3 X1 + 4 X2 + 6 X3 - L <= 0 2 X1 + 2 X2 + 5 X3 <= 60 L <= 90 END Here, xi = units of product i produced, and L = number of labor hours purchased.