SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Branch and Bound Algorithm:

  Its Application to Binary Integer
            Programming
             A.Tannouri
Concept
The idea behind the branch and bound
  algorithm is to “Divide and Conquer”. This is
  achieved by:
                   • Branching
                    • Bounding
                   • Fathoming
Branching
• Break the original problem into more manageable
  smaller parts called sub-problems
• Do this by fixing one of the variables (say x1) so
  that x1=0 for the first sub-problem and x1=1 in the
  second sub-problem
                              X1 = 0
    Whole
  Problem
  with ALL
   feasible
  solutions                   X1 = 1
Bounding
• The goal is to find a bound on how good the best
  feasible solution can be for each sub-problem.
• This is done by relaxing a constraint (typically the
  binary constraint). This type of relaxation is called
  LP relaxation.
• Using the simplex method solve the problem and
  get the value of Z
• Any Z value that is found as a can be rounded
  down to make it an integer if it isn’t one already
Fathoming
• The goal is to determine what sub-problems
  we can dismiss from consideration. If it is
  “fathomed” then it is dismissed
• A sub-problem is fathomed if it passes one of
  the following tests:
     • Test 1: Its bound ≤ Z*
     • Test 2: Its LP relaxation has no feasible solutions
     • Test 3: If an integer is obtained as the optimal solution
       for the LP relaxation
Summary
1.   Find the bound for the original problem by using LP relaxation and
     set Z=Z*
2.   Branch the problem creating 2 sub-problems and set x1=0 for the
     first sub-problem and x1=1 for the second problem
3.   Bound the problem by using the simplex method to its LP relaxation
     to get an optimal solution, if it’s not an integer then round down.
     The integer value of Z is the bound for the sub-problem
4.   Apply the fathoming tests to discard sub-problems
5.   Repeat step 2 by fixing the next variable (x2,x3,…,xn) and setting it
     equal to 0 and 1 for the next two sub-problems and continue with
     step 3 and 4.
6.   Continue this process until there are no remaining sub-problems.
     Once this occurs the current incumbent (Z*) is optimal
Initial Problem
• Maximize: Z=9x1+5x2+6x3+4x4
• Sub. to
  – (1) 6x1+3x2+5x3+2x4 ≤10
  – (2)              x3+ x4 ≤1
  – (3) –x1        + x3      ≤0
  – (4)        -x2       + x4≤0
  – (5) xj is binary, j=1, 2, 3, 4
Sub-problem 1
• Let x1=0
• Maximize: Z=5x2+6x3+4x4
• Sub. to
  – (1) 3x2+5x3+2x4 ≤10
  – (2)         x3+ x4 ≤1
  – (3)       + x3      ≤0
  – (4) -x2        + x4≤0
  – (5) xj is binary, j=2, 3, 4
Sub-problem 2
• Let x1=1
• Maximize: Z=9+5x2+6x3+4x4
• Sub. to
  – (1) 3x2+5x3+2x4 ≤4
  – (2)         x3+ x4 ≤1
  – (3)       + x3      ≤1
  – (4) -x2        + x4 ≤0
  – (5) xj is binary, j=2, 3, 4
Relaxation
• To obtain a bound on how good the best
  feasible solution is, (5) is “relaxed”
  – New (5) 0 ≤ xj ≤ 1, for j=1, 2, 3, 4
• By the simplex method…
  – (x1, x2, x3, x4)=(5/6, 1, 0, 1)
  – Z=16.5
• Bound for the problem: Z≤16
Relaxation of Sub-problems
• Sub-problem 1: (5) x1 ≤ 1 and 0 ≤ xj ≤ 1
  – By the simplex method…
     • (x1, x2, x3, x4)=(0, 1, 0, 1)
     • Z=9
• Sub-problem 2: (5) 0 ≤ x1 and 0 ≤ xj ≤ 1
  – By the simplex method…
     • (x1, x2, x3, x4)=(1, 4/5, 0, 4/5)
     • Z=16.5             Z = 16 (since Z must be integer)
• Go with sub-problem 2; x1=1
Iteration 1 Branching

      X1=0

      9

All

16
      X1=1

      16
Iteration 2;
                  Sub-problem 3
• Let x1=1, x2=0
• Maximize: Z=9+6x3+4x4
• Sub to
  – (1) 5x3+2x4 ≤4
  – (2) x3+ x4 ≤1
  – (3) x3         ≤1
  – (4)         x4 ≤0
  – (5) xj is binary, j=3, 4
Iteration 2;
                  Sub-problem 4
• Let x1=1, x2=1
• Maximize: Z=14+6x3+4x4
• Sub to
  – (1) 5x3+2x4 ≤1
  – (2) x3+ x4 ≤1
  – (3) x3         ≤1
  – (4)         x4 ≤1
  – (5) xj is binary, j=3, 4
Relaxation of Sub-problems
• Sub-problem 3: (5) x1 ≤ 1, x2 ≤ 0, and 0 ≤ xj ≤ 1
  – By the simplex method…
     • (x1, x2, x3, x4)=(1, 0, 4/5, 0)
     • Z=13 4/5
• Sub-problem 4: (5) x1 ≤ 1, x2 ≤ 1, and 0 ≤ xj ≤ 1
  – By the simplex method…
     • (x1, x2, x3, x4)=(1, 1, 0, 1/2)
     • Z=16
• Go with sub-problem 4; x1=1, x2=1
Iteration 2

      X1=0

      9

All            X2=0

16             13
      X1=1

      16
               x2=1

               16
Iteration 3;
                 Sub-problem 5
• Let x1=1, x2=1 , x3=0
• Maximize: Z=14+4x4
• Sub to
  – (1) 2x4 ≤1
  – (2) x4 ≤1
  – (4) x4 ≤1
  – (5) x4 is binary
Iteration 3;
                 Sub-problem 6
• Let x1=1, x2=1 , x3=1
• Maximize: Z=20+4x4
• Sub to
  – (1) 2x4 ≤-4
  – (2) x4 ≤0
  – (4) x4 ≤1
  – (5) x4 is binary
Relaxation of Sub-problems
• Sub-problem 5: (5) x1 ≤ 1, x2 ≤ 1, x3 ≤ 0, and 0 ≤
  xj ≤ 1
  – By the simplex method…
     • (x1, x2, x3, x4)=(1, 1, 0, 1/2)
     • Z=16
• Sub-problem 6: (5) x1 ≤ 1, x2 ≤ 1, x3 ≤ 1, and 0 ≤
  xj ≤ 1
  – There are no feasible solutions
• Go with sub-problem 5; x1=1, x2=1 , x3=0
Iteration 3

      X1=0

      9

All            X2=0

16             13
      X1=1
                      X3=0
      16
                      16
               x2=1

               16     X3=1
Iteration 4
• x4=0
  – (x1, x2, x3, x4)=(1, 1, 0, 0) is feasible
  – Z=14
• x4=1
  – (x1, x2, x3, x4)=(1, 1, 0, 1) is infeasible
Iteration 4

      X1=0

      9

All            X2=0
                             X4=0
16             13            14
      X1=1
                      X3=0
      16
                      16     X4=1
               x2=1

               16     X3=1
16                   Branching Tree for example

                               All

                                                             16
       X1 = 0                                       X1 = 1

        9
                                                                            16
                               X2 = 0                             X2 = 1

                          1
Optimal Solution:         3
                                        16        X3 = 0                         X3 = 1
(X1, X2, X3, X4) = (1,1,0,0)

And Z = 14                                                                       infeasible

                               X4 = 0                         X4 = 1

                          14 = Z*
                                                              infeasible

Weitere ähnliche Inhalte

Was ist angesagt?

4.1 implicit differentiation
4.1 implicit differentiation4.1 implicit differentiation
4.1 implicit differentiationdicosmo178
 
Multiplying & dividing rational expressions
Multiplying & dividing rational expressionsMultiplying & dividing rational expressions
Multiplying & dividing rational expressionsDaisyListening
 
Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1Dr. Nirav Vyas
 
Solve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares MethodSolve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares MethodSuddhasheel GHOSH, PhD
 
Lesson 11: Implicit Differentiation
Lesson 11: Implicit DifferentiationLesson 11: Implicit Differentiation
Lesson 11: Implicit DifferentiationMatthew Leingang
 
Ma 104 differential equations
Ma 104 differential equationsMa 104 differential equations
Ma 104 differential equationsarvindpt1
 
Implicit differentiation
Implicit differentiationImplicit differentiation
Implicit differentiationSporsho
 
Higherorder non homogeneous partial differrential equations (Maths 3) Power P...
Higherorder non homogeneous partial differrential equations (Maths 3) Power P...Higherorder non homogeneous partial differrential equations (Maths 3) Power P...
Higherorder non homogeneous partial differrential equations (Maths 3) Power P...vrajes
 
Constant-Coefficient Linear Differential Equations
Constant-Coefficient Linear Differential  EquationsConstant-Coefficient Linear Differential  Equations
Constant-Coefficient Linear Differential Equationsashikul akash
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Power Series - Legendre Polynomial - Bessel's Equation
Power Series - Legendre Polynomial - Bessel's EquationPower Series - Legendre Polynomial - Bessel's Equation
Power Series - Legendre Polynomial - Bessel's EquationArijitDhali
 
Algebra 1 lessonplan powerpoint
Algebra 1 lessonplan powerpointAlgebra 1 lessonplan powerpoint
Algebra 1 lessonplan powerpointMichelle Zinser
 
Doe02 statistics
Doe02 statisticsDoe02 statistics
Doe02 statisticsArif Rahman
 

Was ist angesagt? (20)

4.1 implicit differentiation
4.1 implicit differentiation4.1 implicit differentiation
4.1 implicit differentiation
 
Multiplying & dividing rational expressions
Multiplying & dividing rational expressionsMultiplying & dividing rational expressions
Multiplying & dividing rational expressions
 
Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1
 
Solve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares MethodSolve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares Method
 
Lesson 11: Implicit Differentiation
Lesson 11: Implicit DifferentiationLesson 11: Implicit Differentiation
Lesson 11: Implicit Differentiation
 
Ma 104 differential equations
Ma 104 differential equationsMa 104 differential equations
Ma 104 differential equations
 
Section3 stochastic
Section3 stochasticSection3 stochastic
Section3 stochastic
 
Implicit differentiation
Implicit differentiationImplicit differentiation
Implicit differentiation
 
Section2 stochastic
Section2 stochasticSection2 stochastic
Section2 stochastic
 
Hw 4 sol
Hw 4 solHw 4 sol
Hw 4 sol
 
Higherorder non homogeneous partial differrential equations (Maths 3) Power P...
Higherorder non homogeneous partial differrential equations (Maths 3) Power P...Higherorder non homogeneous partial differrential equations (Maths 3) Power P...
Higherorder non homogeneous partial differrential equations (Maths 3) Power P...
 
Constant-Coefficient Linear Differential Equations
Constant-Coefficient Linear Differential  EquationsConstant-Coefficient Linear Differential  Equations
Constant-Coefficient Linear Differential Equations
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
maths
maths maths
maths
 
Power Series - Legendre Polynomial - Bessel's Equation
Power Series - Legendre Polynomial - Bessel's EquationPower Series - Legendre Polynomial - Bessel's Equation
Power Series - Legendre Polynomial - Bessel's Equation
 
Algebra 1 lessonplan powerpoint
Algebra 1 lessonplan powerpointAlgebra 1 lessonplan powerpoint
Algebra 1 lessonplan powerpoint
 
0906 ch 9 day 6
0906 ch 9 day 60906 ch 9 day 6
0906 ch 9 day 6
 
Doe02 statistics
Doe02 statisticsDoe02 statistics
Doe02 statistics
 
Reduction forumla
Reduction forumlaReduction forumla
Reduction forumla
 
Legendre Function
Legendre FunctionLegendre Function
Legendre Function
 

Andere mochten auch

Travelling Salesperson Problem-Branch & Bound
Travelling Salesperson Problem-Branch & BoundTravelling Salesperson Problem-Branch & Bound
Travelling Salesperson Problem-Branch & BoundSharmilaChidaravalli
 
Travelling Salesman
Travelling SalesmanTravelling Salesman
Travelling SalesmanShuvojit Kar
 
Branch and bounding : Data structures
Branch and bounding : Data structuresBranch and bounding : Data structures
Branch and bounding : Data structuresKàŕtheek Jåvvàjí
 
Branch and bound technique
Branch and bound techniqueBranch and bound technique
Branch and bound techniqueishmecse13
 
Branch and bound technique
Branch and bound techniqueBranch and bound technique
Branch and bound techniqueishmecse13
 
Back tracking and branch and bound class 20
Back tracking and branch and bound class 20Back tracking and branch and bound class 20
Back tracking and branch and bound class 20Kumar
 
8 queens problem using back tracking
8 queens problem using back tracking8 queens problem using back tracking
8 queens problem using back trackingTech_MX
 
5.3 dynamic programming 03
5.3 dynamic programming 035.3 dynamic programming 03
5.3 dynamic programming 03Krish_ver2
 
Integer programming branch and bound
Integer programming   branch and boundInteger programming   branch and bound
Integer programming branch and boundAlejandro Angulo
 

Andere mochten auch (12)

Travelling Salesperson Problem-Branch & Bound
Travelling Salesperson Problem-Branch & BoundTravelling Salesperson Problem-Branch & Bound
Travelling Salesperson Problem-Branch & Bound
 
Travelling Salesman
Travelling SalesmanTravelling Salesman
Travelling Salesman
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 
Branch & bound
Branch & boundBranch & bound
Branch & bound
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 
Branch and bounding : Data structures
Branch and bounding : Data structuresBranch and bounding : Data structures
Branch and bounding : Data structures
 
Branch and bound technique
Branch and bound techniqueBranch and bound technique
Branch and bound technique
 
Branch and bound technique
Branch and bound techniqueBranch and bound technique
Branch and bound technique
 
Back tracking and branch and bound class 20
Back tracking and branch and bound class 20Back tracking and branch and bound class 20
Back tracking and branch and bound class 20
 
8 queens problem using back tracking
8 queens problem using back tracking8 queens problem using back tracking
8 queens problem using back tracking
 
5.3 dynamic programming 03
5.3 dynamic programming 035.3 dynamic programming 03
5.3 dynamic programming 03
 
Integer programming branch and bound
Integer programming   branch and boundInteger programming   branch and bound
Integer programming branch and bound
 

Ähnlich wie Branch&bound at

Notes solving polynomial equations
Notes   solving polynomial equationsNotes   solving polynomial equations
Notes solving polynomial equationsLori Rapp
 
Algebra lesson 4.2 zeroes of quadratic functions
Algebra lesson 4.2 zeroes of quadratic functionsAlgebra lesson 4.2 zeroes of quadratic functions
Algebra lesson 4.2 zeroes of quadratic functionspipamutuc
 
Factors of po lynomials + solving equations
Factors of po lynomials + solving equationsFactors of po lynomials + solving equations
Factors of po lynomials + solving equationsShaun Wilson
 
Operational research
Operational researchOperational research
Operational researchAlbi Thomas
 
Solving quadratic equations
Solving quadratic equationsSolving quadratic equations
Solving quadratic equationskbrach
 
LP special cases and Duality.pptx
LP special cases and Duality.pptxLP special cases and Duality.pptx
LP special cases and Duality.pptxSnehal Athawale
 
Zero product property remediation notes
Zero product property remediation notesZero product property remediation notes
Zero product property remediation notesMichelle Barnhill
 
Module 2 polynomial functions
Module 2   polynomial functionsModule 2   polynomial functions
Module 2 polynomial functionsdionesioable
 
5.1 analysis of function i
5.1 analysis of function i5.1 analysis of function i
5.1 analysis of function idicosmo178
 
Quadratic Inequalities.pptx
Quadratic Inequalities.pptxQuadratic Inequalities.pptx
Quadratic Inequalities.pptxaimeedurano
 
LAGRANGE_MULTIPLIER.ppt
LAGRANGE_MULTIPLIER.pptLAGRANGE_MULTIPLIER.ppt
LAGRANGE_MULTIPLIER.pptMSPrasad7
 
Application of derivatives 2 maxima and minima
Application of derivatives 2  maxima and minimaApplication of derivatives 2  maxima and minima
Application of derivatives 2 maxima and minimasudersana viswanathan
 
Solving polynomial equations in factored form
Solving polynomial equations in factored formSolving polynomial equations in factored form
Solving polynomial equations in factored formListeningDaisy
 

Ähnlich wie Branch&bound at (20)

Notes solving polynomial equations
Notes   solving polynomial equationsNotes   solving polynomial equations
Notes solving polynomial equations
 
Ch20 20
Ch20 20Ch20 20
Ch20 20
 
Lagrange_Multipliers.pdf
Lagrange_Multipliers.pdfLagrange_Multipliers.pdf
Lagrange_Multipliers.pdf
 
Algebra lesson 4.2 zeroes of quadratic functions
Algebra lesson 4.2 zeroes of quadratic functionsAlgebra lesson 4.2 zeroes of quadratic functions
Algebra lesson 4.2 zeroes of quadratic functions
 
Zeros of p(x)
Zeros of p(x)Zeros of p(x)
Zeros of p(x)
 
Polynomial math
Polynomial mathPolynomial math
Polynomial math
 
Factors of po lynomials + solving equations
Factors of po lynomials + solving equationsFactors of po lynomials + solving equations
Factors of po lynomials + solving equations
 
Operational research
Operational researchOperational research
Operational research
 
Solving quadratic equations
Solving quadratic equationsSolving quadratic equations
Solving quadratic equations
 
LP special cases and Duality.pptx
LP special cases and Duality.pptxLP special cases and Duality.pptx
LP special cases and Duality.pptx
 
functions review
functions reviewfunctions review
functions review
 
Feb6
Feb6Feb6
Feb6
 
Pc 9-5.ppt
Pc 9-5.pptPc 9-5.ppt
Pc 9-5.ppt
 
Zero product property remediation notes
Zero product property remediation notesZero product property remediation notes
Zero product property remediation notes
 
Module 2 polynomial functions
Module 2   polynomial functionsModule 2   polynomial functions
Module 2 polynomial functions
 
5.1 analysis of function i
5.1 analysis of function i5.1 analysis of function i
5.1 analysis of function i
 
Quadratic Inequalities.pptx
Quadratic Inequalities.pptxQuadratic Inequalities.pptx
Quadratic Inequalities.pptx
 
LAGRANGE_MULTIPLIER.ppt
LAGRANGE_MULTIPLIER.pptLAGRANGE_MULTIPLIER.ppt
LAGRANGE_MULTIPLIER.ppt
 
Application of derivatives 2 maxima and minima
Application of derivatives 2  maxima and minimaApplication of derivatives 2  maxima and minima
Application of derivatives 2 maxima and minima
 
Solving polynomial equations in factored form
Solving polynomial equations in factored formSolving polynomial equations in factored form
Solving polynomial equations in factored form
 

Kürzlich hochgeladen

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 

Kürzlich hochgeladen (20)

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 

Branch&bound at

  • 1. Branch and Bound Algorithm: Its Application to Binary Integer Programming A.Tannouri
  • 2. Concept The idea behind the branch and bound algorithm is to “Divide and Conquer”. This is achieved by: • Branching • Bounding • Fathoming
  • 3. Branching • Break the original problem into more manageable smaller parts called sub-problems • Do this by fixing one of the variables (say x1) so that x1=0 for the first sub-problem and x1=1 in the second sub-problem X1 = 0 Whole Problem with ALL feasible solutions X1 = 1
  • 4. Bounding • The goal is to find a bound on how good the best feasible solution can be for each sub-problem. • This is done by relaxing a constraint (typically the binary constraint). This type of relaxation is called LP relaxation. • Using the simplex method solve the problem and get the value of Z • Any Z value that is found as a can be rounded down to make it an integer if it isn’t one already
  • 5. Fathoming • The goal is to determine what sub-problems we can dismiss from consideration. If it is “fathomed” then it is dismissed • A sub-problem is fathomed if it passes one of the following tests: • Test 1: Its bound ≤ Z* • Test 2: Its LP relaxation has no feasible solutions • Test 3: If an integer is obtained as the optimal solution for the LP relaxation
  • 6. Summary 1. Find the bound for the original problem by using LP relaxation and set Z=Z* 2. Branch the problem creating 2 sub-problems and set x1=0 for the first sub-problem and x1=1 for the second problem 3. Bound the problem by using the simplex method to its LP relaxation to get an optimal solution, if it’s not an integer then round down. The integer value of Z is the bound for the sub-problem 4. Apply the fathoming tests to discard sub-problems 5. Repeat step 2 by fixing the next variable (x2,x3,…,xn) and setting it equal to 0 and 1 for the next two sub-problems and continue with step 3 and 4. 6. Continue this process until there are no remaining sub-problems. Once this occurs the current incumbent (Z*) is optimal
  • 7. Initial Problem • Maximize: Z=9x1+5x2+6x3+4x4 • Sub. to – (1) 6x1+3x2+5x3+2x4 ≤10 – (2) x3+ x4 ≤1 – (3) –x1 + x3 ≤0 – (4) -x2 + x4≤0 – (5) xj is binary, j=1, 2, 3, 4
  • 8. Sub-problem 1 • Let x1=0 • Maximize: Z=5x2+6x3+4x4 • Sub. to – (1) 3x2+5x3+2x4 ≤10 – (2) x3+ x4 ≤1 – (3) + x3 ≤0 – (4) -x2 + x4≤0 – (5) xj is binary, j=2, 3, 4
  • 9. Sub-problem 2 • Let x1=1 • Maximize: Z=9+5x2+6x3+4x4 • Sub. to – (1) 3x2+5x3+2x4 ≤4 – (2) x3+ x4 ≤1 – (3) + x3 ≤1 – (4) -x2 + x4 ≤0 – (5) xj is binary, j=2, 3, 4
  • 10. Relaxation • To obtain a bound on how good the best feasible solution is, (5) is “relaxed” – New (5) 0 ≤ xj ≤ 1, for j=1, 2, 3, 4 • By the simplex method… – (x1, x2, x3, x4)=(5/6, 1, 0, 1) – Z=16.5 • Bound for the problem: Z≤16
  • 11. Relaxation of Sub-problems • Sub-problem 1: (5) x1 ≤ 1 and 0 ≤ xj ≤ 1 – By the simplex method… • (x1, x2, x3, x4)=(0, 1, 0, 1) • Z=9 • Sub-problem 2: (5) 0 ≤ x1 and 0 ≤ xj ≤ 1 – By the simplex method… • (x1, x2, x3, x4)=(1, 4/5, 0, 4/5) • Z=16.5 Z = 16 (since Z must be integer) • Go with sub-problem 2; x1=1
  • 12. Iteration 1 Branching X1=0 9 All 16 X1=1 16
  • 13. Iteration 2; Sub-problem 3 • Let x1=1, x2=0 • Maximize: Z=9+6x3+4x4 • Sub to – (1) 5x3+2x4 ≤4 – (2) x3+ x4 ≤1 – (3) x3 ≤1 – (4) x4 ≤0 – (5) xj is binary, j=3, 4
  • 14. Iteration 2; Sub-problem 4 • Let x1=1, x2=1 • Maximize: Z=14+6x3+4x4 • Sub to – (1) 5x3+2x4 ≤1 – (2) x3+ x4 ≤1 – (3) x3 ≤1 – (4) x4 ≤1 – (5) xj is binary, j=3, 4
  • 15. Relaxation of Sub-problems • Sub-problem 3: (5) x1 ≤ 1, x2 ≤ 0, and 0 ≤ xj ≤ 1 – By the simplex method… • (x1, x2, x3, x4)=(1, 0, 4/5, 0) • Z=13 4/5 • Sub-problem 4: (5) x1 ≤ 1, x2 ≤ 1, and 0 ≤ xj ≤ 1 – By the simplex method… • (x1, x2, x3, x4)=(1, 1, 0, 1/2) • Z=16 • Go with sub-problem 4; x1=1, x2=1
  • 16. Iteration 2 X1=0 9 All X2=0 16 13 X1=1 16 x2=1 16
  • 17. Iteration 3; Sub-problem 5 • Let x1=1, x2=1 , x3=0 • Maximize: Z=14+4x4 • Sub to – (1) 2x4 ≤1 – (2) x4 ≤1 – (4) x4 ≤1 – (5) x4 is binary
  • 18. Iteration 3; Sub-problem 6 • Let x1=1, x2=1 , x3=1 • Maximize: Z=20+4x4 • Sub to – (1) 2x4 ≤-4 – (2) x4 ≤0 – (4) x4 ≤1 – (5) x4 is binary
  • 19. Relaxation of Sub-problems • Sub-problem 5: (5) x1 ≤ 1, x2 ≤ 1, x3 ≤ 0, and 0 ≤ xj ≤ 1 – By the simplex method… • (x1, x2, x3, x4)=(1, 1, 0, 1/2) • Z=16 • Sub-problem 6: (5) x1 ≤ 1, x2 ≤ 1, x3 ≤ 1, and 0 ≤ xj ≤ 1 – There are no feasible solutions • Go with sub-problem 5; x1=1, x2=1 , x3=0
  • 20. Iteration 3 X1=0 9 All X2=0 16 13 X1=1 X3=0 16 16 x2=1 16 X3=1
  • 21. Iteration 4 • x4=0 – (x1, x2, x3, x4)=(1, 1, 0, 0) is feasible – Z=14 • x4=1 – (x1, x2, x3, x4)=(1, 1, 0, 1) is infeasible
  • 22. Iteration 4 X1=0 9 All X2=0 X4=0 16 13 14 X1=1 X3=0 16 16 X4=1 x2=1 16 X3=1
  • 23. 16 Branching Tree for example All 16 X1 = 0 X1 = 1 9 16 X2 = 0 X2 = 1 1 Optimal Solution: 3 16 X3 = 0 X3 = 1 (X1, X2, X3, X4) = (1,1,0,0) And Z = 14 infeasible X4 = 0 X4 = 1 14 = Z* infeasible

Hinweis der Redaktion

  1. Because the problem is binary, set x1 to 0 and to 1 to create two sub-problems.
  2. Instead of solving the problem, we solve a more simple “relaxed” version of the problem. This is done by removing the most troublesome constraint; i.e. that xj is binary. Use the original problem to find the bound. Fathoming: Z*=16=incumbent
  3. Sub-problem 1 no longer needs to be considered, as 9 is not a better solution than 16 (the bound of the initial problem). Sub-problem 1 is fathomed/dismissed. We continue forward with sub-problem 2, x1=1
  4. Both of these are larger than 9 (x1=0), but sub-problem 4 (16) results in a larger value than sub-problem 3 (13 4/5). Neither sub-problems are fathomed at this point (they are larger than 9, have feasible solutions and include variables with non-interger values).
  5. Sub-problem 6 is infeasible and therefore fathomed/dismissed. Continue on with sub-problem 5
  6. X4=0 is the only feasible solution here, it is also the optimal solution for the problem. X4=0 passes test 3 (14 > 9), x4=1 passes test 2.Sub-problem 3: 13 <= 14; therefore sub-problem 3 is fathomed proving sub-problem 4 was the correct way to go.
  7. (x1, x2, x3, x4)=(1, 1, 0, 0) Z=14