SlideShare a Scribd company logo
1 of 16
Branch and Bound
Algorithms
Present by
Tina Yang
Qianmei Feng
 Branch and Bound is a general search method.
 Starting by considering the root problem (the original
problem with the complete feasible region), the lower-
bounding and upper-bounding procedures are applied
to the root problem.
 If the bounds match, then an optimal solution has been
found and the procedure terminates.
Introduction
 Otherwise, the feasible region is divided into two
or more regions, these subproblems partition the
feasible region.
 The algorithm is applied recursively to the
subproblems. If an optimal solution is found to a
subproblem, it is a feasible solution to the full
problem, but not necessarily globally optimal.
Introduction
 If the lower bound for a node exceeds the best known
feasible solution, no globally optimal solution can exist in
the subspace of the feasible region represented by the
node. Therefore, the node can be removed from
consideration.
 The search proceeds until all nodes have been solved or
pruned, or until some specified threshold is met between
the best solution found and the lower bounds on all
unsolved subproblems.
Introduction
Algorithm for LP-Based
Branch and Bound
Max z =cj xj
s.t. aij xj ≤ bi i = 1,…,m
xj ≥ 0 j = 1,…, n
Lj ≤ xj ≤ Uj j = 1,…, n
xj are integers j = 1,…, n
Algorithm for LP-Based
Branch and Bound
Step 0: Initialization. Let the master list initially
include only the original linear program,
let t=1, and z1 = -∞.
Step 1: Branching. Stop if the master list is
empty. Otherwise select a program from
the master list.
Algorithm for LP-Based
Branch and Bound
Step 2: Relaxation. Solve the problem taken from the master
list. If the problem has no feasible solution, or if its
objective function value z is less than zt (this branch
has been fathomed), let zt+1 = zt and go to Step 1.
Otherwise go to Step 3.
Step 3: If the solution to the solved LP satisfies the integer
constraints, then store the solution and let zt+1 equal
the objective function value for the solution. Since
this branch has been fathomed, go to Step 1. If the
integer condition is not satisfied, go to Step 4.
Algorithm for LP-Based
Branch and Bound
Step 4: Separation. Select any variable xj whose value bj
in the current solution does not satisfy the
integer requirement. Add two problems to the
master list; these problems are identical to the
one just solved except that in one we add:
xj ≥ [bj ]+1
and in the other we add:
xj ≤ [bj ]
Let zt+1 = zt and go to Step 1.
Example
Max Z = 21x1+11x2
s.t. 7x1+4x2 ≤13
x1 ≥0, x2 ≥0
x1 ,x2 are integers
Example (cont.)
 Step 0: Set Z1 = -. Create Problem 1.
 Step 1: Remove Problem 1
from the master list.
 Step 2: Solve Problem 1.
 Step 3: Branch on X1, since
X1 not integer-valued.
 Step 4: Create Problem 2 & 3.
Place on master list.
Example (cont.)
 Step 0: Set Z2 = -.
 Step 1: Remove Problem 2
from the master list.
 Step 2: Solve Problem 2.
 Step 3: No feasible solution.
Stop.
Example (cont.)
 Step 0: Set Z3 = -
 Step 1: Remove Problem 3
from the master list
 Step 2: Solve Problem 3
 Step 3: Branch on X2, since
X2 not integer-valued
 Step 4: Create Problem 4 & 5
place on master list
Example (cont.)
 Step 0: Set Z4 = -.
 Step 1: Remove Problem 4
from the master list.
 Step 2: Solve Problem 4.
 Step 3: Solution satisfies integer
constraint. Record the
solution and stop!
Example (cont.)
 Following the same steps,
terminate computations
until master list is empty.
Branch and Bound Codes in Matlab
 Available Matlab code for Branch and Bound algorithm – BNB on
the following ftp site:
ftp://ftp.mathworks.com/pub/contrib/v5/optim/
 The algorithm detects 0-1 variables with constrains like:
x(a)+x(b)+x(c)+..=1 and adapts the branching to it.
 To function BNB, you need:
• Matlab 5.3 or newer
• Optimization Toolbox 2.0
• The Courier-LD font
Conclusion
 Although a number of algorithms have been proposed
for the integer linear programming problem, the
branch-and-bound technique has proven to be
reasonably efficient on practical problems, and it has
the added advantage that it solves continuous linear
programs as sub problems.
 The technique is also used in a lot of software in
global optimization.

More Related Content

Similar to BranchandBoundAlgorithms[1].ppt

Module 2_ Divide and Conquer Approach.pptx
Module 2_ Divide and Conquer Approach.pptxModule 2_ Divide and Conquer Approach.pptx
Module 2_ Divide and Conquer Approach.pptxnikshaikh786
 
fdocuments.in_branch-and-bound-design-and-analysis-of-alogorithm.ppt
fdocuments.in_branch-and-bound-design-and-analysis-of-alogorithm.pptfdocuments.in_branch-and-bound-design-and-analysis-of-alogorithm.ppt
fdocuments.in_branch-and-bound-design-and-analysis-of-alogorithm.pptKartikGupta711
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy methodhodcsencet
 
Comparison of tsp algorithms
Comparison of tsp algorithmsComparison of tsp algorithms
Comparison of tsp algorithmsKaal Nath
 
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLABAn Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLABmathsjournal
 
Solving linear programming model by Simplex method.pptx
Solving linear programming model by Simplex method.pptxSolving linear programming model by Simplex method.pptx
Solving linear programming model by Simplex method.pptxmahnish khatri
 
Chapter 4 Simplex Method ppt
Chapter 4  Simplex Method pptChapter 4  Simplex Method ppt
Chapter 4 Simplex Method pptDereje Tigabu
 
final-ppts-daa-unit-iii-greedy-method.pdf
final-ppts-daa-unit-iii-greedy-method.pdffinal-ppts-daa-unit-iii-greedy-method.pdf
final-ppts-daa-unit-iii-greedy-method.pdfJasmineSayyed3
 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game TheoryPurnima Pandit
 
Algorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codeAlgorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codehamza javed
 
Solving linear programming model by simplex method
Solving linear programming model by simplex methodSolving linear programming model by simplex method
Solving linear programming model by simplex methodRoshan Kumar Patel
 
Undecidable Problems - COPING WITH THE LIMITATIONS OF ALGORITHM POWER
Undecidable Problems - COPING WITH THE LIMITATIONS OF ALGORITHM POWERUndecidable Problems - COPING WITH THE LIMITATIONS OF ALGORITHM POWER
Undecidable Problems - COPING WITH THE LIMITATIONS OF ALGORITHM POWERmuthukrishnavinayaga
 
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB mathsjournal
 
An Introduction to the Finite Element Method
An Introduction to the Finite Element MethodAn Introduction to the Finite Element Method
An Introduction to the Finite Element MethodMohammad Tawfik
 
Chapter 3.Simplex Method hand out last.pdf
Chapter 3.Simplex Method hand out last.pdfChapter 3.Simplex Method hand out last.pdf
Chapter 3.Simplex Method hand out last.pdfTsegay Berhe
 
SIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxSIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxTista3
 

Similar to BranchandBoundAlgorithms[1].ppt (20)

Daa unit 1
Daa unit 1Daa unit 1
Daa unit 1
 
Module 2_ Divide and Conquer Approach.pptx
Module 2_ Divide and Conquer Approach.pptxModule 2_ Divide and Conquer Approach.pptx
Module 2_ Divide and Conquer Approach.pptx
 
fdocuments.in_branch-and-bound-design-and-analysis-of-alogorithm.ppt
fdocuments.in_branch-and-bound-design-and-analysis-of-alogorithm.pptfdocuments.in_branch-and-bound-design-and-analysis-of-alogorithm.ppt
fdocuments.in_branch-and-bound-design-and-analysis-of-alogorithm.ppt
 
35 algorithm-types
35 algorithm-types35 algorithm-types
35 algorithm-types
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
 
Comparison of tsp algorithms
Comparison of tsp algorithmsComparison of tsp algorithms
Comparison of tsp algorithms
 
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLABAn Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
 
Solving linear programming model by Simplex method.pptx
Solving linear programming model by Simplex method.pptxSolving linear programming model by Simplex method.pptx
Solving linear programming model by Simplex method.pptx
 
Chapter 4 Simplex Method ppt
Chapter 4  Simplex Method pptChapter 4  Simplex Method ppt
Chapter 4 Simplex Method ppt
 
Linear programming
Linear programmingLinear programming
Linear programming
 
Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex Algorithm
 
final-ppts-daa-unit-iii-greedy-method.pdf
final-ppts-daa-unit-iii-greedy-method.pdffinal-ppts-daa-unit-iii-greedy-method.pdf
final-ppts-daa-unit-iii-greedy-method.pdf
 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game Theory
 
Algorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codeAlgorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo code
 
Solving linear programming model by simplex method
Solving linear programming model by simplex methodSolving linear programming model by simplex method
Solving linear programming model by simplex method
 
Undecidable Problems - COPING WITH THE LIMITATIONS OF ALGORITHM POWER
Undecidable Problems - COPING WITH THE LIMITATIONS OF ALGORITHM POWERUndecidable Problems - COPING WITH THE LIMITATIONS OF ALGORITHM POWER
Undecidable Problems - COPING WITH THE LIMITATIONS OF ALGORITHM POWER
 
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
 
An Introduction to the Finite Element Method
An Introduction to the Finite Element MethodAn Introduction to the Finite Element Method
An Introduction to the Finite Element Method
 
Chapter 3.Simplex Method hand out last.pdf
Chapter 3.Simplex Method hand out last.pdfChapter 3.Simplex Method hand out last.pdf
Chapter 3.Simplex Method hand out last.pdf
 
SIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxSIMPLEX METHOD.pptx
SIMPLEX METHOD.pptx
 

More from chetanvchaudhari

More from chetanvchaudhari (8)

chapter1.ppt
chapter1.pptchapter1.ppt
chapter1.ppt
 
auditing-190520092523.pdf
auditing-190520092523.pdfauditing-190520092523.pdf
auditing-190520092523.pdf
 
chapter2-190516054412.pdf
chapter2-190516054412.pdfchapter2-190516054412.pdf
chapter2-190516054412.pdf
 
graph coloring.ppt
graph coloring.pptgraph coloring.ppt
graph coloring.ppt
 
chapter16[1].ppt
chapter16[1].pptchapter16[1].ppt
chapter16[1].ppt
 
np complete.ppt
np complete.pptnp complete.ppt
np complete.ppt
 
M.tech computerunitwise
M.tech computerunitwiseM.tech computerunitwise
M.tech computerunitwise
 
Format for address_change_by_mpmla_gazzeted_officer
Format for address_change_by_mpmla_gazzeted_officerFormat for address_change_by_mpmla_gazzeted_officer
Format for address_change_by_mpmla_gazzeted_officer
 

Recently uploaded

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptAfnanAhmad53
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxNANDHAKUMARA10
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfsumitt6_25730773
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...vershagrag
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...gragchanchal546
 
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptxrouholahahmadi9876
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 

Recently uploaded (20)

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .ppt
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
 
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 

BranchandBoundAlgorithms[1].ppt

  • 1. Branch and Bound Algorithms Present by Tina Yang Qianmei Feng
  • 2.  Branch and Bound is a general search method.  Starting by considering the root problem (the original problem with the complete feasible region), the lower- bounding and upper-bounding procedures are applied to the root problem.  If the bounds match, then an optimal solution has been found and the procedure terminates. Introduction
  • 3.  Otherwise, the feasible region is divided into two or more regions, these subproblems partition the feasible region.  The algorithm is applied recursively to the subproblems. If an optimal solution is found to a subproblem, it is a feasible solution to the full problem, but not necessarily globally optimal. Introduction
  • 4.  If the lower bound for a node exceeds the best known feasible solution, no globally optimal solution can exist in the subspace of the feasible region represented by the node. Therefore, the node can be removed from consideration.  The search proceeds until all nodes have been solved or pruned, or until some specified threshold is met between the best solution found and the lower bounds on all unsolved subproblems. Introduction
  • 5. Algorithm for LP-Based Branch and Bound Max z =cj xj s.t. aij xj ≤ bi i = 1,…,m xj ≥ 0 j = 1,…, n Lj ≤ xj ≤ Uj j = 1,…, n xj are integers j = 1,…, n
  • 6. Algorithm for LP-Based Branch and Bound Step 0: Initialization. Let the master list initially include only the original linear program, let t=1, and z1 = -∞. Step 1: Branching. Stop if the master list is empty. Otherwise select a program from the master list.
  • 7. Algorithm for LP-Based Branch and Bound Step 2: Relaxation. Solve the problem taken from the master list. If the problem has no feasible solution, or if its objective function value z is less than zt (this branch has been fathomed), let zt+1 = zt and go to Step 1. Otherwise go to Step 3. Step 3: If the solution to the solved LP satisfies the integer constraints, then store the solution and let zt+1 equal the objective function value for the solution. Since this branch has been fathomed, go to Step 1. If the integer condition is not satisfied, go to Step 4.
  • 8. Algorithm for LP-Based Branch and Bound Step 4: Separation. Select any variable xj whose value bj in the current solution does not satisfy the integer requirement. Add two problems to the master list; these problems are identical to the one just solved except that in one we add: xj ≥ [bj ]+1 and in the other we add: xj ≤ [bj ] Let zt+1 = zt and go to Step 1.
  • 9. Example Max Z = 21x1+11x2 s.t. 7x1+4x2 ≤13 x1 ≥0, x2 ≥0 x1 ,x2 are integers
  • 10. Example (cont.)  Step 0: Set Z1 = -. Create Problem 1.  Step 1: Remove Problem 1 from the master list.  Step 2: Solve Problem 1.  Step 3: Branch on X1, since X1 not integer-valued.  Step 4: Create Problem 2 & 3. Place on master list.
  • 11. Example (cont.)  Step 0: Set Z2 = -.  Step 1: Remove Problem 2 from the master list.  Step 2: Solve Problem 2.  Step 3: No feasible solution. Stop.
  • 12. Example (cont.)  Step 0: Set Z3 = -  Step 1: Remove Problem 3 from the master list  Step 2: Solve Problem 3  Step 3: Branch on X2, since X2 not integer-valued  Step 4: Create Problem 4 & 5 place on master list
  • 13. Example (cont.)  Step 0: Set Z4 = -.  Step 1: Remove Problem 4 from the master list.  Step 2: Solve Problem 4.  Step 3: Solution satisfies integer constraint. Record the solution and stop!
  • 14. Example (cont.)  Following the same steps, terminate computations until master list is empty.
  • 15. Branch and Bound Codes in Matlab  Available Matlab code for Branch and Bound algorithm – BNB on the following ftp site: ftp://ftp.mathworks.com/pub/contrib/v5/optim/  The algorithm detects 0-1 variables with constrains like: x(a)+x(b)+x(c)+..=1 and adapts the branching to it.  To function BNB, you need: • Matlab 5.3 or newer • Optimization Toolbox 2.0 • The Courier-LD font
  • 16. Conclusion  Although a number of algorithms have been proposed for the integer linear programming problem, the branch-and-bound technique has proven to be reasonably efficient on practical problems, and it has the added advantage that it solves continuous linear programs as sub problems.  The technique is also used in a lot of software in global optimization.