Integer Programming Lecture 2
Integer Programming Lecture 2
Investment 1 2 3 4 5 6
(1000,000s)
Integer Programming
Formulation
What are the decision variables?
1, if we invest in i 1,...,6,
xi
0, else
x1 x 2
Stock 2
Try to model the other
constraints.
Stock 1
If stock 1 is selected then
stock 3 is not selected
The integer
programming
A 2-dimensional constraint:
representation
x1 + x3 1
Stock 3
Stock 1
Either stock 4 is selected or stock 5
is selected, but not both.
The integer
programming
A 2-dimensional constraint:
representation
x 4 + x5 = 1
stock 5
stock 4
The number of stocks selected is not
three
Either x1+x2+x3+x4+x5+x6 4 or (1)
x1+x2+x3+x4+x5+x6 2 (2)
The number of stocks selected is not
three
Either x1+x2+x3+x4+x5+x6 4 or (1)
x1+x2+x3+x4+x5+x6 2 (2)
x1+x2+x3+x4+x5+x6 2 + 4w (B)
So, if w=0 then x1+x2+x3+x4+x5+x6 2 (2)
Note: if w = 1, the second constraint is automatically satisfied.
(If we had written “ 2 + 3w”, then we would incorrectly have
eliminate the solution in which xj = 1 for all j.)
You must select stock 1 unless the
NPV of the portfolio exceeds
Rs.4,20,00,000.
You must select stock 1 unless the
NPV of the portfolio exceeds
Rs.4,20,00,000.
If NPV < 42 then x1=1.
42x1 42 - (16x1+22x2+12x3+8x4+11x5+19x6)
Fixed Charge Problem, Example
Based on, Wolf, Stott and Scheirer (1989) ‘Selecting Optimal Ingot sizes for Bethlehem steel’, Interfaces, 19(1), 68-84
Bethlehem Steel [contd]
A careful examination of the best mold dimensions
for different products yielded m = 600 candidate
designs. However it is impractical to use more than
a few because of the cost handling and storage.
We wish to select at most p = 6 and to minimize
the waste associated with using them to produce
all n products.
Based on, Wolf, Stott and Scheirer (1989) ‘Selecting Optimal Ingot sizes for Bethlehem steel’, Interfaces, 19(1), 68-84
Bethlehem Steel [contd]
Major index dimensions:
i = mold design number (i = 1, 2, …, m)
j = product number (j = 1, 2, …, n)
Input parameters:
Cij = amount of waste caused by using ingot
mold i on product j.
Ij = Collection of indexes i corresponding to
molds that could be used for product j.
If i Є Ij mold i is feasible for product j.
Based on, Wolf, Stott and Scheirer (1989) ‘Selecting Optimal Ingot sizes for Bethlehem steel’, Interfaces, 19(1), 68-84
Bethlehem Steel [contd]
Based on, Wolf, Stott and Scheirer (1989) ‘Selecting Optimal Ingot sizes for Bethlehem steel’, Interfaces, 19(1), 68-84
Bethlehem Steel [contd]
n
min. ci , j xi , j (Total waste)
j 1 iI j
s.t.
m
y
i 1
i p (select at most p)
x
i Ij
i, j 1 j 1,..., n (only one mold for each product)
Based on, Wolf, Stott and Scheirer (1989) ‘Selecting Optimal Ingot sizes for Bethlehem steel’, Interfaces, 19(1), 68-84