Professional Documents
Culture Documents
IE 142 Meeting 1 - Integer Programming
IE 142 Meeting 1 - Integer Programming
IE 142 Meeting 1 - Integer Programming
LP Formulation
IE 142: OPERATIONS RESEARCH II
P RE P ARE D B Y C A S O N DAY
Integer Programming
In this type of LPs, all or some of the variables are restricted to having
integer values
Two Types
◦ Pure IP – all variables are integers
◦ Mixed IP – not all variables are integers
If the available funds for each year is $25 million, which projects
should be selected over the three-year horizon?
Formulate a model that will determine the product mix that can
maximize the profit.
≤ + 𝑀 ∗ (𝑞𝑢𝑎𝑛𝑡𝑖𝑡𝑦)
≥ − 𝑀 ∗ (𝑞𝑢𝑎𝑛𝑡𝑖𝑡𝑦)
1, 𝑖𝑓 𝑐𝑎𝑟 𝑖 𝑖𝑠 𝑝𝑟𝑜𝑑𝑢𝑐𝑒𝑑
Let 𝑥𝑖 = number of car i to produce, 𝑦𝑖 = ቊ
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
𝑀𝑎𝑥 2𝑥𝐶 + 3𝑥𝑀 + 4𝑥𝐿
𝑥𝑖 ≤ 𝑀𝑦𝑖 , ∀ 𝑖 ∈ {𝐶, 𝑀, 𝐿} If type i is produced, quantity can be any amount
𝑥𝑖 ≥ 1,000𝑦𝑖 If type i is produced, quantity must exceed 10,000
1.5𝑥𝐶 + 3𝑥𝑀 + 5𝑥𝐿 ≤ 6,000
30𝑥𝐶 + 25𝑥𝑀 + 40𝑥𝐿 ≤ 60,000
𝑥𝑖 ≥ 0, 𝑖𝑛𝑡 and 𝑦𝑖 𝑏𝑖𝑛 ∀ 𝑖 ∈ {𝐶, 𝑀, 𝐿}
Let 𝑦𝑖 𝑏𝑖𝑛
Left Region (y=0):
𝑥1 ≤ 1 + 𝑀𝑦
𝑥2 ≤ 2 + 𝑀𝑦
𝑦 𝑏𝑖𝑛, 𝑥𝑖 ≥ 0 ∀ 𝑖
Therefore, we get
2𝑥2 ≥ 3 − 𝑀(1 − 𝑦)
𝑥1 ≤ 2 + 𝑀𝑦
1, 𝑐𝑜𝑛𝑑𝑖𝑡𝑖𝑜𝑛 𝑖𝑠 𝑠𝑎𝑡𝑖𝑠𝑓𝑖𝑒𝑑
𝑦=ቊ
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
4. If one in products 4, 5, and 6 is made, the other two must also be made.
𝑥4 + 𝑥5 = 2𝑥6
𝑥 𝑖𝑛𝑡, 𝑦 𝑏𝑖𝑛 ∀ 𝑖
𝑦 ≤ 10,000𝑥
𝑦 ≥ 2,000𝑥
𝑥 𝑏𝑖𝑛
𝑦 𝑖𝑛𝑡
𝑀𝑖𝑛 𝑥𝑖
𝑖=1
Such that
There must be at least 1 fire station for cities within 15 mins of each other
𝑥1 + 𝑥2 ≥ 1 (Cities 1 & 2 are 15 minutes from City 1)
𝑥2 + 𝑥1 + 𝑥6 ≥ 1 (Cities 1, 2, & 6 are 15 mins from City 2)
𝑥3 + 𝑥4 ≥ 1 (Cities 3 & 4 are 15 mins from City 3)
𝑥3 + 𝑥4 + 𝑥5 ≥ 1 (Cities 3, 4, & 5 are 15 mins from City 4)
𝑥4 + 𝑥5 + 𝑥6 ≥ 1 (Cities 4, 5, & 6 are 15 mins from City 5)
𝑥2 + 𝑥5 + 𝑥6 ≥ 1 (Cities 2, 5 & 6 are 15 mins from City 6)
𝑥𝑖 𝑏𝑖𝑛 ∀ 𝑖
𝑥1 ≥ 15 − 𝑀(1 − 𝑦)
𝑥1 ≤ 15 + 𝑀(1 − 𝑦)
𝑥1 ≥ 4 − 𝑀𝑦
𝑥1 ≤ 4 + 𝑀𝑦
Let 𝑦𝑖 𝑏𝑖𝑛
Holds true for
𝑥1 + 𝑥2 ≤ 3 both regions
Left Region (y=0):
𝑥1 ≤ 1 + 𝑀𝑦
𝑥2 ≥ 1 − 𝑀𝑦
𝑦 𝑏𝑖𝑛, 𝑥𝑖 ≥ 0 ∀ 𝑖