Chapter 6 Integer Programming Refined
Chapter 6 Integer Programming Refined
Integer Programming
After completing this chapter, you should be able to:
1. Define Integer programming
2. Explain how integer programming problems differ from
general linear programming problems.
3. Differentiate among various IP models
4. Use the branch and bound method to solve integer pro-
gramming problems.
5. Use the enumeration method to solve 0–1 integer pro-
gramming problems.
6. Solve IP models using Excel solver.
Special LPMs in which one or more variables must
be integer are called integer linear programs.
Three types:
Pure-Integer Problem
• requires that all decision variables have integer values.
Mixed-Integer Problem
• Requires that some, but not all, decision variables have integer
values.
0-1 Integer Programming
- one or more integer variables are required to equal either 0 or 1. Such
variables are called 0-1 or binary variables.
Branch and Bound method
• Creates and solves a sequence of sub problems to the original
problem that are increasingly more restrictive until an optimal so-
lution is found.
Bound
An upper or lower limit on the value of the objective function at a
given stage of the analysis of an integer programming problem.
Branch
Selection of an integer value of a decision variable to examine for a
possible integer solution to a problem
Enumeration Method
• A method used with 0–1 problems that involves listing every pos-
sible outcome in order to identify the optimal solution.
Lp relaxation solution – solution of IP problem
that does not take in to account the integer re-
quirement. It is used as a starting point for the
Branch and Bound method.
We can use graphic, and or simplex method or
excel solver to find LP relaxation solution.
Note: The B &B method begins with the solution of an integer problem
as if it were a typical LP problem ( i.e., the integer requirements are
ignored temporarily.)
If this initial solution should happen to produce integer values for all vari-
ables, then the solution is also optimal solution to the integer problem.
No other solution, integer or non integer, can possibly yield a better value of
the objective function of LP relaxation solution.
For integer linear programs involving maximization, the
value of the optimal solution to the LP Relaxation provides an
upper bound on the value of the optimal integer solution.
For integer linear programs involving minimization, the
value of the optimal solution to the LP Relaxation provides a
lower bound on the value of the optimal integer solution.
Since the search process involves the use of additional con-
straints while keeping original constraints, it is impossible
to obtain a solution that yields a higher or lower value of the
OF for maximization and minimization problems respec-
tively.
Select the variable with the largest
fractional part to branch on.
Note: Should the LP relaxation fails to produce all integer value for all deci-
sion variables, the B &B method will be used, which involves partitioning
(branching) the feasible solution region in to smaller and smaller subsets.
Figure
Figure6–4
6–4 Branching
Branchingfrom
fromthe
theFirst
FirstNode
Node
• Because the value x2 = 2.5 is not acceptable as integer solution, we
explore two possible alternatives : either x2 < 2 or x2 > 3 since there
is no integer value between 2 and 3.
•This will subdivide the feasible solution region in to two regions
that will be explored separately.
Scenario1 Scenario 2
For x2 < 2 ( Node 2) For x2 >3 ( Node 3)
Max Z = 6x1 + 8 x2 Max Z = 6x1 + 8 x2
Sub to:
Sub to:
4x1 + 6x2 < 36 4x1 + 6x2 < 36
10x1 + 7x2 < 70 10x1 + 7x2 < 70
x2 < 2 x2 > 3
15 1 1 1 0 28 Yes 6 No No -
16 1 1 1 1 36 No 6 No No -
x1
x1
Note: Additional constraints
for 0-1 problems as all
variables value is 0 or 1.
X1<1
X2 <1
X3<1
X4<1
• All branches are ex-
pressed as equalities rather
than inequalities.
The branching rule used for maximization problem of branching
from a node on a variable with the largest fractional part also will
be used for minimization problems.
The main difference is the OF value at each node is being mini-
mized , i.e., the values at various nodes going down through the tree
will get larger ( or stay the same) rather than get smaller, as in max-
imization problem.
Thus each node will result in a value that is equal to or greater than
the value at the node it emanated from.
Zmin = 15x1 + 10x2 +12x3
S. To:
4x1 + 6x2 + 5x3 > 60
3x1 + x2 + x3 > 18
All variables >0 and integer
0
0
Integer programming problems do not readily
lend themselves to sensitivity analysis as only
a relatively few of the infinite solution possi-
bilities in a feasible solution space will meet
integer requirements.
Trial-and-error examination of a range of rea-
sonable alternatives involving completely solv-
ing each revised problem is required.
Much of the modelling flexibility provided by
integer linear programming is due to the use of
0-1 variables.
value of the variable equal to 1 if a correspond-
ing activity is undertaken and equal to 0 if the
corresponding activity is not undertaken.
Example
Let’s say xyz cpny is considering investing in several projects
that have varying capital requirements over the next four
years. Faced with limited capital each year, management
would like to select the most profitable projects. The esti-
mated net present value for each project, the capital re-
quirements, and the available capital over the four-year pe-
riod are shown in Table below.
Project
Plant Warehouse New New Prod- Total Capi-
Expansion Expansion Machinery uct tal
Research Available
Present $90,000 $40,000 $10,000 $37,000
Value
Year 1 Cap $15,000 $10,000 $10,000 $15,000 $40,000
Rqmt
Year 2 Cap $20,000 $15,000 - $10,000 $50,000
Rqmt
Year 3 Cap $20,000 $20,000 $10,000 $40,000
Rqmt
Year 4 Cap $15,000 $ 5,000 $ 4,000 $10,000 $35,000
Rqmt
The four 0-1 decision variables are as follows:
P = 1 if the plant expansion project is accepted; 0 if
rejected
W= 1 if the warehouse expansion project is
accepted; 0 if rejected
M = 1 if the new machinery project is accepted; 0 if
rejected
R= 1 if the new product research project is
accepted; 0 if rejected
objective function is to maximize the net present value of the capital
budgeting projects.
This problem has four constraints ;one for the funds available in
F ≤ 50SF
Note that, with this constraint present, production of the fuel addi-
tive is not permitted when SF= 0. When SF = 1, production of up
to 50 tons of fuel additive is permitted.
We can think of the setup variable as a switch. When it is off (SF =
0), production is not permitted; when it is on (SF = 1), production
is permitted.
Similar production capacity constraints, using 0-1 variables, are added for
the solvent base and carpet cleaning products:
S≤25SS
C ≤ 40SC
The model will be:
Optimal Solution:
Fuel additives = 25 tones
Solvent base = 20 tones
Zmax = 1350
Note: Set up cost of 200+50 for the two= 250.