Ch 1_Integer Programming_15 01 24
Ch 1_Integer Programming_15 01 24
IE 322
Integer Programming
Problem (1)
1 2 3
Street A Street B
Street K
Street I
Street G
4 Street C 5
F
eet
Street H
Street J
Str
Street E Street D
6 8
7
Problem Set 9.1B
Problem 1
ABC is an ILT trucking company that delivers loads to five customers . The following
list provides the customers associated with each route :
Route Customers served on the route
1 1,2,3,4
2 4,3,5
3 1,2,5
4 2,3,5
5 1,4,2
6 1,3,5
The following matrix lists distances among the truck terminal and the
customers
ABC 1 2 3 4 5
ABC 0 10 12 16 9 8
1 10 0 32 8 17 10
2 12 32 0 14 21 20
3 16 8 14 0 15 18
4 9 17 21 15 0 11
5 8 10 20 18 11 0
The objective is to determine the least distance needed to make the daily deliveries to
all five customers
Network Design Problems
Shortest path Problem
Consider the graph G (V, E) where V is the set of nodes and E is the set of arcs.
Each arc e E has a distance ce . Formulate the shortest path problem from
node s to node t as a linear program.
(2,6)
2 (3,
1 7)
(1,5) (7,
3)
s (9,3)
t
3
(4, (10
2) ,6) )
,5)
4
(6,
(8
5
4
(5,9)
Min ce x e
eE
Constraints
x1 x4 1
x1 x2 x7 0
x2 x3 0
x7 x8 x9 x10 0
x4 x5 x8 0
x5 x10 x6 0
x3 x6 x9 1
xe 0,1 e E
let (i ) set of arcs leaving node i
let (i ) set of arcs insident t o node i
the formulatio n is
Min ce xe
eE
S .T
x e
1
e ( s )
x x e e
0 i V /s, t
e ( i ) e ( i )
x e
1
e ( t )
xe 0,1 e E
Min cost flow
Consider the graph G (V, E) where V is the set of nodes and E is the set of arcs.
Each arc e E has a capacity ce and a unit cost of flow αe . We need to send a
quantity of flow d=6 from node s to t with minimum total cost. Formulate the
problem as a linear program
(2,6,1)
2 (3,
1 7,2
2) )
(1,5, (7,
3,4
)
s (9,3,4)
t
3
(4, (10
,6,1
)
)
3
2,2 ) 4,2
,5,
) (6 ,
(8
5
4
(5,9,2)
(e, ce, αe ) = ( number of the arc, capacity of the arc, unit cost of flow on
the arc )
x e
the total amount of flow that passes on arc e
Objective function
Min
eE
x e e
Constraints
x1 x4 6
x1 x2 x7 0
x2 x3 0
x7 x8 x9 x10 0
x4 x5 x8 0
x5 x10 x6 0
x3 x6 x9 6
xe ce e E
xe 0 e E
let (i ) set of arcs leaving node i
let (i ) set of arcs going to node i
the formulatio n is
Min x
eE
e e
S .T
x e
d
e ( s )
x e
x e
0 i V /s, t
e ( i ) e ( i )
x e
d
e ( t )
xe ce e E
xe 0 e E
Min cost flow with fixed charge
Consider the graph G (V, E) where V is the set of nodes and E is the set of arcs.
Each arc e E has a capacity ce ,a unit cost of flow αe and a fixed cost fe of
installing the arc e. We need to send a quantity of flow d=6 from node s to t
with minimum total cost. Formulate the problem as a linear program
(2,6,1,15)
2 (3,
0) 1 7,2
,2 ,1 (7, ,20
(1,5 3,4 )
,15
s ) (9,3,4,10)
t
3 (10
,6,1 0)
)
(4, 2
,25
2,2 ,25 2 ,
) ,4,
3
,10 (6
,5,
) 5
(8
4 0)
(5,9,2,1
(e, ce, αe , fe ) = ( number of the arc, capacity of the arc, unit cost of flow on the arc,
fixed cost of installing the arc )
x e
the total amount of flow that passes on arc e
1 if arc e is used
ye 0 otherwise
Objective function
Min
eE
x
e e
eE
f y
e e
Constraints
x1 x4 6
x1 x2 x7 0
x2 x3 0
x7 x8 x9 x10 0
x4 x5 x8 0
x5 x10 x6 0
x3 x6 x9 6
xe ce ye e E
xe 0 e E
ye 0,1e E
let (i ) set of arcs leaving node i
let (i ) set of arcs going to node i
the formulatio n is
Min
eE
x f y
e e
eE
e e
S .T
x e
d
e ( s )
x e
x e
0 i V /s, t
e ( i ) e ( i )
x e
d
e ( t )
xe ce ye e E
xe 0 e E
ye 0,1e E
B&B and Cutting Plane Methods
The two commonly used methods are:
LP3 LP2