Integer Programming
Integer Programming
Integer Programming
An integer programming model is one where one
or more of the decision variables has to take on
an integer value in the final solution
There are three types of integer programming
problems
1. Pure integer programming where all variables
have integer values
2. Mixed-integer programming where some but
not all of the variables will have integer
values
3. Zero-one integer programming are special
cases in which all the decision variables must
have integer solution values of 0 or 1
Integer Programming
Solving an integer programming problem is much
more difficult than solving an LP problem
Even the fastest computers can take an
excessively long time to solve big integer
programming problems
The most common technique used to solve
integer programming problems is the branch and
bound method
Harrison Electric Company Example of
Integer Programming
The Company produces two products popular
with home renovators, old-fashioned chandeliers
and ceiling fans
Both the chandeliers and fans require a two-step
production process involving wiring and
assembly
It takes about 2 hours to wire each chandelier and
3 hours to wire a ceiling fan
Final assembly of the chandeliers and fans
requires 6 and 5 hours respectively
The production capability is such that only 12
hours of wiring time and 30 hours of assembly
time are available
Harrison Electric Company Example of
Integer Programming
Each chandelier produced nets the firm $7 and
each fan $6
Harrisons production mix decision can be
formulated using LP as follows
2X1 + 3X2 12
0 + + + +
| | | | | | |
1 2 3 4 5 6 X1
Harrison Electric Company Example of
Integer Programming
The production planner Wes recognizes this is an
integer problem
His first attempt at solving it is to round the
values to X1 = 4 and X2 = 2
However, this is not feasible
Rounding X2 down to 1 gives a feasible solution,
but it may not be optimal
This could be solved using the enumeration
method
Enumeration is generally not possible for large
problems
Harrison Electric Company Example of
Integer Programming
CHANDELIERS (X1) CEILING FANS (X2) PROFIT ($7X1 + $6X2) Integer
0 0 $0 solutions
1 0 7
2 0 14
3 0 21
4 0 28
Optimal solution to
5 0 35
integer programming
0 1 6 problem
1 1 13
2 1 20
3 1 27 Solution if
4 1 34 rounding is used
0 2 12
1 2 19
2 2 26
3 2 33
0 3 18
1 3 25
Harrison Electric Company Example of
Integer Programming
Subproblem A
Maximize profit = $7X1 + $6X2
subject to 2X1 + 3X2 12
6X1 + 5X2 30
X1 4
Subproblem B
Maximize profit = $7X1 + $6X2
subject to 2X1 + 3X2 12
6X1 + 5X2 30
X1 3
Harrison Electric Company Revisited
No
Feasible
Solution
Region
Subproblem A Subproblem E
2
X2
X1 = 4 X1 = 4
X2 = 1.2 X2 = 1 Feasible, Integer
Solution
4 P = 35.20 Subproblem D
4
P = 34.00
X1 X X1
2 1
X1 = 3.75 X1 = 4.17
X2 = 1.5 X2 = 1
P = 35.25 Subproblem B P = 35.16 Subproblem F
X X
1 3 1 5
X1 = 3 Upper Bound X1 = 5
X2 = 2 = $35.25 X2 = 0
P = 33.00 Lower Bound P = 35.00
= $27.00
Optimal
Solution
Mixed-Integer Programming
Problem Example
There are many situations in which some of the
variables are restricted to be integers and some
are not
Bagwell Chemical Company produces two
industrial chemicals
Xyline must be produced in 50-pound bags
Hexall is sold by the pound and can be produced
in any quantity
Both xyline and hexall are composed of three
ingredients A, B, and C
Bagwell sells xyline for $85 a bag and hexall for
$1.50 per pound
Mixed-Integer Programming
Problem Example
AMOUNT OF
AMOUNT PER 50-POUND AMOUNT PER POUND INGREDIENTS
BAG OF XYLINE (LB) OF HEXALL (LB) AVAILABLE
Table 11.2
The basic model is
Maximize net present value of projects
undertaken
subject to Total funds used in year 1 $20,000
Total funds used in year 2 $16,000
Capital Budgeting Example
The decision variables are
Table 11.3
Fixed-Charge Problem Example
Table 11.4
Financial Investment Example
Model formulation
subject to
X1 + X4 + X5 2 (Texas constraint)
X2+ X3 1 (foreign oil constraint)
X6 + X7 = 1 (California constraint)
480X1 + 540X2 + 680X3 + 1,000X4 + 700X5
+ 510X6 + 900X7 3,000 ($3 million limit)