PDF Week 4
PDF Week 4
Making
Week 4 – Linear Programming Applications
and Extensions
Dr. William Ho
1(b) solutions:
x1 = 2
x2 = 4
Audience = 36,800
Integer Programming – 1(c)
Subject to
“GIN” defines
decision variables
as general integer.
Integer Programming – 1(c)
=SUMPRODUCT(B4:C4,B12:C12)
=SUMPRODUCT(B5:C5,B12:C12)
=B12
=C12
Integer Programming – 1(c)
Maximize the
number of audience
Integer constraints
Min ads constraint
Budget constraint
Max ads constraints
Integer Programming – 1(c)
Integer Programming – 1
“Software” refers to the intangible effects that can be beneficial to the university,
its members, and its students. It consists of
5. establishing E-learning systems
6. establishing library information systems
7. establishing an Intranet portal
8. establishing incentive scheme
Integer Programming – 2
University requirements:
• At least 4 projects must be established;
• At least 1 “hardware” project must be established;
• At least 1 “software” project must be established.
Remark:
• “Hardware” projects must be carried out sequentially. Similarly, “software”
projects cannot be carried out simultaneously.
Project
x1 x2 x3 x4 x5 x6 x7 x8 Limitation
Importance 0.191 0.107 0.091 0.094 0.126 0.132 0.116 0.144
Cost 71,400 57,000 50,000 35,700 4,300 2,100 6,400 28,600 150,000
Space 12,500 2,500 10,800 625 - - - - 25,000
Time – H 24 6 15 12 - - - - 36
Time – S - - - - 6 12 9 - 24
Integer Programming – 2
1 if project i is selected,
xi =
0 otherwise.
Integer Programming – 2
“INT” defines
decision variables
as binary integer.
Integer Programming – 2
=SUMPRODUCT(B4:I4,B13:I13)
B19 =SUMPRODUCT(B5:I5,B13:I13)
B20 =SUMPRODUCT(B6:E6,B13:E13)
B21 =SUMPRODUCT(B7:E7,B13:E13)
B22 =SUMPRODUCT(F8:H8,F13:H13)
B23 =SUM(B13:I13)
B24 =SUM(B13:E13)
B25 =SUM(F13:I13)
Integer Programming – 2
Maximize the
importance ratings
Define the decision variables, formulate the integer programming model, and
apply Excel Solver to solve the problem faced by the Company.
Workshop 1
1 if project i is funded,
xi =
0 otherwise.
Subject to
=SUMPRODUCT(B4:B6,B12:B14)
B20 =SUMPRODUCT(C4:C6,B12:B14)
B21 =SUMPRODUCT(D4:D6,B12:B14)
B22 =SUM(B12:B14)
B23 =B13-B12
Workshop 1
Workshop 1
Integer Programming – 3
The Martin-Beck company operates a plant in St. Louis with an annual capacity
of 30,000 units. Product is shipped to regional distribution centers located in
Boston, Atlanta, and Houston. Because of an anticipated increase in demand,
Martin-Beck plans to increase capacity by constructing a new plant in one or
more of the following cities: Detroit, Toledo, Denver, or Kansas City. The
estimated annual fixed cost and the annual capacity for the 4 proposed plants
are as follows:
The shipping cost per unit from each plant to each distribution center:
Distribution Center
Plant Site Boston Atlanta Houston
Detroit 5 2 3
Toledo 4 3 4
Denver 9 7 5
Kansas City 10 4 2
St. Louis 8 4 3
Integer Programming – 3
1 5 2 3
x11 x12 x13 10000 175000
2 4 3 4
x21 x22 x23 20000 300000
3 9 7 5
x31 x32 x33 30000 375000
4 10 4 2
x41 x42 x43 40000 500000
5 8 4 3
x51 x52 x53 30000
dj 30000 20000 20000
Integer Programming – 3
= annual transportation costs + annual fixed cost of operating the new plant(s)
= (5x11 + 2x12 + 3x13 + 4x21 + 3x22 + 4x23 + 9x31 + 7x32 + 5x33 + 10x41 + 4x42 +
2x43 + 8x51 + 4x52 + 3x53) + (175000y1 + 300000y2 + 375000y3 + 500000y4)
Integer Programming – 3
=SUMPRODUCT(B4:D8,B18:D22)+SUMPRODUCT(F4:F7,F18:F21)
=SUM(B18:D18)
=E18-E4*F18
=SUM(D18:D22)
Integer Programming – 3
Integer constraints
Demand constraints
Capacity constraint
of St. Louis
The Company wishes to determine which warehouse to operate and how many
products should be shipped from warehouse i to customer j to reach the
minimum total costs (including transportation costs cij, and fixed costs fci), while
not exceeding the warehouse capacity si and meeting the customer demand dj.
cij
Customer, j
Warehouse, i 1 2 3 4 5 6 7 si fci
1 1 1 2 4 4 3 6 30000 30000
2 2 6 9 3 7 8 4 26000 25000
3 8 4 3 6 3 2 4 22000 20000
4 8 8 9 3 5 7 2 18000 15000
dj 12000 9000 10000 8000 6000 11000 7000
Define the decision variables, formulate the integer programming model, and
apply Excel Solver to solve the problem faced by the Company.
Workshop 2
1 if warehouse i is selected,
yi =
0 otherwise.
Subject to
x11 + x12 + x13 + x14 + x15 + x16 + x17 - 30000y1 ≤ 0 (Warehouse 1 capacity)
x21 + x22 + x23 + x24 + x25 + x26 + x27 - 26000y2 ≤ 0 (Warehouse 2 capacity)
x31 + x32 + x33 + x34 + x35 + x36 + x37 - 22000y3 ≤ 0 (Warehouse 3 capacity)
x41 + x42 + x43 + x44 + x45 + x46 + x47 - 18000y4 ≤ 0 (Warehouse 4 capacity)
x11 + x21 + x31 + x41 = 12000 (Customer 1 demand)
x12 + x22 + x32 + x42 = 9000 (Customer 2 demand)
x13 + x23 + x33 + x43 = 10000 (Customer 3 demand)
x14 + x24 + x34 + x44 = 8000 (Customer 4 demand)
x15 + x25 + x35 + x45 = 6000 (Customer 5 demand)
x16 + x26 + x36 + x46 = 11000 (Customer 6 demand)
x17 + x27 + x37 + x47 = 7000 (Customer 7 demand)
xij ≥ 0 and integer; yi = 0 or 1 for all i and j (Integral)
Workshop 2
C12 =SUMPRODUCT(B4:H7,B17:H20)+SUMPRODUCT(J4:J7,J17:J20)
L17 =I17-I4*J17
L18 =I18-I5*J18
L19 =I19-I6*J19
L20 =I20-I7*J20
Workshop 2
Integer constraints
Binary integer
constraints
Demand constraints
Capacity constraints
Workshop 2
Workshop 2
1) Readings
– Chapter 7 (An Introduction to Management Science:
Quantitative Approaches to Decision Making)
2) Useful websites
– http://www.lindo.com/
– http://office.microsoft.com/en-au/excel-help/load-the-
solver-add-in-HP010342660.aspx (Office 2010)
© Copyright The University of Melbourne 2013