0% found this document useful (0 votes)
19 views9 pages

Branch and Bound

Uploaded by

rf.sohel09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views9 pages

Branch and Bound

Uploaded by

rf.sohel09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Fourth Dual Simplex Table

Cj 4 6 2 0 0 0
CBj Basic x1 x2 x3 s1 s2 s3 sg1 sg2
variables
4 x1=2 1 0 0 0 0 0 1 0
6 x2=1 0 1 0 0 0 0 0 1/5
2 x3=6 0 0 1 0 0 1 1 -1/5
0 s1=1 0 0 0 1 0 0 -4 4/5

0 s2=1 0 0 0 0 1 0 1 -6/5

z=26 Zj 4 6 2 0 0 2 6 4/5
Cj -Zj 0 0 0 0 0 -2 -6 -4/5
Since all Cj -Zj  0 , therefore the above table is optimal.
Hence the mixed integer optimal solution is given by x1=2, x2=1, x3=6
and Max Z=4(2)+6(1)+2(6)=26.

Branch and Bound Method


 It was first developed by A H Land and AG Doig.
 It can be used to solve all integer, mixed integer and zero-one
integer programming problems
 It partition the feasible solution region in to smaller regions
until the optimal solution obtained.
 It starts by imposing bounds on the value of the objective
function that helps the sub problem to be eliminated from the
consideration when the optimum solution has been found.

Procedure of Branch and Bound Algorithm


Step:-01(Initialization)

Consider the following all integer programming problem


Max Z=c1x1+c2x2+.....cnxn
Subject to the constraints
a11x1+a12x2+......+a1nxn=b1
a21x1+a22x2+......+a2nxn=b2..
.

am1x1+am2x2+......+amnxn=b1m
and xj  0 and non negative integer.
Obtain the optimal solution of the given problem ignoring integer
restriction on the variables
(i) If the solution to this LP problem (say LP-A) is infeasible or unbounded,
the solution to the all integer programming problem is also infeasible or
unbounded , as the case may be.
(ii) If the solution satisfies the integer restriction, the optimal integer
solution has been obtained. If one or more basic variables do not satisfies
integer requirement, then go to step 2. Let the optimal value of the
objective function of LP-A be Z1. This value provides an initial upper bound
on objective function value and it is denoted by ZU.
(iii) Find the feasible value by rounding off each variable value. The value
of the objective function so obtained is the least upper bound and it is
denoted by ZL.
Step:-02(Branching step)
(i) Let xk be one basic variable which does not have an integer value and
also has the largest fractional value
(ii) Branch ( or partition) the LP-A into two new LP sub problems (also
called nodes) based on integer values of xk that are immediately above and
below its non integer value. That is, it is portioned by adding two mutually
exclusive constraints.:
xk  [xk] and xk  [xk]+1
to the original LP problem, Here [xk] is the integer portion of the current
non-integer value of the variable xk. This is obviously is done to exclude the
non integer value of the variable xk. The two new Lp sub problems are as
follows:
LP Sub problem B LP Sub Problem C
n n
Max Z=  c j x j Max Z=  c j x j
j 1 j 1

n n
subject to  aij x j  bi subject to a ij x j  bi
j 1 j 1

xk  [xk] xk  [xk]+1
and xj  0 and xj  0
Step:-03(Bound step)
Obtain the optimal solution of sub problems B and C. Let the optimal
value of the objective function of LP-B be Z2 and that of LP-C be Z3. The best
integer solution value becomes the lower bound on the integer LP problem
objective function value (initially this is the rounded off value). Le the
lower bound be denoted by ZL.
Step:-03(Fathoming step) Examining the solution of both LP-B and LP-C
(i) If the sub problem yields an infeasible solution , then terminate the
branch.
(ii) If the sub problems yields the feasible solution, but not integer solution
then go to step 2.
(iii)If the sub problem yields the integer feasible solution, then examine the
value of the objective function. If the value is equal to upper bound, then
the optimal solution has been obtained. But if it is not equal to upper bound
but exceed the lower bound, then this value is considered as new upper
bound and return to step 2. Finally, If it is less than the lower bound
terminate the branch.
Step 05 (Termination)
procedure of branching and bounded continues, until no sub
problem remains to be examined. At this stage, the integer solution
corresponding to the current lower bound is optimal all integer
programming problem.

Problem:-01
Solve the following all integer programming problem using branch
and bound method,
Max Z=2x1+3x2,
Subject to the conditions
6x1+5x2  25,
x1+3x2  10
and x1, x2  0 and integers
Solution:-
Step:-01
Relaxing the integer condition, Let us find the optimal solution to the
given LP problem by graphical method
Graphical Method
Let us draw the line 6x1+4x2=25-----(1)
Let x1=0, 6(0)+5x2=25 =>x2=25/4 i.e (0,5)
Let x2=0, 6x1+5(0)=25 =>x1=25/6 i.e(4.16,0)
Let us draw the line x1+3x2=10------(2)
Let x1=0, (0)+3x2=10 =>x2=10/3 i.e (0,3.33)
Let x2=0, x1+3(0)=10 =>x1=10 i.e(10,0)
To find the intersection point
(1)x1=> 6x1+5x2=25
(2)x6=> 6x1+18x2=60
(Subtract) ------------------
-13x2=-35 =>x2=35/13
Sub x2 values in equation (2), we have x1=25/13
i.e the intersection point is (1.92,2.69)
At (4.16,0) Max Z=2(4.16)+3(0)=8.32
At (0,3.33) Max Z=2(0)+3(3.33)=9.99
At (1.92,2.69) Max Z=2(1.92)+3(2.69)=11.91

The optimum solution is x1=1.92, x2=2.69 and Max Z1=11.91.


Let ZU=11.91 be the initial upper bound.
The feasible solution by rounding off the solution gives the initial
lower bound ZL=11 (rounding off x1=1, x2=3). The optimal solution lies
between these two bounds.
Step:-02(Branching step)
Here both x1 and x2 are not integers, therefore we can select variable
for branching with highest fractional value, here x2 has more fractional
value compared to x1.
Solving the variable x2 for branching, divide the given problem into
two sub problem A and B to eliminate the fractional part of x2=2.69,
The new constraints to be added are x2  2 and x2  3 .
LP sub problem B LP sub problem C
Max Z=2x1+3x2, Max Z=2x1+3x2,
Subject to the conditions Subject to the conditions
6x1+5x2  25, 6x1+5x2  25,
x1+3x2  10 x1+3x2  10
x2  2 x2  3
and x1, x2  0 and integers and x1, x2  0 and integers
Draw the line x2=2-------(3) Draw the line x2=3--------(4)
It is the line parallel to x1 axis and It is a line parallel to x1 axis and
passes through (0,2) passes through (0,3)

The corresponding graph is given by

The solution to the sub The solution to the sub


problem B is given by equation (1) problem C is given by equation (2)
and (3) and (4)
Sub x2=2 in equation (1), we Sub x2=3 in equation (2), we
have 6x1+5(2)=25 =>x1=5/2 have x1+3(3)=10 =>x1=1
i.e (2.5, 2) and i.e (1, 3) and
Max Z2=2(2.5)+3(2)=11 Max Z3=2(1)+3(3)=11

Step:-03 (Bound step)


Rule :-The best integer solution gives the lower bound.
Here the best integer solution is x1=1, x2=3 and Max Z3=11
The value ZL=11 is the lower bound for the given LP problem.
(i.e the value of the objective function in the sub sequence steps
cannot be less than this)
Step:-04(Fathoming step)
Both the sub problems B and C gives same Z value.
In the sub problem C both the variables x1 and x2 are integer, so there
is no need to branch the sub problem C further.
Since ZL  Z3<ZU (11  11<11.91), therefore the new upper bound is
ZU=11.
In the sub problem B x1 is not an integer and since ZL  Z2( 11  11).
Therefore the sub problem B can be branch further.
Step:-05 (Branch step)
Let us divide the sub problem B into two sub problem namely D and
E by taking variable x1=2.5.
The new constraints to be added are x1  2 and x1  3 .
LP sub problem D LP sub problem E
Max Z=2x1+3x2, Max Z=2x1+3x2,
Subject to the conditions Subject to the conditions
6x1+5x2  25, 6x1+5x2  25,
x1+3x2  10 x1+3x2  10
x2  2 x2  2
x1  2 x1  3
and x1, x2  0 and integers and x1, x2  0 and integers
Draw the line x1=2-------(5) Draw the line x1=3------(6)
It is the line parallel to x2 axis and It is the line parallel to x2 axis and
passes through (2,0) passes through (3,0)
The solution to the sub The solution to the sub
problem D is given by equation (3) problem E is given by equation (1)
and (5) and (6)
i.e x1=2 and x2=2 Sub x1=3 in equation (1), we
have 6(3)+5x2=25 =>x2=1.4
Max Z4=2(2)+3(2)=10 i.e (3, 1.4) and
Max Z5=2(3)+3(1.4)=10.2

Step:-05(Bound step)
Rule :-The best integer solution gives the lower bound.
Here the best integer solution is x1=2, x2=2 and Max Z4=10
Step:-06(Bound step)
The solution to the LP sub problem D is integer feasible, but Z4< ZL
(10<11), and since value of lower bound remain unchanged (ZL=11).
therefore the sub problem D is not considered for further branching.
Since solution of sub problem E is non integer (x2 is not integer), So it
can be further branched with variable x2, but Z5<ZL (10.2<11), therefore
sub problem E is not considered for further branching.
Thus the integer solution corresponding to the current lower bound
is the optimal solution.
Hence the integer optimal solution is corresponding to sub problem C
and is given by x1=1, x2=3 and Max Z=11
The entire branch and bound procedure can be represented by
following enumeration tree. Each node is a sub problem.

Note:-
(i) Suppose if both the sub problem gives non integer solution, then
always the sub problem which has maximum objective value has to
branched further.
(ii) Suppose if one of the sub problem has no feasible solution and other
has feasible solution but not integer and any other sub problem of same

You might also like