Docsity

Integer and Integer-Linear Programming: A Branch-and-Bound Method, Lecture notes of Linear Programming

Toggle sidebar
bg1
Al Anbar University Water Resources Management & Economics Mr. Ahmed A. Al Hity
College of Engineering 4th Stage Lecture No: 1
Water Resources and Dams Dept. 2019-2020 Date: 25/02/2020
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
1
INTEGER AND INTEGER-LINEAR PROGRAMMING: A BRANCH-AND-
BOUND METHOD
The following algorithm can be used to solve a mixed integer-linear
program using linear programming solution methods. Consider the
problem: Maximize z = 5 X1 + 3 X2
Subject to: 4 X1 + 2 X2 ≤ 25
X1 ≤ 5
X2 ≤ 8
Both X1 and X2 are integers.
Step 1: Find the optimal continuous solution. Relax the integer requirements for
the decision variables and solve the resulting non-integer linear program. This
gives an optimal continuous solution (OCS). If all originally integer variables have
integer solutions in the OCS, then STOP; this is the optimal solution. Otherwise,
continue with Step 2.
For the problem above, the solution is X1 = 2.25, X2 = 8, z = 35.25, so this is
not the optimal solution to the integer programming problem.
Step 2: Branch. Divide the problem into two sub-problems, searching for good
integer-valued solutions. For our problem, X1 has a fractional value in Step 1 of
2.25. We produce the two sub problems by adding new constraints on the non-
integer value which keep it from its current non-integer value. Here, since X1 =
2.25 above, we add the constraints X1 ≤ 2 and X1 ≥ 3 to give the following two
sub-problems. This is called branching.
Sub-problem 1: Sub-problem 2:
Maximize z = 5 X1 + 3 X2
Subject to: 4 X1 + 2 X2 ≤ 25
X1 ≤ 5 (now redundant)
X2 ≤8
X1 ≤2
Step 3: Solve the branched problems. When these sub-problems are solved by
linear programming, the solutions are compared.
Sub-problem 1: X1 = 2, X2 = 8, Z1= 34
Sub-problem 2: X1 = 3, X2 = 6.5, Z2= 34.5
Step 4: Set the bound. The best solution to the sub-problem which satisfies all
integer requirements is called the upper (or lower) bound. In this case, the sub-
problem 1 solution, z = 34, is the lower bound of the optimal solution.
If no sub-problem solution satisfies the integer conditions, then further
branching and solution is required until a bound can be set. (If a bound has
Maximize z = 5 X1 + 3 X2
Subject to: 4 X1 + 2 X2 ≤ 25
X1 ≤ 5
X2 ≤ 8
X1 ≥ 3
pf3
pf4
pf5

Partial preview of the text

Download Integer and Integer-Linear Programming: A Branch-and-Bound Method and more Lecture notes Linear Programming in PDF only on Docsity!

College of Engineering 4 th Stage Lecture No: 1 Water Resources and Dams Dept. 2019-2020 Date: 25/02/ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

INTEGER AND INTEGER-LINEAR PROGRAMMING: A BRANCH-AND-

BOUND METHOD

The following algorithm can be used to solve a mixed integer-linear program using linear programming solution methods. Consider the problem: Maximize z = 5 X1 + 3 X Subject to: 4 X1 + 2 X2 ≤ 25 X1 ≤ 5 X2 ≤ 8 Both X1 and X2 are integers. Step 1: Find the optimal continuous solution. Relax the integer requirements for the decision variables and solve the resulting non-integer linear program. This gives an optimal continuous solution (OCS). If all originally integer variables have integer solutions in the OCS, then STOP; this is the optimal solution. Otherwise, continue with Step 2. For the problem above, the solution is X1 = 2.25, X2 = 8, z = 35.25, so this is not the optimal solution to the integer programming problem. Step 2: Branch. Divide the problem into two sub-problems, searching for good integer-valued solutions. For our problem, X1 has a fractional value in Step 1 of 2.25. We produce the two sub problems by adding new constraints on the non- integer value which keep it from its current non-integer value. Here, since X1 = 2.25 above, we add the constraints X1 ≤ 2 and X1 ≥ 3 to give the following two sub-problems. This is called branching. Sub-problem 1: Sub-problem 2: Maximize z = 5 X1 + 3 X Subject to: 4 X1 + 2 X2 ≤ 25 X1 ≤ 5 (now redundant) X2 ≤ X1 ≤ Step 3: Solve the branched problems. When these sub-problems are solved by linear programming, the solutions are compared. Sub-problem 1: X1 = 2, X2 = 8, Z 1 = 34 Sub-problem 2: X1 = 3, X2 = 6.5, Z 2 = 34. Step 4: Set the bound. The best solution to the sub-problem which satisfies all integer requirements is called the upper (or lower) bound. In this case, the sub- problem 1 solution, z = 34, is the lower bound of the optimal solution. If no sub-problem solution satisfies the integer conditions, then further branching and solution is required until a bound can be set. (If a bound has Maximize z = 5 X1 + 3 X Subject to: 4 X1 + 2 X2 ≤ 25 X1 ≤ 5 X2 ≤ 8 X1 ≥ 3

College of Engineering 4 th Stage Lecture No: 1 Water Resources and Dams Dept. 2019-2020 Date: 25/02/ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& already been set, any new bound must have a better value than the existing bound.) Step 5: Continued branching. Branch on sub-problems that both do not satisfy integer conditions and have superior solutions. In this case the solution to sub- problem 2 both does not satisfy the integer conditions and has a superior solution to the bound (bound = 34, Z2 = 34.5). If the solutions to the all other sub-problems are inferior to the bound, then STOP and the solution that sets the bound is the optimal solution which satisfies all constraints, including the integer conditions. Otherwise, GO TO Step 2. Continuing with the solution to the example: Following Step 2, continued branching for this problem (Sub-problem 2) gives the following two sub-problems: Sub problem 2a: Sub problem 2b: Maximize z = 5 X1 + 3 X2 Maximize z = 5 X1 + 3 X Subject to: 4 X1 + 2 X2 ≤ 25 Subject to: 4 X1 + 2 X2 ≤ 25 X1 ≤5 X1 ≤ 5 X2 ≤ 8 (now redundant) X2 ≤ 8 X1 ≥3 X1 ≥ 3 X2 ≤ 6 (new constraint) X2 ≥7 (new constraint) Repeating Step 3, the solutions to these new sub-problems are: Sub-problem 2a: X1 = 3.25, X2 = 6, Z2a = 4. Sub-problem 2b: infeasible Step 4: Since neither of the new solutions both satisfies the integer conditions and has a better objective function value than the existing bound (existing bound = 34), the old bound remains. Step 5: Since the objective function value for the solution to sub-problem 2a is superior to the bound, there remains a possibility that there is an integer solution better than the current bound (= 34). So branching on sub-problem 2a continues, using Step 2. Step 2: Branching on sub-problem 2a gives the following new sub-problems: Sub problem 2a1: Sub problem 2a2: Maximize z = 5 X1 + 3 X Subject to: 4 X1 + 2 X2 ≤ 25 X1 ≤ X2 ≤ 8 (now redundant) X1 ≥ X2 ≤ X1 ≤ 3 (new constraint) Maximize z = 5 X1 + 3 X Subject to: 4 X1 + 2 X2 ≤ 25 X1 ≤ 5 X2 ≤ 8 (now redundant) X1 ≥ 3 (now redundant) X2 ≤ 6 X1 ≥ 4 (new constraint)

College of Engineering 4 th Stage Lecture No: 1 Water Resources and Dams Dept. 2019-2020 Date: 25/02/ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Example: Consider the MIP model The feasible space is illustrated by

  • The optimal solution of the relaxed MIP model is x 1 = 3. x 2 = 1. z = 23.
  • This solution is not integer.
  • Consider first x 1. The optimal integer solution is either for x 1 ≥ 4 or x 1 ≤ 3.
  • Hence, the area of the feasible region FR1 that has 3 < x 1 < 4 can be eliminated.

College of Engineering 4 th Stage Lecture No: 1 Water Resources and Dams Dept. 2019-2020 Date: 25/02/ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

  • This breakup in FR1 leads to two sub feasible regions. The two sub regions can be labeled as: FR 2 = FR 1 ∩ {x 1 ≤ 3} FR 3 = FR 1 ∩ {x 1 ≥ 4}

Notice that the feasible region defined by FR 2 υ FR 3 contains the same integer

solutions as FR1.

  • Continuing removing the regions that do not include integer solutions will lead to an LP model whose optimum solution is integer.
  • Hence, the solution of MIP is reached by solving a sequence of LP problems.
  • Choosing x 1 ≥ 4 and x 1 ≤ 3 is called branching, and x 1 is called the branching variable.
  • The optimal integer solution lies either in FR 2 or FR 3.
  • Hence, z is optimized with respect to FR 2 and FR 3 , and when an integer solution is found, the procedure is terminated. Otherwise, the process of branching continues. - Solve the sub problem LP2 : The solution is x 1 = 3, x 2 = 2, z = 23