Bu 275
Bu 275
Integer Programming
Peruvemba S. Ravi
Agenda
• Integer Programming (IP) Models
Types of Models
Required Floor
Machine Space ( ft.2 ) Purchase Price
left parenthesis feet squared right
parenthesis
Press 15 $8,000
Lathe 30 4,000
5
subject to:
$8,000 x1 4,000 x2 $40,000
15 x1 30 x2 200 ft 2
Expected Land
Recreation
Usage Cost ($) Requirements
Facility
(people/day) (acres)
Swimming pool 300 35,000 4
Tennis center 90 10,000 2
Athletic field 400 25,000 7
Gymnasium 150 90,000 3
7
Project
Project Year Project Year
NPV Return Year 3
Project 1 Cost 2 Cost
($1,000s) Cost
($1,000s) ($1,000s)
($1,000s)
1. Web site $120 $55 $40 $25
2. Warehouse 85 45 35 20
3. Clothing 105 60 25 —
department
4. Computer 140 50 35 30
department
5. ATMs 70 30 30 —
Available funds per Blank
year $150 $110 $60
14
55 x1 45 x2 60 x3 50 x4 30 x5 150
40 x1 35 x2 25 x3 35 x4 30 x5 110
25 x1 20 x2 30 x4 60
x3 x4 1
xi 0 or 1
Example 5: A Fixed Cost/Fixed Charge Problem
The Terraco Motor company produces a lightweight vehicle. It has three
plants that make the vehicle and two retailers. The company is unsure of
public demand, and is considering reducing its fixed cost by closing one
or more plants, even if this increases transportation costs. Relevant data
are shown below, with transportation costs per thousand vehicles
shipped. Formulate a mixed integer programming model to help with
production and shipping decisions.
Retailer
Plant (Transportation cost in $1000) Capacity Fixed Cost
A B
1 56 21 12,000 2,100,000
2 18 46 18,000 850,000
3 12 71 14,000 1,800,000
Demand:
x1,A + x2,A + x3,A = 6
x1,B + x2,B + x3,B = 14
Objective Function:
Maximize z =12[s1 + s2 + s3 + s4] - 200 [y1 + y2 + y3 + y4] - 4[x1 + x2 + x3 + x4] - 15[I1 + I2 + I3 +
I4]
Constraints:
Production and amount sold: Week 4
x1 + 5 = s1 + I1 x4 > 20 y4
x2 + I1 = s2 + I2 x4 < 30 y4
x3 + I2 = s3 + I3
x4 + I3 = s4 + I4 Max items sold
s1 < 20
Production capacity s2 < 30
xi 34 yi i=1,2,3,4 s3 < 40
s4 < 10
All decision variables are non-nega
21
There are 6 cities in Kilroy County. The county must determine where
to build central fire stations. The county wants to build the minimum
number of central fire stations needed to ensure that at least one fire
station is within 15 minutes (driving time) of each city. The times (in
minutes) required to drive between the cities in Kilroy county are
given in the table. Formulate an IP that will tell Kilroy how many fire
stations should be built and where they should be located.
22
To
From City 1 City 2 City 3 City 4 City 5 City 6
City 1 0 10 20 30 30 20
City 2 10 0 25 35 20 10
City 3 20 25 0 15 30 20
City 4 30 35 15 0 15 25
City 5 30 20 30 15 0 14
City 6 20 10 20 25 14 0
23
City 1: 1,2
City 2: 1,2,6
City 3: 3,4
City 4: 3,4,5
City 5: 4,5,6
City 6: 2,5,6
24
Objective Function
Minimize z = x(1) + x(2) + x(3) + x(4) + x(5) + x(6)
Constraints
City 1: x(1) + x(2) > 1
City 2: x(1) + x(2) + x(6) > 1
City 3: x(3) + x(4) > 1
City 4: x(3) + x(4) + x(5) > 1
City 5: x(4) + x(5) + x(6) > 1
City 6: x(2) + x(5) + x(6) > 1
x(i) - binary
25
Constraints