5 OD Transport Assignment-2008-2
5 OD Transport Assignment-2008-2
Example
P&T Company produces canned peas.
Peas are prepared at three canneries (Bellingham,
Eugene and Albert Lea).
Shipped by truck to four distributing warehouses
(Sacramento, Salt Lake City, Rapid City and
Albuquerque). 300 truckloads to be shipped.
Problem: minimize the total shipping cost.
TRANSPORTATION AND
ASSIGNMENT PROBLEMS
127
Cannery
464
513
654
867
75
352
416
690
791
125
995
682
388
685
100
80
65
70
85
300
Allocation
128
Network representation
Output
129
12
13
14
21
subject to
24
31
32
33
22
34
x11 + x 12 + x 13 + x 14 = 75
x21 + x 22 + x23 + x24 = 125
x 31 + x 32 + x 33 + x 34 = 100
x11 + x21 + x 31 = 80
x 12 + x22 + x 32 = 65
x 13 + x23 + x 33 = 70
x14 + x24 + x 34 = 85
and x ij 0
Joo Miguel da Costa Sousa / Alexandra Moutinho
130
(i = 1,2,3,4; j = 1,2,3,4)
131
Coefficient of:
x 11
x12
x 13
x 14
A = 1
x21
x22
x23
x24
x 31
1
1
1
x 33
1
1
x32
1
1
1
1
x 34
Cannery
constraints
Warehouse
constraints
132
134
General problem
Units of a commodity
Three canneries
m sources
Four warehouses
n destinations
Allocation to warehouse j
Demand dj at destination j
133
i =1
j =1
si = d j
If the supplies represent maximum amounts to be
distributed, a dummy destination can be added.
Similarly, if the demands represent maximum
amounts to be received, a dummy source can be
added.
Joo Miguel da Costa Sousa / Alexandra Moutinho
135
Prototype example
136
Source
Demand
1
2
1
c11
c21
cm1
d1
Destination
2
c12
c22
cm2
d2
n
c1n
c2n
cmn
dn
Supply
s1
s2
sm
137
Network representation
138
Coefficient constraints
i =1 j =1
subject to
n
ij
= si , for i = 1,2, , m,
j =1
m
ij
Coefficient of:
x 11
1
A =
1
Minimize Z = c ij x ij ,
= d j , for j = 1,2, , n,
j =1
139
x 12 ... x 1 n
1
x 21
x 22 ... x2n
... x m1
x m2 ... x mn
1
1
1
1
1
1
Supply
constraints
Demand
constraints
140
141
142
143
Source
144
c21
c12
c22
cm1
Demand
c1n
c2n
cm2
d1
S2
cmn
ui
s1
d2
Supply
sn
dn
Z=
vj
If xij is a nonbasic
variable:
If xij is a basic
variable:
Additional
information to be
added to each cell:
cij
cij
cij-ui-vj
xij
145
c11
146
147
Source
16
20
13
14
14
13
19
19
20
16
2
3
4(D)
Demand
2
30
30
20
22
60
19
10
23
30
ui
50
15
30
70
Supply
17
60
10
50
60
50
50
Z=2,470+10M
vj
148
149
Iteration:
1. Determine the entering basic variable: select the
nonbasic variable xij having the largest (in absolute
terms) negative value of cij ui vj.
150
Assignment problem
Iteration:
3. Determine the new BF solution: add the value of the
leaving basic variable to the allocation for each
recipient cell. Subtract this value from the allocation
for each donor cell.
4. Apply the optimality test.
152
154
153
Prototype example
Job Shop Company has purchased three new machines of
different types, and there are four different locations in the
shop where a machine can be installed.
Objective: assign machines to locations.
Cost per hour of material handling (in )
Location
1
2
3
1
13
16
12
Machine
2
15
13
3
5
7
10
Joo Miguel da Costa Sousa / Alexandra Moutinho
4
11
20
6
155
Minimize Z = c ij x ij ,
subject to
13
16
12
11
15
13
20
10
4(D)
Assignee
(Machine)
1
Decision variables x ij =
0
ij
= 1, for i = 1,2, , n,
ij
= 1, for j = 1,2, , n,
j =1
n
x
j =1
i =1 j =1
n
Still a linear
programming
problem?
157
Network representation
158
1
2
Source
m=n
Demand
Destination
2
c12
c22
cn2
n
c1n
c2n
cnn
1
159
Concluding remarks
1
c11
c21
cn1
1
Supply
1
1
160
161