Branch and cut: Difference between revisions
(Finished Problem) |
(done) |
||
Line 8: | Line 8: | ||
== Methodology & Algorithm == | == Methodology & Algorithm == | ||
=== Methodology | === Methodology === | ||
==== '''Most Infeasible Branching:''' ==== | |||
Most infeasible branching is a very popular method that picks the variable with fractional part closest to 0:5, i.e., si = 0:5 − |xAi − xAi− 0:5|. Most infeasible branching picks a variable where the least tendency can be recognized to which side the variable should be rounded. However, the performance of this method is not any superior to the rule of selecting a variable randomly. | Most infeasible branching is a very popular method that picks the variable with fractional part closest to 0:5, i.e., si = 0:5 − |xAi − xAi− 0:5|. Most infeasible branching picks a variable where the least tendency can be recognized to which side the variable should be rounded. However, the performance of this method is not any superior to the rule of selecting a variable randomly. | ||
'''Strong Branching:''' | ==== '''Strong Branching:''' ==== | ||
For each fractional variable, strong branching tests the dual bound increase by computing the LP relaxations result from the branching on that variable. As a branching variable for the current for the current node, the variable that leads to the largest increases is selected. Despite its obvious simplicity, strong branching is so far the most powerful branching technique in terms of the number of nodes available in the B&B tree, this effectiveness can however be accomplished only at the cost of computation. | For each fractional variable, strong branching tests the dual bound increase by computing the LP relaxations result from the branching on that variable. As a branching variable for the current for the current node, the variable that leads to the largest increases is selected. Despite its obvious simplicity, strong branching is so far the most powerful branching technique in terms of the number of nodes available in the B&B tree, this effectiveness can however be accomplished only at the cost of computation. | ||
'''Pseudo | ==== '''Pseudo Cost:''' ==== | ||
[[File:Image.png|thumb|Pure psuedo cost branching]] | [[File:Image.png|thumb|Pure psuedo cost branching]] | ||
Another way to approximate a relaxation value is by utilizing a pseudo cost method. The pseudo-cost of a variable is an estimate of the per unit change in the objective function from making the value of the variable to be rounded up or down. For each variable we choose variable with the largest estimated LP objective gain. | Another way to approximate a relaxation value is by utilizing a pseudo cost method. The pseudo-cost of a variable is an estimate of the per unit change in the objective function from making the value of the variable to be rounded up or down. For each variable we choose variable with the largest estimated LP objective gain. | ||
==='''Algorithm'''=== | |||
Branch and Cut for is a variation of the Branch and Bound algorithm. Branch and Cut incorporates Gomery cuts allowing the search space of the given problem. The standard Simplex Algorithm will be used to solve each Integer Linear Programming Problem (LP). | |||
Below is an Algorithm to utilize the Branch and Cut algorithm with Gomery cuts and Partitioning: | Below is an Algorithm to utilize the Branch and Cut algorithm with Gomery cuts and Partitioning: | ||
Line 38: | Line 36: | ||
While <math>L</math> is not empty (i is the index of the list of L), then: | While <math>L</math> is not empty (i is the index of the list of L), then: | ||
=====Step 3.1. Convert | =====Step 3.1. Convert to a Relaxation:===== | ||
=====Solve 3.2.===== | =====Solve 3.2.===== | ||
Solve for the Relaxed | Solve for the Relaxed | ||
Line 47: | Line 45: | ||
else: | else: | ||
Continue with solution Z. | Continue with solution Z. | ||
Step | |||
==== Step 4. Cutting Planes: ==== | |||
If a cutting plane is found: | If a cutting plane is found: | ||
then add to the linear Relaxation problem (as a constraint) and return to step 3.2 | then add to the linear Relaxation problem (as a constraint) and return to step 3.2 | ||
Line 53: | Line 52: | ||
Continue. | Continue. | ||
====Step | ====Step 5. Pruning and Fathoming:==== | ||
If Z^l >= Z: | If Z^l >= Z: | ||
return to step 3. | return to step 3. | ||
Line 61: | Line 60: | ||
Remove all Z^i from Set(L) | Remove all Z^i from Set(L) | ||
====Step | ====Step 6. Partition (reference EXTERNAL SOURCE)==== | ||
Let <math>D^{lj=k}_{j=1}</math> be a partition of the constraint set <math>D</math> of problem <math>LP_l</math>. Add problems <math>D^{lj=k}_{j=1}</math> to L, where <math>LP^l_j</math> is <math>LP_l</math> with feasible region restricted to <math>D^l_j</math> and <math>Z_{lj}</math> for j=1,...k is set to the value of <math>Z^l</math> for the parent problem l. Go to step 3. | Let <math>D^{lj=k}_{j=1}</math> be a partition of the constraint set <math>D</math> of problem <math>LP_l</math>. Add problems <math>D^{lj=k}_{j=1}</math> to L, where <math>LP^l_j</math> is <math>LP_l</math> with feasible region restricted to <math>D^l_j</math> and <math>Z_{lj}</math> for j=1,...k is set to the value of <math>Z^l</math> for the parent problem l. Go to step 3. | ||
==Numerical Example | ==Numerical Example== | ||
First, list out the problem: | First, list out the problem: | ||
Line 118: | Line 117: | ||
Solution with cut = Min = -24.4 (x1 = 2, x2 = 1.2) | Solution with cut = Min = -24.4 (x1 = 2, x2 = 1.2) | ||
==Application== | |||
==Application | |||
Several of the Branch and Cut applications are described below in more detail and how they can be used. These applications serve as methods in which Branch and Cut can be used to optimize various problems efficiently. | Several of the Branch and Cut applications are described below in more detail and how they can be used. These applications serve as methods in which Branch and Cut can be used to optimize various problems efficiently. | ||
'''Combinatorial Optimization''' | === '''Combinatorial Optimization''' === | ||
Combinatorial Optimization is a great application for Branch and Cut. This style of optimization is the methodology of utilizing the finite known sets and information of the sets to optimize the solution. The original intent for this application was for maximizing flow as well as in the transportation industry. This combinatorial optimization has also taken on some new areas where it is used often. Combinatorial Optimization is now an imperative component in studying artificial intelligence and machine learning algorithms to optimize solutions. The finite sets that Combinatorial Optimization tends to utilize and focus on includes graphs, partially ordered sets, and structures that define linear independence call matroids. | Combinatorial Optimization is a great application for Branch and Cut. This style of optimization is the methodology of utilizing the finite known sets and information of the sets to optimize the solution. The original intent for this application was for maximizing flow as well as in the transportation industry. This combinatorial optimization has also taken on some new areas where it is used often. Combinatorial Optimization is now an imperative component in studying artificial intelligence and machine learning algorithms to optimize solutions. The finite sets that Combinatorial Optimization tends to utilize and focus on includes graphs, partially ordered sets, and structures that define linear independence call matroids. | ||
'''Bender’s Decomposition''' | === '''Bender’s Decomposition''' === | ||
Bender’s Decomposition is a great use in Stochastic Programming instances. Bender’s Decomposition is where you take the initial problem and divide into two distinct subsets. By dividing the problem into two separate problems you are able to solve each set easier than the original instance. Therefore the first problem within the subset created can be solved for the first variable set. The second sub problem is then solved for, given that first problem solution. Doing this allows for the sub problem to be solved to determine whether the first problem is infeasible. Bender’s cuts can be added to constrain the problem until a feasible solution can be found. | Bender’s Decomposition is a great use in Stochastic Programming instances. Bender’s Decomposition is where you take the initial problem and divide into two distinct subsets. By dividing the problem into two separate problems you are able to solve each set easier than the original instance. Therefore the first problem within the subset created can be solved for the first variable set. The second sub problem is then solved for, given that first problem solution. Doing this allows for the sub problem to be solved to determine whether the first problem is infeasible. Bender’s cuts can be added to constrain the problem until a feasible solution can be found. | ||
'''Large-Scale Symmetric Traveling Salesmen Problem''' | === '''Large-Scale Symmetric Traveling Salesmen Problem''' === | ||
The Large-Scale Symmetric Traveling Salesmen Problem is a common problem that was always looked into optimizing for the shortest route while visiting each city once and returning to the original city at the end. On a larger scale this style of problem must be broken down into subsets or nodes. By constraining this style of problem such as the methods of Combinatorial Optimization, the Traveling Salesmen Problem can viewed as partially ordered sets. By doing this on a large scale with finite cities you are able to optimize the shortest path taken and ensure each city is only visited once. | The Large-Scale Symmetric Traveling Salesmen Problem is a common problem that was always looked into optimizing for the shortest route while visiting each city once and returning to the original city at the end. On a larger scale this style of problem must be broken down into subsets or nodes. By constraining this style of problem such as the methods of Combinatorial Optimization, the Traveling Salesmen Problem can viewed as partially ordered sets. By doing this on a large scale with finite cities you are able to optimize the shortest path taken and ensure each city is only visited once. | ||
'''Submodular Function''' | === '''Submodular Function''' === | ||
Submodular Function is another function in which is used throughout artificial intelligence as well as machine learning. The reason for this is because as inputs are increased into the function the value or outputs decrease. This allows for a great optimization features in the cases stated above because inputs are continually growing. This allows for machine learning and artificial intelligence to continue to grow based on these algorithms. By enforcing new inputs to the system the system will learn more and more to ensure it optimizes the solution that is to be made. | Submodular Function is another function in which is used throughout artificial intelligence as well as machine learning. The reason for this is because as inputs are increased into the function the value or outputs decrease. This allows for a great optimization features in the cases stated above because inputs are continually growing. This allows for machine learning and artificial intelligence to continue to grow based on these algorithms. By enforcing new inputs to the system the system will learn more and more to ensure it optimizes the solution that is to be made. | ||
==Conclusion | ==Conclusion== | ||
The Branch and Cut is an optimization algorithm used to optimize integer linear programming. It combines two other optimization algorithms - branch and bound and cutting planes in order to utilize the results from each method in order to create the most optimal solution. There are three different methodologies used within the specific method - most infeasible branching, strong branching, and pseudo code. Furthermore, Branch and Cut can be utilized it multiple scenarios - Submodular function, large-scale symmetric traveling salesmen problem, bender's decomposition, and combination optimization which increases the impact of the methodology. | |||
==References== | ==References== | ||
- Benders, J. F. (Sept. 1962), "Partitioning procedures for solving mixed-variables programming problems", Numerische Mathematik 4(3): 238–252. | # A. Krause and C. Guestrin, Beyond Convexity: Submodularity in Machine Learning, Tutorial at ICML-2008 | ||
# Benders, J. F. (Sept. 1962), "Partitioning procedures for solving mixed-variables programming problems", Numerische Mathematik 4(3): 238–252. | |||
# Chou, YenChieh. “Branch and Cut.” ''Wiki'', 2014, optimization.mccormick.northwestern.edu/index.php/Branch_and_cut. | |||
# Maltby, Henry, and Eli Ross. “Combinatorial Optimization.” ''Brilliant Math & Science Wiki'', brilliant.org/wiki/combinatorial-optimization/. | |||
# Society for Industrial and Applied Mathematics. “SIAM Rev.” ''SIAM Review'', 18 July 2006, epubs.siam.org/doi/10.1137/1033004. | |||
# S. Tschiatschek, R. Iyer, H. Wei and J. Bilmes, Learning Mixtures of Submodular Functions for Image Collection Summarization, NIPS-2014. |
Revision as of 18:41, 21 November 2020
Author: Lindsay Siegmundt, Peter Haddad, Chris Babbington, Jon Boisvert, Haris Shaikh (SysEn 6800 Fall 2020)
Steward: Wei-Han Chen, Fengqi You
Introduction
The Branch and Cut is a methodology that is used to optimize linear problems that are integer based. This concept is comprised of two known optimization methodologies - branch and bound and cutting planes. Utilizing these tools allows for the Branch and Cut to be successful by increasing the relaxation and decreasing the lower bound. The ultimate goal of this technique is to minimize the amount of nodes.
Methodology & Algorithm
Methodology
Most Infeasible Branching:
Most infeasible branching is a very popular method that picks the variable with fractional part closest to 0:5, i.e., si = 0:5 − |xAi − xAi− 0:5|. Most infeasible branching picks a variable where the least tendency can be recognized to which side the variable should be rounded. However, the performance of this method is not any superior to the rule of selecting a variable randomly.
Strong Branching:
For each fractional variable, strong branching tests the dual bound increase by computing the LP relaxations result from the branching on that variable. As a branching variable for the current for the current node, the variable that leads to the largest increases is selected. Despite its obvious simplicity, strong branching is so far the most powerful branching technique in terms of the number of nodes available in the B&B tree, this effectiveness can however be accomplished only at the cost of computation.
Pseudo Cost:
Another way to approximate a relaxation value is by utilizing a pseudo cost method. The pseudo-cost of a variable is an estimate of the per unit change in the objective function from making the value of the variable to be rounded up or down. For each variable we choose variable with the largest estimated LP objective gain.
Algorithm
Branch and Cut for is a variation of the Branch and Bound algorithm. Branch and Cut incorporates Gomery cuts allowing the search space of the given problem. The standard Simplex Algorithm will be used to solve each Integer Linear Programming Problem (LP).
Below is an Algorithm to utilize the Branch and Cut algorithm with Gomery cuts and Partitioning:
Step 0:
Upper Bound = ∞ Lower Bound = -∞
Step 1. Initialize:
Set the first node as while setting the active nodes set as . The set can be accessed via
Step 2. Terminate:
Step 3. Iterate through list L:
While is not empty (i is the index of the list of L), then:
Step 3.1. Convert to a Relaxation:
Solve 3.2.
Solve for the Relaxed
Step 3.3.
If Z is infeasible: Return to step 3. else: Continue with solution Z.
Step 4. Cutting Planes:
If a cutting plane is found: then add to the linear Relaxation problem (as a constraint) and return to step 3.2 Else: Continue.
Step 5. Pruning and Fathoming:
If Z^l >= Z: return to step 3.
If Z^l <= Z AND X_i is an integral feasible: Z = Z^i Remove all Z^i from Set(L)
Step 6. Partition (reference EXTERNAL SOURCE)
Let be a partition of the constraint set of problem . Add problems to L, where is with feasible region restricted to and for j=1,...k is set to the value of for the parent problem l. Go to step 3.
Numerical Example
First, list out the problem:
min z = -8x1 - 7x2
s.t. 5x1 - x2 <= 13
-x1 + 5x2 <= 4
x1, x2 >= 0
First Solution of MILP = Min = -32.625 (x1 = 2.875, x2 = 1.3750)
Branch:
min z = -8x1 - 7x2
s.t. 5x1 - x2 <= 13
-x1 + 5x2 <= 4
x1 <=2
x2 >= 0
Second Solution of MILP = Min = -24.4 (x1 = 2, x2 = 1.2)
Branch:
min z = -8x1 - 7x2
s.t. 5x1 - x2 <= 13
-x1 + 5x2 <= 4
x1 <=2
x2 >= 0
Add Cut:
min z = -8x1 - 7x2
s.t. 5x1 - x2 <= 13
-x1 + 5x2 <= 4
2x1 <= 6 (Cut Dividing equation 1 by 2)
x1 <=2
x2 >= 0
Solution with cut = Min = -24.4 (x1 = 2, x2 = 1.2)
Application
Several of the Branch and Cut applications are described below in more detail and how they can be used. These applications serve as methods in which Branch and Cut can be used to optimize various problems efficiently.
Combinatorial Optimization
Combinatorial Optimization is a great application for Branch and Cut. This style of optimization is the methodology of utilizing the finite known sets and information of the sets to optimize the solution. The original intent for this application was for maximizing flow as well as in the transportation industry. This combinatorial optimization has also taken on some new areas where it is used often. Combinatorial Optimization is now an imperative component in studying artificial intelligence and machine learning algorithms to optimize solutions. The finite sets that Combinatorial Optimization tends to utilize and focus on includes graphs, partially ordered sets, and structures that define linear independence call matroids.
Bender’s Decomposition
Bender’s Decomposition is a great use in Stochastic Programming instances. Bender’s Decomposition is where you take the initial problem and divide into two distinct subsets. By dividing the problem into two separate problems you are able to solve each set easier than the original instance. Therefore the first problem within the subset created can be solved for the first variable set. The second sub problem is then solved for, given that first problem solution. Doing this allows for the sub problem to be solved to determine whether the first problem is infeasible. Bender’s cuts can be added to constrain the problem until a feasible solution can be found.
Large-Scale Symmetric Traveling Salesmen Problem
The Large-Scale Symmetric Traveling Salesmen Problem is a common problem that was always looked into optimizing for the shortest route while visiting each city once and returning to the original city at the end. On a larger scale this style of problem must be broken down into subsets or nodes. By constraining this style of problem such as the methods of Combinatorial Optimization, the Traveling Salesmen Problem can viewed as partially ordered sets. By doing this on a large scale with finite cities you are able to optimize the shortest path taken and ensure each city is only visited once.
Submodular Function
Submodular Function is another function in which is used throughout artificial intelligence as well as machine learning. The reason for this is because as inputs are increased into the function the value or outputs decrease. This allows for a great optimization features in the cases stated above because inputs are continually growing. This allows for machine learning and artificial intelligence to continue to grow based on these algorithms. By enforcing new inputs to the system the system will learn more and more to ensure it optimizes the solution that is to be made.
Conclusion
The Branch and Cut is an optimization algorithm used to optimize integer linear programming. It combines two other optimization algorithms - branch and bound and cutting planes in order to utilize the results from each method in order to create the most optimal solution. There are three different methodologies used within the specific method - most infeasible branching, strong branching, and pseudo code. Furthermore, Branch and Cut can be utilized it multiple scenarios - Submodular function, large-scale symmetric traveling salesmen problem, bender's decomposition, and combination optimization which increases the impact of the methodology.
References
- A. Krause and C. Guestrin, Beyond Convexity: Submodularity in Machine Learning, Tutorial at ICML-2008
- Benders, J. F. (Sept. 1962), "Partitioning procedures for solving mixed-variables programming problems", Numerische Mathematik 4(3): 238–252.
- Chou, YenChieh. “Branch and Cut.” Wiki, 2014, optimization.mccormick.northwestern.edu/index.php/Branch_and_cut.
- Maltby, Henry, and Eli Ross. “Combinatorial Optimization.” Brilliant Math & Science Wiki, brilliant.org/wiki/combinatorial-optimization/.
- Society for Industrial and Applied Mathematics. “SIAM Rev.” SIAM Review, 18 July 2006, epubs.siam.org/doi/10.1137/1033004.
- S. Tschiatschek, R. Iyer, H. Wei and J. Bilmes, Learning Mixtures of Submodular Functions for Image Collection Summarization, NIPS-2014.