Professional Documents
Culture Documents
Modeling & Solving LP Problems in A Spreadsheet
Modeling & Solving LP Problems in A Spreadsheet
Chapter 3
Modeling & Solving LP Problems In A Spreadsheet
1.
In general, it does not matter what is placed in a variable (changing) cell. Ultimately, Solver will
determine the optimal values for these cells. If the model builder places formulas in changing cells,
Solver will replace the formulas with numeric constants representing the optimal values of the decision
variables. An exception to this general principle is found in Chapter 8 where, when solving nonlinear
programming problems, the values placed in the changing cells represent the initial starting point for the
optimizer.
2.
Communication - once the user understands the first formula in a range of copied cells, he or she should
understand all the formulas in the range.
Reliability - assuming the first formula is entered correctly, all the copied formulas should be correct also.
Auditability - once the user understands the first formula in a range of copied cells, he or she should
understand (and audit) all the formulas in the range
Maintainability - if a change needs to be made, it can be made in one formula and then copied as
necessary.
3.
4.
5.
6.
7.
8.
Acres planted in watermelons = 60, Acres planted in cantaloupes = 40, Maximum profit = $26,740
See file: Prb3_8.xls
350 X1 + 450 X2
ST
1.5 X1 + 2 X2 1,000
3 X1 + 4.5 X2 2,000
2.5 X1 + 1.5 X2 1,500
X1/ ( X1 +X2) 0.20
(implement as X1 0.2* ( X1 +X2) )
Many students attempt to implement the ratio constraints in their original form; resulting in a
division by zero error at the null solution and a message from Solver that the model is not linear. The
algebraic equivalence of the alternate form of these constraints (given parenthetically above) should
be noted.
b.
c.
13. a.
ST
Where
B1 = 0
B2 = B1 + X11 + X21 300
B3 = B2 + X12 + X22 400
b.
c.
14. a.
b.
c.
15. a.
b.
c.
d.
16. a.
b.
c.
d.
17. a.
b.
c.
18. a.
53 X1 + 48 X2 + 33 X3 + 32 X4 + 38 X5
20 X1 + 15 X2 + 10 X3 + 8 X4 + 5 X5 80,000
28 X1 + 24 X2 + 18 X3 + 12 X4 + 16 X5 100,000
8 X1 + 8 X2 + 4 X3 + 4 X4 + 6 X5 30,000
0.75 X1 + 0.6 X2 + 0.5 X3 + 0.65 X4 + 1 X5 5,000
2 X1 - 1 X2 0
Xi 500
b.
c.
d.
19. a.
b.
c.
20. a.
b.
c.
21. a.
ST
b.
c.
23. a.
b.
c.
24. a.
Xij 0
b.
c.
25. a.
b.
c.
Teaching Note: As an interesting extension to this problem, ask students to consider how to minimize
the maximum number of excess employees on any shift while holding the total number of employees used
at its optimal value of 640.
26. a.
ST
b.
c.
d.
e.
27. a.
A solution exists where all machine are used for an equal amount of time (425.5 minutes each). This
increases the total time used to 1276.5 minutes.
Pi = proportion of coal i to include in the mix
MAX
ST
b.
c.
d.
28. a.
b.
c.
29. a.
75 X1 + 50 X2 + 40 X3
3 X1 + 2 X2 + 1 X3 400,000
50,000 X1 150,000
50,000 X2 100,000
50,000 X3 90,000
b.
c.
Tacoma
0
San Diego
0
Dallas
0
Denver
0
St. Louis
0
Tampa
12000
Baltimore
6000
Louisville
Detroit
Phoenix
600
400
5800
0
0
14200
0
10800
0
0
12600
0
14400
0
0
0
0
0
0
1200
0
Newspaper
Mixed Paper
White Office Paper
Cardboard
32. a.
Newsprint
588.24
0.00
0.00
0.00
Packaging
11.76
71.43
300.00
397.78
Print Stock
0.00
428.57
0.00
0.00
b.
c.
33. a.
4 X1 + 4.5 X2 + 4.75 X3 - A1 - A2 - A3
X1 = 8,000 + 10 A1
X2 = 10,000 + 8 A2
X3 = 12,000 + 5 A3
A1 + A2 + A3 25,000
Ai 5,000
Note that the Xi can be computed directly from the Ai. Therefore, the Ai are the only decision
variables (changing cells) in the model. The Xi can be computed in the spreadsheet using the
conditions imposed by the first three constraints. Therefore, it is not necessary to indicate these as
constraints cells for Solver.
b.
c.
34. a.
b.
c.
35. a.
ST
I1 =120 + P1 - 420
I2 = I1+ P2 - 580
I3 = I2+ P3 - 310
I4 = I3+ P4 - 540
400 P1 500
400 P2 520
400 P3 450
400 P4 550
Ii 50
Note that the Ii can be computed directly from the Pi. Therefore, the Pi are the only decision variables
(changing cells) in the model. The I i can be computed in the spreadsheet using the conditions
imposed by the first four constraints. Therefore, it is not necessary to indicate these as constraints
cells for Solver. However, note that lower bounds of 50 must be indicated for these cells.
See file: Prb3_34.xls
X1 = 410, X2 = 520, X3 = 400, X4 = 450, I1 = 110, I2 = 50, I3 = 140, I4 = 50
Minimum cost = $83,617
Xij = tons of commodity i stored in hold j
MAX
ST
b.
c.
36. a.
1
2
3
X11=1287.5 X21=0
X31=0
X12=1580 X22=2500
X32=0
X13=1932.5 X23=0
X33=1200
4
X41=1700
X42=0
X43=0
Xij = Square feet (in 1000s) leased at beginning of month i for j months
MIN
300 (X11 + X21 + X31 + X41 + X51) + 525 (X12 + X22 + X32 + X42 ) + 775 (X13 + X23 + X33 )
+ 850 (X14 + X24) + 975 X15
ST
b.
c.
37. a.
ST
Note that the Ij can be computed directly from the Pj and Sj . Therefore, the Pj and Sj are the only
decision variables (changing cells) in the model. The I j can be computed in the spreadsheet using the
conditions imposed by the first six constraints. Therefore, it is not necessary to indicate these as
constraints cells for Solver. However, note that lower bounds of 0 and upper bounds of 400 apply to
these cells. Some students will want to know how much Earl paid for the 70 tons of soybeans in the
beginning inventory. This represents a sunk cost that is irrelevant for the problem at hand.
b.
c.
38. a.
b.
c.
39. a.
b.
c.
40. a.
b.
c.
41. a.
b.
c.
42. a.
There is no feasible solution if the company is restricted to borrowing no more than $100,000 at each
level in the term / rate structure. Ask students to determine what the borrowing limit would need to
be increase to in order to obtain a feasible solution. The answer (of $101,257) can be obtained by: 1)
making the borrowing limit a changing cell, and 2) also making it the set cell and minimizing its
value.
Ti = Number of people in group i surveyed by telephone
Wi = Number of people in group i surveyed in person vai web-cam
MIN:
ST
b.
c.
45. a.
b.
c.
Teaching note: Some students may want to know how much money the company paid for the
150,000 cf of gas in storage. Because this represents a sunk cost, it is irrelevant for decision making
purposes.
46. a.
b.
c.
Satisfact.
88
47. a.
b.
c.
Value
86.1474
Price
64.8421
Conv.
1.38947
Comfort
1.01895
Climate
0.18526
Labor Hrs
5.5692
Service
0.46316
Food
0.46316
Op. Costs
6.8260
a.
b.
c.
d.
e.