Professional Documents
Culture Documents
Pi = (ai, bi)
• Rectilinear distance (L1 norm)
– d(X, Pi) = |x - ai| + |y - bi|
X = (x, y)
X = (x, y)
• Tchebyshev distance (L∞ norm)
Pi = (ai, bi)
– d(X, Pi) = max{|x - ai|, |y - bi|}
X = (x, y)
Classification of Facility Location Problems
Rectilinear
Minisum Euclidean
Tchebyshev
Single-
Facility
Rectilinear
Minimax Euclidean
Tchebyshev
Facility
Location
Rectilinear
Minisum Euclidean
Tchebyshev
Multi-
Facility
Rectilinear
Minimax Euclidean
Tchebyshev
Single Facility Location Problems
f ( x, y ) = g ( x ) + g ( y )
1 2
n
g ( x) = ∑ w x − a
1 i i
i =1
n
g ( y) = ∑ w y − b
2 i i
i =1
Four existing locations (3, 3), (6, 9), (12, 8), and (12, 10)
and a weight of 1 applied to each location.
– The median x value (half the x values lie above it and
half the x values lie below it) – in increasing order 3,
6, 12, 12 – any value of x between 6 and 12 is a
median value and is optimal (g1(x) = 24 – 9 = 15)
– The median y value – 3, 8, 9, 10 – any value of y
between 8 and 9 is a median value and is optimal
(g2(y) = 19 – 11 = 8)
Effect of Weights
Engineering (0, 0) 19
Humanities (6, 3) 53
=Alternate Method=
Single Facility Location Problem
• Minisum Formulation :
m
(
Min f(x) = ∑ w i × d X, Pi )
i =1
where X = (x, y) : location of the new facility
Pi = (ai, bi) : location of the i-th existing facility, i = 1, …, m
wi : weight associated to the i-th existing facility
ti
For example, wi = c i ,
vi
where ci : cost per hour of travel, ti : number of trips per month,
vi : average velocity.
Minisum Location Problem with
Rectilinear Distances
m
Min f(x, y) = ∑ w i × [|x − a i |+ |y − b i |]
i=1
f1(x)
- w1 - w2 - w3
w1 - w2 - w3
w1 + w2 - w3
w1
w2
w3
a1 a2 a3 x
Minisum Location Problem with
Rectilinear Distances …
• Slopes of f1(x) :
M0 = - (w1 + w2 + w3) = - W
M1 = 2 w1 + M0
M2 = 2 w2 + M1
M3 = 2 w3 + M2 = w1 + w2 + w3 = W
• Median conditions :
f1(x) is minimized at the point where the slope changes from nonpositive
to nonnegative.
M1 = w1 - w2 - w3 < 0 ⇔ 2 w1 < (w1 + w2 + w3) = W
w1 < W/2
M2 = w1 + w2 - w3 ≥ 0 ⇔ 2 (w1 + w2) ≥ (w1 + w2 + w3) = W
(w1 + w2) ≥ W/2
end
Single Facility Location Problems
Hole
P2
P1
P3 String
P5
Horizontal
P4
pegboard
w2 w3
w1
w5
Weight proportional
w4
to wi
• Majority Theorem :
When one weight constitutes majority of the total other individual weights, an
optimal new facility location coincides the facility which has the majority weight.
Single-Facility Euclidean Distance
Location Problem
Practical cases are:
(ai, bi)
Single-Facility Euclidean Distance
Location Problem
• Objective is to minimize Euclidean (straight-line)
distance
n
f ( x, y ) = ∑ wi (x − ai )
2
+ ( y − bi ) 2
i =1
∑ a g ( x, y )
i i ∑ b g ( x, y )
i i
x= i =1
n
y= i =1
n wi
g i ( x, y ) =
∑ g ( x, y )
i =1
i ∑ g ( x, y )
i =1
i (x − ai )2 + ( y − bi ) 2
Location Characteristics:
Profitability Factors:
[ ]
n
f ( x, y ) = ∑ wi (x − ai ) + ( y − bi ) 2
2
i =1
*
∑wa i i
*
∑wb i i
x = i =1
n
y = i =1
n
∑w
i =1
i ∑w
i =1
i
Gravity Method - in Detail
Department i xi yi wi
1 10 2 6
2 10 10 10
3 8 6 8
4 12 5 4
The least cost locations generated using various techniques may be have
practical implementation issues (like unfeasible location such as
mountain, ocean etc. or on one of the demand points / facilities).
To overcome this issue we can find and evaluate other least cost
locations other than those which have the initial least cost.
The line which connects all least cost locations can be called the contour
lines / iso-cost lines.
Sample Contour Lines
Sample Contour Lines
Step 2: Label each vertical line Vi, i=1, 2, ..., p and horizontal line Hj, j = 1,
2, ..., q where Vi = the sum of weights of facilities whose x coordinates
fall on vertical line i and where Hj = sum of weights of facilities whose y
coordinates fall on horizontal line j.
Algorithm for Drawing Contour Lines
m
Step 3: Set i = j = 1; N0 = D0 = wi
∑
i=1
Step 4: Set Ni = Ni-1 + 2Vi and Dj = Dj-1 + 2Hj. Increment i = i + 1 and
j=j+1
Step 5: If i < p or j < q, go to Step 4. Otherwise, set i = j = 0 and
determine Sij, the slope of contour lines through the region
bounded by vertical lines i and i + 1 and horizontal line j and j + 1
using the equation Sij = -Ni/Dj. Increment i = i + 1 and j = j + 1
Algorithm for Drawing Contour Lines
Step 6: If i < p or j < q, go to Step 5. Otherwise select any point (x, y) and draw a
contour line with slope Sij in the region [i, j] in which (x, y) appears so that the
line touches the boundary of this line. From one of the end points of this line,
draw another contour line through the adjacent region with the corresponding
slope.
Step 7: Repeat this until you get a contour line ending at point (x, y). We now
have a region bounded by contour lines with (x, y) on the boundary of the
region.
Algorithm for Drawing Contour Lines
Alternate method
= using cost equations =
Algorithm for Drawing Contour Lines
By noting that the Vi’s and Hj’s calculated in Step 2 of the algorithm
correspond to the sum of the weights of facilities whose x, y
coordinates are equal to the x, y coordinates, respectively of the ith, jth
distinct lines and that we have p, q such coordinates or lines (p < m, q <
m), the previous equation can be written as follows
Algorithm for Drawing Contour Lines
• Ni=N0+2V1+2V2+...+2Vi-1+2V1=
Algorithm for Drawing Contour Lines
3. The lines V0, Vp+1 and H0, Hq+1 are required for defining the “exterior”
regions [0, j], [p, j], j = 1, 2, ..., p, respectively)
4. Once we have determined the slopes of all regions, the user may
choose any point (x, y) other than a point which minimizes the
objective function and draw a series of contour lines in order to get a
region which contains points, i.e. facility locations, yielding as good or
better objective function values than (x, y)
Example Problem:
Two high speed copiers are to be located in the fifth floor of an office
complex which houses four departments of the Social Security
Administration. Coordinates of the centroid of each department as
well as the average number of trips made per day between each
department and the copiers’ yet-to-be-determined location are known
and given in Table 9 below. Assume that travel originates and ends at
the centroid of each department. Determine the optimal location, i.e.,
x, y coordinates, for the copiers.
Centroid Coordinates and Average Number of
Trips to Copiers
Dept. Coordinates Average number of
# x y daily trips to
copiers
1 10 2 6
2 10 10 10
3 8 6 8
4 12 5 4
Example Problem:
Suppose that the weight of facility 2 is not 10, but 20. Applying the
median method, it can be verified that the optimal location is (10, 10) -
the centroid of department 2, where immovable structures exist. It is
now desired to find a feasible and “near-optimal” location using the
contour line method.
Solution:
The contour line method is illustrated using
the figure below
Solution:
Step 1: The vertical and horizontal lines V1, V2, V2 and H1, H2, H2, H4 are
drawn as shown. In addition to these lines, we also draw line V0, V4
and H0, H5 so that the “exterior regions can be identified
Step 2: The weights V1, V2, V2, H1, H2, H2, H4 are calculated by adding
the weights of the points that fall on the respective lines. Note that for
this example, p=3, and q=4
Solution:
Step 3: Since
set N0 = D0 = -38
Step 4: Set
N1 = -38 + 2(8) = -22; D1 = -38 + 2(6) = -26;
N2 = -22 + 2(26) = 30; D2 = -26 + 2(4) = -18;
N3 = 30 + 2(4) = 38; D3 = -18 + 2(8) = -2;
D4 = -2 + 2(20) = 38;
(These values are entered at the bottom of each
column and left of each row in figure 1)
Solution:
Step 5: Compute the slope of each region.
S00 = -(-38/-38) = -1; S14 = -(-22/38) = 0.58;
S01 = -(-38/-26) = -1.46; S20 = -(30/-38) = 0.79;
S02 = -(-38/-18) = -2.11; S21 = -(30/-26) = 1.15;
S03 = -(-38/-2) = -19; S22 = -(30/-18) = 1.67;
S04 = -(-38/38) = 1; S23 = -(30/-2) = 15;
S10 = -(-22/-38) = -0.58; S24 = -(30/38) = -0.79;
S11 = -(-22/-26) = -0.85; S30 = -(38/-38) = 1;
S12 = -(-22/-18) = -1.22; S31 = -(38/-26) = 1.46;
S13 = -(-22/-2) = -11; S32 = -(38/-18) = 2.11;
Solution:
Step 5: Compute the slope of each region.
Since the copiers cannot be placed at the (10, 10) location, we drew
contour lines through another nearby point (9, 10). Locating
anywhere possible within this region give us a feasible, near-
optimal solution.
end
Multi Facility Location Problems
Multi Facility Location Problems (Planar) - Example
Existing / Old Facilities (EF)
• Concreting mixing / batching plant
• Steel manufacturing plant
• Steel cutting plant
• Shipping area
P4 P1
w24
w11
X2
X1
v12
w12 P2
w23
P3
Old Facility :
New Facility :
Minisum Multi-Facility Location Problem with
Rectilinear Distances
f1(x1, …, xn) = ∑v
1≤ j< k ≤ n
jk x j − x k + ∑ ∑ w ji x j − a i
j=1 i =1
n m
f2(y1, …, yn) = ∑v
1≤ j< k ≤ n
jk y j − y k + ∑ ∑ w ji y j − b i
j=1 i =1
Multi-Facility Location Problem - Example
Min f1(x1, x2) = 2 |x1 - x2| + 2 |x1 - 10| + |x1 - 20| + 4 |x2 - 20| + 5 |x2 - 40| ⇔
Min f1(x1, x2) = 2 (p12 + q12) + 2 (r11 + s11) + (r12 + s12) + 4 (r21 + s21) + 5 (r23 + s23)
s. t. x1 - x2 - p12 + q12 =0
x1 - r11 + s11 = 10
x1 - r12 + s12 = 20
x2 - r21 + s21 = 10
x2 - r23 + s23 = 40
• Relationships among variables :
x1 - x2 = p12 - q12, |x1 - x2| = p12 + q12, p12, q12 ≥ 0
xi - aj = rij - sij, |xi - aj| = rij + sij, rij, sij ≥ 0
Multi-Facility Location Problem - Example
2 1 0 0 2 5
+ =
4 0 5 − 2 0 7
12
Multi-Facility Location Problem - Example
E1
u11 ≤ 4 (10)
(0)
4
5 Cap = ∞
N1 8 12
u12 ≤ 2
(0)
(0)
(20) Cap = ∞ 12
1 z12 ≤ 4 E2 N3
u21 ≤ 8
(0)
7
N2
Cap = ∞
u23 ≤ 10 (40)
(0)
E3
Draw a network included with a sink node N3. The network shows arc capacity in brackets, costs in
parentheses, flows in boxes. The solution can be usually obtained by inspection.
Equivalent Network Flow Problem (cont.)
Parameters
fi = Traffic flow between new facility and existing facility i.
ci = Unit transportation cost between new facility and existing facility i
xi, yi = Coordinate points of existing facility i
Decision Variables
x, y = Optimal coordinates of the new facility.
TC = Total distribution cost
LP Formulation with Rectilinear Distance
Since the cifi product is known for each facility, it can be thought of as a
weight wi corresponding to facility i. The previous equation can now
be rewritten as follows
LP Formulation with Rectilinear Distance
LP Formulation with Rectilinear Distance
LP Formulation with Rectilinear Distance
LP Formulation with Rectilinear Distance