






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Using binary variables
Restrictions on number of options
Contingent decisions
Variables (functions) with k possible values
Facility Location Problem
Knapsack Problem
Example of IP: Facility Location
LA and SF.
Total capital available for investment: $10M
to maximize the total profit?
capital needed expected profit
IP model for Knapsack problem
the total weight:
Summarizing, the IP model is:
max
s.t.
x (^) i binary ( i = 1, …, n)
0 if not
1 if item is packed x (^) i
i
n
i
bi xi 1 ∑ =
n
i
wi xi 1
n
i
bi xi 1
w x W
n
i
∑ i i ≤ = 1
The Facility Location Problem:
adding new requirements
Modeling Technique:
Restrictions on the number of options
0 if not
1 if option is chosen x (^) i
i
x p
n
i
∑ i ≥ = 1
x q
n
i
∑ i ≤ = 1
Modeling Technique:
Variables with k possible values
one of the values d 1 , d 2 , …, d (^) k.
0 otherwise
1 if y takes value d x
i i
1 ( can take only one value) 1
x y
k
i
( should take value di if xi 1) 1
y d x y
k
i
i i
Modeling Technique:
Functions with k possible values
to functions.
take one of the values d 1 , d 2 , …, d (^) k.
0 otherwise
1 if f(y) takes value d x
i i
1 (f(y) can take only one value ) 1
k
i
xi
( f(y) should take value di if xi 1) 1 1
∑ =^ ∑^ = = =
k
i
i i
n
j
aj yj d x Docsity.com