Professional Documents
Culture Documents
Integer Programming
5-1
Introduction
In LP problems ,decision variables are non negative
values
It demonstrates one of the properties of LP namely,
continuity, which means that fractional values of the
decision variables are possible in the solution of a LP
model.
For some problems like: product mix , balanced diet
(nutrition) etc. the assumption of continuity may be
valid .
5-2
Cont. …
3
5-3
Cont.…
4
5-4
Hence there is a need for Integer programming
methods.
The mathematical model for IP or more precisely ILP
is the LP model with one additional
restriction/constraint: “variables must have integer
values”.
If only some of the variables of the problem should
be integers then they are called “Mixed IP problems”
5
5-5
Cont. …
If all the variables should take integer values then we
have “Pure IP problems”.
There is another area of application, namely problems
involving a number of interrelated “yes no decisions” .
In such decisions, the only two possible choices are yes
or no.
6
5-6
Cont.…
Integer linear programing is classified in to Pure ,
Mixed and (0,1 or yea/No) type based on the
decision variables
There are two methods of solving integer linear
programing
1. Gomory’s cutting plan method
2.Brnanch and Band Method
5-7
Consider the following ILP problem
Maximize Z=7x1+10x2
Subject to : - x1+3x2 ≤6
7x1+x2 ≤35
x1,x2 ≥ 0 and integer
8
5-8
1.Gomory Cutting plane algorithm
The general procedure for Gomory’s cutting plane method is:
Basic x1 x2 s1 s2 solution
z 0 0 63/22 31/22 66 ½
x2 0 1 7/22 1/22 3½
x1 1 0 -1/22 3/22 4½
10
5-10
The information in the optimum tableau can be written
explicitly as
Z+63/22 S1+31/22 S2 =66 ½
X2+ 7/22 S1+1/22 S2 =3 ½
X1 -1/22 S1 + 3/22 S2=4 ½
7 1 1
X2 (0 ) S1 (0 )S2 3
22 22 2
7 1 1
X2 0 S1 0 S 2 3 S1 S2 0
22 22 2
5-12
7 1 1
S1 S2 0
22 22 2
7 1 1
S1 S2
22 22 2
-7/22s1-1/22s2+Sg1=-1/2
Ratio -9 -31
5-14
1
5
Applying the dual simplex method to recover
feasibility, yields,
5-16
1
7
The dual simplex method yields the following
tableau which is optimal, feasible and integer .
5-18
Integer Programming Models, (Types of Models)
5-20
Example of Branch-and-Bound
6
x1 + x2 = 6 Max Z = 5x1 + 8x2
5
s.t. x1 + x2 6
5x1 + 9x2 45
4 (2.25, 3.75) x1 , x2 ≥ 0 integer
Z=41.25
2 5x1 + 9x2 = 45
1
Z=20
0 1 2 3 4 5 7 8
6
5-21
Utilizing the information about the optimal solution of the
LP-relaxation
Fact: If LP-relaxation has integral optimal solution x*,
then x* is optimal for IP too.
In our case, (x1, x2) = (2.25, 3.75) is the optimal solution of the LP-
relaxation. But, unfortunately, it is not integral.
3 (3, 3)
2
Subproblem 1
1 Z=39
Z=20
0 1 2 3 4 5 6 7 8
Solution tree
S1: x2 3
For each sub problem, we record (3, 3) int.
All
• the restriction that creates the sub problem Z=39
(2.25, 3.75)
• the optimal LP solution
Z=41.25 S2: x2 ≥ 4
• the LP optimum value
(1.8, 4)
Z=41
The optimal solution for Sub problem 1 is integral: (3, 3).
If further branching on a sub problem will yield no useful
information, then we can fathom (dismiss) the sub problem.
In our case, we can fathom Sub problem 1 because its solution is integral.
The best integer solution found so far is stored as incumbent.
The value of the incumbent is denoted by Z*.
In our case, the first incumbent is (3, 3), and Z*=39.
Z* is a lower bound for OPT(IP): OPT(IP) ≥ Z* .
In our case, OPT(IP) ≥ 39. The upper bound is 41: OPT(IP) 41.
Next branching step (graphically)
- Fathom Subproblem 1.
5
(1, 4.44)
- Branch Subproblem 2 on x 1 :
Subpr. 4
Subpr. 3 Subproblem 3: New restriction is x1 1.
4 Opt. solution (1, 4.44) with value 40.55
Subproblem 4: New restriction is x1 ≥ 2.
3 The subproblem is infeasible
Z=40.55
1
Z=20
0 1 2 3 4 5 7 8
6
Solution tree (cont.)
S1: x2 3
int.
All (3, 3) S3: x1 1
(2.25, 3.75) Z=39
(1, 4.44)
Z=41.25
S2: x2 ≥ 4 Z=40.55
(1.8, 4)
Z=41 S4: x1 ≥ 2
infeasible
1
Z=20
0 1 2 3 4 5 7 8
6
Solution tree (final)
S1: x2 3 int. S5: x2 4
int.
All (3, 3) S3: x1 1 (1, 4)
(2.25, 3.75) Z=39 Z=37
(1, 4.44)
Z=41.25
S2: x2 ≥ 4 Z=40.55 S6: x2 ≥ 5
int.
(1.8, 4) S4: x1 ≥ 2 (0, 5)
Z=41 Z=40
infeasible