



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




College of Engineering 4 th Stage Lecture No: 1 Water Resources and Dams Dept. 2019-2020 Date: 25/02/ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
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
College of Engineering 4 th Stage Lecture No: 1 Water Resources and Dams Dept. 2019-2020 Date: 25/02/ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
solutions as FR1.