Lecture6 3
Lecture6 3
Claudio Contardo
Lecture 6
Discrete facility location problems
X X
Minimize Z = fi yi + cij sij
i∈V1 i∈V1 ,j∈V2
subject to
X
sij ≤ qi yi i ∈ V1
j∈V2
X
sij = dj j ∈ V2
i∈V1
s≥0
y binary.
Remarkable cases of discrete facility location problems
Uncapacitated FLP
Non capacitated facilities can be given a dummy capacity
X
qi = Q = dj
j∈V2
X X
Minimize Z = fi yi + cij sij
i∈V1 i∈V1 ,j∈V2
subject to
X
sij ≤ Qyi i ∈ V1
j∈V2
X
sij = dj j ∈ V2
i∈V1
s≥0
y binary.
Remarkable cases of discrete facility location problems
X X
Minimize Z = fi yi + cij sij
i∈V1 i∈V1 ,j∈V2
subject to
X
sij ≤ qi yi i ∈ V1
j∈V2
X
sij = dj j ∈ V2
i∈V1
s≥0
y binary.
Remarkable cases of discrete facility location problems
Single-source facility location problem
When in addition of capacities, it is required that every node be allocated
to an unique facility (which must then meet ts entire demand), we refer
to the Single-source capacitated FLP (SSCFLP)
X X
Minimize Z= fi yi + cij sij
i∈V1 i∈V1 ,j∈V2
subject to
X
sij ≤ qi yi i ∈ V1
j∈V2
X
sij = dj j ∈ V2
i∈V1
sij ∈ {0, dj } i ∈ V1 , j ∈ V2
y binary.
Remarkable cases of discrete facility location problems
X X
Minimize Z = fi yi + γij xij
i∈V1 i∈V1 ,j∈V2
subject to
X
dj xij ≤ qi yi i ∈ V1
j∈V2
X
xij = 1 j ∈ V2
i∈V1
xij ∈ {0, 1} i ∈ V1 , j ∈ V2
y binary.
A Lagrangean heuristic for the CFLP
Relax the P
demand satisfaction constraints. This is, instead of
imposing P i xij = 1, allow for them to be violated and let
vj = 1 − i xij be the level of violation (> 0 meaning demand is
unmet, < 0 meaning excess of demand is met)
Delete the Passociated constraints and extend the objective as
Z ′ = Z + j λj vj for a certain λ ∈ R|V2 | (the Lagrangean
multipliers)
We can
P in addition delete the variables vj and replace them by
1 − i xij under the condition that 0 ≤ xij ≤ 1 for every i, j
A Lagrangean heuristic for the CFLP
subject to
X
dj xij ≤ qi yi i ∈ V1
j∈V2
0 ≤ xij ≤ 1 i ∈ V1 , j ∈ V2
y binary.
A Lagrangean heuristic for the CFLP
Separability
The Lagrangean problem can now be separated by potential facility
A Lagrangean heuristic for the CFLP
subject to
X
dj xij ≤ qi yi
j∈V2
0 ≤ xij ≤ 1 j ∈ V2
yi binary.
A Lagrangean heuristic for the CFLP
subject to
X
dj xij ≤ qi i∈S
j∈V2
0 ≤ xij ≤ 1 i ∈ S, j ∈ V2 .
A Lagrangean heuristic for the CFLP
Let x∗ij be the solutions identified by the different subproblems Z(λ, i),
and let α > 0
Identify all the j ∈ V2 such that
X
vj = 1 − x∗ij ̸= 0
i∈V1
Flows
Source nodes shipping flows to intermediate facilities
Potential intermediate facilities shipping flows to final customers
Single-commodity two-echelon location
Quantities
Each source node i ∈ V1 has a certain supply oi
Each intermediate node j ∈ V2 has a certain capacity qj
Each final customer node k ∈ V3 has a certain demand dk
Costs
Unit transportation cost cijk , i ∈ V1 , j ∈ V2 , k ∈ V3
Fixed location costs fj , j ∈ V2
Single-commodity two-echelon location
Decision variables
Location variables yj ∈ {0, 1} for every j ∈ V2
Transportation variables sijk ≥ 0 to indicate the amount of flow
being sent from i to k through the intermediate facility j
Single-commodity two-echelon location
We can formulate this problem as follows:
X X
Minimize Z = fj yj + cijk sijk
s,y
j∈V2 i∈V1 ,j∈V2 ,k∈V3
subject to
X
sijk ≤ oi i ∈ V1
j∈V2 ,k∈V3
X
sijk ≤ qj yj j ∈ V2
i∈V1 ,k∈V3
X
sijk = dk k ∈ V3
i∈V1 ,j∈V2
s≥0
y binary.
Multi-commodity two-echelon location
Quantities
Each source node i ∈ V1 has a certain supply oih of product h ∈ H
Each final customer node k ∈ V3 has a certain demand dkh of
product h
Costs
Unit transportation cost cijkh , i ∈ V1 , j ∈ V2 , k ∈ V3 , h ∈ H
Multi-commodity two-echelon location
Decision variables
Location variables yj ∈ {0, 1} for every j ∈ V2
Transportation variables sijkh ≥ 0 to indicate the amount of flow of
product h being sent from i to k through the intermediate facility j
Multi-commodity two-echelon location
We can formulate this problem as follows:
X X
Minimize Z = fj yj + cijkh sijkh
s,y
j∈V2 i∈V1 ,j∈V2 ,k∈V3 ,h∈H
subject to
X
sijkh ≤ oih i ∈ V1 , h ∈ H
j∈V2 ,k∈V3
X
sijkh ≤ qj yj j ∈ V2
i∈V1 ,k∈V3 ,h∈H
X
sijkh = dkh k ∈ V3 , h ∈ H
i∈V1 ,j∈V2
s≥0
y binary.
Location-covering problems
We are given
A set of potential locations V1 , fixed costs fi , i ∈ V1
A set of customer locations V2
A 0-1 incidence matrix A such that for every i ∈ V1 , j ∈ V2 , aij = 1
indicates whether location i covers the customer j
Remarkable examples
Find the optimal location of public primary schools so every postal
code is away of at most 500m from the closest school
Locate fire stations so every postal code is at most 2 km away from
the closest fire station
Location-covering problems
Variables
yi ∈ {0, 1} indicating whether a facility is open at location i
subject to
X
aij yj ≥ 1 j ∈ V2
i∈V1
y binary.
Location-covering problems
Main idea
Let r > 0 be a target radius. Construct a set-covering matrix A such
that for every i, j ∈ V , aij = 1 if dij < r. Let fi = 1 and solve the
associated set-covering problem. An optimal value ≤ p indicates the
possibility of finding a solution to the pCP of value r
Binary search for the pCP
The following method solves the pCP for integer distances dij , i, j ∈ V
Binary search
1 Let rL = 0, rU = max{dij , i, j ∈ V }
2 While rL < rU do
1 Let r = ⌊ rL +r2
U
⌋
2 Solve the associated set-covering problem
3 If feasible, let rU ← r
4 Else, let rL ← r + 1
3 Return the solution associated to the last value of rU
Two-stage stochastic location models
subject to
X
xijs = 1 j ∈ V2 , s ∈ S
i∈V1
X
djs xijs ≤ qi yi i ∈ V1 , s ∈ S
j∈V2
x≥0
y binary.