IP Models
IP Models
IE 8030
Prof. Emily Tucker
Oct. 31, 2024
What’d we cover last time?
• Integer programming intro
– What is it?
– Examples Binary variables 𝑥1 and 𝑥2
• Class scheduling Come up with a constraint that states:
• Knapsack problem you must pick at most one of the two
options
– Constraints that enforce
logical conditions
Today
• Exam return
• IP models
– Facility location
– Discounting (if time)
Exam Return
• Overall
– Average 78%
– Standard deviation of 16%
• Do remember
– This is only one grade (of many) we have this term.
– Don’t ask Martha about grading; you may ask her about content
• Decision variables
– 𝑦𝑖 if EMT station is built at location 𝑖 ∈ 𝐼
– 𝑥𝑖𝑗 if population center 𝑗 ∈ 𝐽 is assigned to station 𝑖 ∈ 𝐼
Disney World
Response time to 𝑗 =
Minimize average 1 σ𝑖∈𝐼 𝑐𝑖𝑗 𝑥𝑖𝑗
min 𝑐𝑖𝑗 𝑥𝑖𝑗
response time 𝐽
𝑗∈𝐽 𝑖∈𝐼
Minimize average 1
min 𝑐𝑖𝑗 𝑥𝑖𝑗
response time 𝐽
𝑗∈𝐽 𝑖∈𝐼
MinimizeKeep
average 1
minget rid
the constraints but of the𝑐𝑖𝑗 𝑥
objective
𝑖𝑗
response time 𝐽
𝑗∈𝐽 𝑖∈𝐼
• We will let 𝑐𝑖𝑗 be the response time from location 𝑖 ∈ 𝐼 and location
𝑗∈𝐽
You need to figure out how many units to ship from the warehouse to the store.
• Suppose
– 𝑥 is your decision on the number of units shipped
– Each truck as a capacity of 500 units
• Decision variables
1 purchase exactly 𝑖 ∈ 𝐼 trucks
𝑦𝑖 ∈ ቊ
0 otherwise
Costs
𝑐1 = 2500
𝑐2 = 𝑐1 + 2400 = 4900 Note – cheaper
than 𝑐𝑦 (2500𝑦)
𝑐3 = 𝑐2 + 2300 = 7200
Etc.
Equipment Procurement
Constraints
Can only select one purchase option Note: do we need this constraint?
𝑦1 + 𝑦2 + 𝑦3 + 𝑦4 + 𝑦5 ≤ 1
Not always
E.g., cheaper to select 𝑦4 than 𝑦1 + 𝑦3
𝑧𝑖+1 ≤ 𝑧𝑖 , ∀𝑖 ∈ 1, … 𝐼 − 1
𝑥 ≤ 500 ∗ 𝑧1 + 𝑧2 + 𝑧3 + 𝑧4 + 𝑧5