3 - Introduction To Integer Programming
3 - Introduction To Integer Programming
0 1 2 3 4 5
Solve LP (ignore
5
z =12
2
0 1 2 3 4 5
Advantages of restricting variables to take on
integer values
More realistic
More flexibility
Disadvantages
More difficult to model
Can be much more difficult to solve
Investment 1 2 3 4 5 6
Cash
Required $5 $7 $4 $3 $4 $6
(1000s)
NPV
added $16 $22 $12 $8 $11 $19
(1000s)
9
What are the decision variables?
1, if we invest in i = 1,...,6,
xi =
0,
0, else
Stock 2
x1 ≥ x2
Stock 3
x1 + x3 ≤ 1
Stock 1
15
The integer programming
constraint:
A 2-dimensional
representation
x4 + x5 = 1
stock 5
stock 4
16
17
18
19
20