Logistique Et Distribution: The Facility Location Problem
Logistique Et Distribution: The Facility Location Problem
Facility Location
1
Customer
DC
Customer
DC
2
Customer
DC
Customer
DC
3
Customer
DC
Customer
DC
4
The Facility Location Problem
Various Applications
Location of an airport, a school, a plant, a
Minimax
5
Known Facility Location
EX1
Transportation Cost (Facilities known)
-- Transportation Problem
6
Mathematic Model
Indices and Sets
i, index for warehouses. i I = {Tulsa, Okla, Denver, St. Louis,
Lawrence, Omaha}
j, index for customers. j J = {Minneapolis, Salina, Kansas,
Lincoln, Wichita }
Parameters
cij: cost of transporting one unit from warehouse i to customer j
ai: supply capacity at warehouse i
bi: demand at customer j
Decision Variables
xij: number of units transported from warehouse i to customer j
Mathematic Model
Objective: Minimize Total Transportation Cost
m n
Z cij xij
i 1 j 1
Subject to
n
x
j 1
ij ai , i 1,2,..., m (supplyrestriction at warehouse i)
m
x
i 1
ij b j , j 1,2,..., n (demand requiremen t at market j)
7
Transportation Problem with Lost Sales
8
Transshippement problem
9
Problem description
X Y Demand
A 2,5 4,5 2 000
B 2,5 2,5 5 000
C 5,5 4,5 10 000
D 5 2 7 000
E 8 5 10 000
F 7 2 20 000
G 9 2,5 14 000
10
Facility Location Problem (Continuous )
Euclidean Distance
Objective: Minimize f (x) = sum (1m) wi d(X, Pi)
Where d (x, Pi) = sqrt( (x-xi)^2 + (y-yi)^2 )
F6=SQRT( (B6-$C$2)^2+(C6-$C$3)^2); copy an paste onto F7:F12
G6=D6*F6; copy an paste onto G7:G12
G13=SUM(G6:G12)
11
Euclidean Distances
12
Here is the Solution !
Rectilinear Distance
Parallel to the x- and y- axes (east-west, north-south, and making 90 turns only.
F6=ABS(B6-$C$2)+ABS(C6-$C$3); copy an paste onto F7:F12
G6=D6*F6; copy an paste onto G7:G12
G13=SUM(G6:G12)
13
Use Solver to Optimize the Location
Solver was able to reduce the total weighted sum of the distances based
on rectilinear distance from 180,147 to 161,000 or by about 10.6%!
14
100
80
60
40
20
0
0 20 40 60 80 100 120 140 160
15
100
80
60
40
20
0
0 20 40 60 80 100 120 140 160
100
80
60
40
20
0
0 20 40 60 80 100 120 140 160
16
Minimax Location Problem
The objective is to minimize the maximum
distance
Why will you use a minimax locaiton model ??
If Rectilinear distance is used, this reduces to
min f ( x, y) max x ai y bi
1i m
min f ( x, y ) max x ai y bi
2 2
1i m
17
MiniMax Rectilinear Problem
Target Cell:
G13=MAX(G6-G12)
18
Simple Multi-Facility Location Problem
P2 (25, 15)
P3 (10, 0)
P4 ( 0, 10)
Objective:
f (X1, X2) = v12d(X1,X2)
+ w11d(X1,P1) + w13d(X1,P3) +
w12d(X1,P4)
+ w22d(X2,P2) + w22d(X2,P3)
Let us assign v12 = w11 = w13 = w14 = w22 = w243)
Solve the problem using Euclidean and Rectilinear
distance
19
Multi-Facility Euclidean Distance
20
Multi-Facility
Location and Allocation Model
decision variables.
Continuous Case, see paper
M.D. Devine and W.G. Lesso, Models for the Minimum
21
Customer
DC
Customer
DC
22
Where inventory needs to be for a 5 day order
response time - typical results --> 2 DCs
Customer
DC
Customer
DC
23
Where inventory needs to be for a next day order
response time - typical results --> 13 DCs
Customer
DC
Customer
DC
24
Location of a Citys Fire Stations
25
Excel Implementation
Mathematic Models
Indices and Sets
i,j neighborhood indices, i = 111 Integer Program
Parameters
aij 1 neighboorhood I can be covered Min xi
by a fire station located at j i
0, otherwise s.t.
Decision Variables
xi = 1 if facility i is opened,
a x
j
ij j 1 for all i
0 otherwise
xi {0,1} for all i
The above problem can be formulated as
26
Maximal Covering Problem
Now, suppose we can only set up p=2
fire stations, what is the maximal number Integer Program
of neighborhoods that can be covered
using p facilities. Max di yi
This is a p-covering problem. i
Model s.t.
xi = 1 if facility i is opened, 0 otherwise
yj = 1 if neighborhood j is covered, a x ij j yi for all i (*)
0 otherwise j
aij = 1 if neighborhood i can be covered
by a firestation at j. 0 otherwise
x
j
j p
p-Median/Center Problems
P-Center Problems
To locate n new facilities, called centers, on a network with
closest mailbox.
27
p-Center Model
In p-center problem, we are minimizing maximum distance
between a market and a plant, or between fire stations and all
the houses served by the fire stations.
P-center Model
Min w Minimize the Maximum Distance w
s.t.
y
jJ
j p There are a total of p centers
xj
ij 1 i I Every one has to be served
28
p-Median Model
Indices and Sets:
J: set of feasible plant locations, indexed by j
I: set of markets, indexed by i Min dij xij
Data i j
Di demand of market I
s.t.
No capacity limitations for plants
At most p plants are to be opened y
jG
j p
dij distance between market i and plant j
xij y j i I , j J
yj = 1 if plant is located at site j,
0 otherwise
xj
ij 1 i I
xij , y j {0,1} i I , j J
xij = 1 if market i is supplied from plant site j,
0 otherwise
Model Explanation
Min d ij xij Minimize the total weighted Distance w
i j
s.t. Constraints
y
jG
j p There are a total of p centers
xj
ij 1 i I Every one has to be served
Question:
How does the model guarantee a customer be served by a nearest center?
29
Example Problem
Find the 2-median and 2-center solutions to the following 6 city problem
a) Write the mathematical model
b) Implement using excel solver
4
2 3
3 6 6
1 5 3
4
2 7
7
6 4
30
2 Center Problem
Optimal Solutions
Total Distance: 13
Maximal distance is 4
31
The p-median & p-Center Problem
Assumptions
The number of warehouses to locate is fixed beforehand.
5 3
1
4
2 6
7
6 4
32
Uncapacited Facility Location Model
minimize f
jJ
j y j cij dij xij
iI jJ
Fixed cost +
Transportation Cost
subject to x
jJ
ij 1 i I Served at least once
y j 0,1 j J
Yes/no decision
xij 0,1 i I , j J
33
A Facility Location Problem with Response Time
The table gives the average response time (in minutes) to a fire in each
tract (columns) if their tract is served by a station in a given tract (rows).
The bottom row gives the forecasted average number of fires that
will occur in each of tracts each day.
34
Mathematic Models
Indices
s, t: indices for tract T = {1,2,5}
Inputs
d(s,t): response time/ distance between s Min x( s, t ) d ( s, t ) f (t )
and t sT tT
Model Explanation
The objective is to minimize the overall average
response time to fires and can be written as
s T, t T x (s, t) * d (s, t) * f (t)
The constraints are
There are a total of tow fire stations
Each tract has to be covered by a fire station so that
some one will respond to the fire.
If a tract doesnt allocate fire station then that tract
can not respond to the fire in any of the tracts
Binary: No more than one station can be allocated in
each tract,
35
Computational Results
Stations Tracts
In track 1 2 3 4 5
1 (Yes) 1 1 0 0 0
2 (No ) 0 0 0 0 0
3 (yes) 0 0 1 1 1
4 (No ) 0 0 0 0 0
5 (No ) 0 0 0 0 0
Excel Implementation
with a different optimal solution
36
Problem
Now suppose that the following costs
(18,25,20,25,25) are incurred for building tracks
from 1 to 5.
Suppose that for each minutes is $ 1 dollar.
Relax the requirment that only 2 firestations are
built
Now, Solve the problem to find the minimum cost
to build the firestations and which track should
they serve.
We now have capacity constraints on the facility and therefore a retailer will
not always be assigned to its nearest warehouse.
37
Capacitated Facility Location
i {customer}, j {facility}
min d e X f Y
i j
i ij ij
j
j j
subject to X 1
j
ij for all i
d X q Y i ij j j for all j
X ij 0,1
i
for all i, j
Y j 0,1 for all j
UFL
15 10 12 18
15 22 18 Numbers
A B C D
in red are
24 16 demands
12
20
18 E 5
25 24 F 24
12 12
G 15 H 30 I
11 16 13 22
19
22 25 19
J K L
19 21
22 19 20
38
Multi-Source Capacitated Facility Locaiton
In the single-source CFLP, it is required that each retailer have only one
warehouse supplying it.
In the multiple-source CFLP, a retailers demand can be split between
any number of warehouses.
That is, a retailer may receive many deliveries of the same product from
different warehouses.
Other Problems
i {retailers}, j {warehouses}
min d e X f Y
i j
i ij ij
j
j j
subject to X 1
j
ij for all i
d X q Y
i
i ij j j for all j
X ij 0 for all i, j
Y j 0,1 for all j
39
Multi-Level Location Allocation
Inputs:
di = demand at retailer i
e1kj = cost of shipping one unit from plant k to
warehouse j
e2ji = cost of shipping one unit from warehouse j to
retailer i
fj = fixed cost of opening a warehouse at site j
sk = supply at plant k
qj = capacity of warehouse j
40
Multi-Level Location & Allocaiton
Decision variables:
d X q Y
i
i ji j j for all j
U d X
k
kj
i
i ji for all j
U s
j
kj k for all k
41
Multi-Level Location & Allocaiton
min e1
k j l
kjl U kjl d il e2 jil X jil f jY j g k Pk
j i l j k
subject to X 1
j
jil for all i and l
v d X q Y
i l
l il jil j j for all j
U d X
k
kjl
i
il jil for all j and l
vU s P
j
l kjl k k for all k
X jil 0,1 for all j , i and l
Y j 0,1 for all j
Pk 0,1 for all k
U kjl 0 for all k , j and l
42
Discrete Multi-Facility Location Problems
Thanks
43