23 cutting planes and branch bound
play

23. Cutting planes and branch & bound Algorithms for solving - PowerPoint PPT Presentation

CS/ECE/ISyE 524 Introduction to Optimization Spring 201718 23. Cutting planes and branch & bound Algorithms for solving MIPs Cutting plane methods Branch and bound methods Laurent Lessard (www.laurentlessard.com) MIP


  1. CS/ECE/ISyE 524 Introduction to Optimization Spring 2017–18 23. Cutting planes and branch & bound ❼ Algorithms for solving MIPs ❼ Cutting plane methods ❼ Branch and bound methods Laurent Lessard (www.laurentlessard.com)

  2. MIP algorithms We can’t expect any algorithm for solving MIPs to be ef- ficient in the worst case. Remember that we are solving NP-complete problems! We will see two classes of algorithms: 1. Cutting plane methods. These can also be used to solve convex problems with integer constraints. 2. Branch and bound methods. These can also be used to solve nonliear problems with integer constraints (MINLP). These are the most popular methods for solving MIP and combinatorial problems. Every modern solver uses variants of the above methods. 23-2

  3. Review of MIPs x 2 max x 1 + x 2 3 x s.t. − 5 x 1 + 4 x 2 ≤ 0 2 6 x 1 + 2 x 2 ≤ 17 x 1 , x 2 ≥ 0 integer 1 Optimal solution = 4 0 0 1 2 3 x 1 Optimal solution Feasible points Infeasible points 23-3

  4. Review of MIPs x 2 max x 1 + x 2 3 x s.t. − 5 x 1 + 4 x 2 ≤ 0 2 6 x 1 + 2 x 2 ≤ 17 x 1 , x 2 ≥ 0 integer 1 Optimal solution = 4.5 0 0 1 2 3 x 1 ❼ Remove integer constraint to obtain the LP relaxation. ❼ Optimal solution is an upper bound on the optimal cost. ❼ If solution is integral, it is optimal for the original problem. 23-4

  5. Cutting plane method Basic idea: 1. Solve LP relaxation. 2. If LP solution is integral, it is optimal for the original problem. We’re done! 3. If LP solution is not integral, find a linear constraint that excludes the LP solution but does not exclude any integer points (always possible). This is called a cut . 4. Add the cut constraint to the problem. Return to step 1. 23-5

  6. Cutting plane methods x 2 max x 1 + x 2 3 x s.t. − 5 x 1 + 4 x 2 ≤ 0 2 6 x 1 + 2 x 2 ≤ 17 valid cuts 1 x 1 , x 2 ≥ 0 integer 0 0 1 2 3 x 1 ❼ A cut must simultaneously exclude the LP solution while keeping all the feasible integer points. ❼ There always exists at least one valid cut. 23-6

  7. Cutting plane method x 2 max x 1 + x 2 3 x s.t. − 5 x 1 + 4 x 2 ≤ 0 2 6 x 1 + 2 x 2 ≤ 17 x 2 ≤ 2 1 x 1 , x 2 ≥ 0 integer 0 0 1 2 3 x 1 ❼ The constraint x 2 ≤ 2 is a valid cut because it excludes the optimal LP solution but doesn’t exclude any integer points. ❼ Now solve the LP relaxation for this new problem... 23-7

  8. Cutting plane method x 2 max x 1 + x 2 3 x s.t. − 5 x 1 + 4 x 2 ≤ 0 2 6 x 1 + 2 x 2 ≤ 17 x 2 ≤ 2 1 x 1 , x 2 ≥ 0 integer 0 0 1 2 3 x 1 Optimal solution = 4.1667 ❼ Adding a cut reduces our upper bound because we are shrinking the feasible set (we added another constraint). ❼ Solution is still not an integer. Add another cut! 23-8

  9. Cutting plane method x 2 max x 1 + x 2 3 x s.t. − 5 x 1 + 4 x 2 ≤ 0 2 6 x 1 + 2 x 2 ≤ 17 x 2 ≤ 2 1 x 1 ≤ 2 0 x 1 , x 2 ≥ 0 integer 0 1 2 3 x 1 Optimal solution = 4 ❼ LP solution is integral, so it must also be optimal for the original integer problem. 23-9

  10. Cutting plane method x 2 ❼ If we add all the possible linear constraints that don’t exclude 3 feasible integral points, we obtain the convex hull of the feasible 2 integral points. 1 ❼ If we use the convex hull, then the LP relaxation always gives us the 0 0 1 2 3 true optimal solution. x 1 ❼ The convex hull is generally very difficult to compute when we have a large number of decision variables. ❼ By using a cutting plane method, we can (hopefully) find the optimal point without computing the entire convex hull. 23-10

  11. Gomory cut ❼ One famous method for creating valid cuts is called the Gomory cut , discovered by American mathematician Ralph Gomory (1950). ❼ Nice features of the Gomory cut: ◮ Cuts are easy to compute; they can be computed as a byproduct of the simplex algorithm for solving LPs (this is why many LP solvers can also solve MIPs). ◮ Cutting plane method using Gomory cuts is guaranteed to find the optimal solution using finitely many cuts. ❼ Of course, that finite number may be very very large... ❼ Gomory cuts or variants widely used in commercial solvers. 23-11

  12. Cutting planes in general x 2 6 max x 1 + x 2 x 5 2 x 2 1 + 4 x 2 s.t. 2 − 3 x 1 x 2 4 − 3 x 1 − 15 x 2 + 19 ≤ 0 3 x 1 , x 2 ≥ 0 integer 2 1 Optimal solution = 9 0 0 1 2 3 4 5 6 x 1 ❼ The cutting plane idea still works for more general convex problems subject to integer constraints. ❼ Begin by solving the relaxation... 23-12

  13. Cutting planes in general x 2 6 max x 1 + x 2 x 5 2 x 2 1 + 4 x 2 s.t. 2 − 3 x 1 x 2 4 − 3 x 1 − 15 x 2 + 19 ≤ 0 3 x 1 , x 2 ≥ 0 integer 2 1 Optimal solution = 9.5386 0 0 1 2 3 4 5 6 x 1 ❼ This is a convex QCQP, and the optimal objective value is an upper bound on the optimal integer objective value. ❼ Add a cuts, as before... 23-13

  14. Cutting planes in general x 2 6 max x 1 + x 2 x 5 2 x 2 1 + 4 x 2 s.t. 2 − 3 x 1 x 2 4 − 3 x 1 − 15 x 2 + 19 ≤ 0 3 x 1 ≤ 5 , x 2 ≤ 4 2 1 x 1 , x 2 ≥ 0 integer 0 0 1 2 3 4 5 6 x 1 Optimal solution = 9 ❼ Since the cuts never exclude feasible integer points, once we obtain an integral solution to the relaxation we know we found an optimal point to the original problem. 23-14

  15. Cutting planes recap ❼ Sequentially add linear constraints (cuts) and solve the relaxed version of the integer program. ❼ Cuts exclude the (non-integer) solution of the relaxed problem while preserving all the integral points in the feasible region ❼ It is always possible to find a cut whenever the relaxed problem is convex. This is because any two non-intersecting convex sets can be separated by a hyperplane, and this hyperplane can serve as a cut. ❼ The Gomory cut for MIPs is easy to compute and guaranteed to find the optimal solution after a finite number of cuts (though that number may be large). 23-15

  16. Branch and bound methods ❼ Basic idea: it’s a tree-based search heuristic to help us search the very large space of possible variable values. ❼ By keeping track of upper and lower bounds on the optimal solution, we can prune branches of the tree so we don’t have to search every possibility (if we’re lucky). ❼ We need two basic facts (assume a maximization MIP) ◮ Removing a constraint makes the feasible set larger, so the new solution will be an upper bound to the optimal solution. ◮ Adding a constraint makes the feasible set smaller, so the new solution will be an lower bound to the optimal solution. 23-16

  17. Branch and bound methods 1. Lower bounds: keep track of the best current lower bound . This is a feasible (integer) point, so it provides a lower bound to the optimal cost. Update this lower bound if we come across a better one. 2. Upper bounds: solve several relaxed problems (subject to varying assumptions). These are easy to solve and since they involve relaxing constraints, they provide upper bounds on the optimal solution subject to those assumptions. 3. Pruning: if an upper bound turns out to be worse than our best lower bound, then the assumptions made in that case were incorrect and we can discard them. 23-17

  18. Branch and bound example 1 max 15 x 1 + 12 x 2 + 4 x 3 + 2 x 4 s.t. 8 x 1 + 5 x 2 + 3 x 3 + 2 x 4 ≤ 10 x i ∈ { 0 , 1 } Best lower bound (feasible): � � z ⋆ = 0 , x ⋆ = 0 0 0 0 Solve the LP relaxation of (1): z (1) x (1) � � LP = 21 . 38 , LP = 0 . 63 1 0 0 LP solution is superior to z ⋆ , but not integral. Branch on the fractional variable x 1 . Mark descendants active. Example borrowed from MIT 15.053/8 23-18

  19. Branch and bound example 1 max 15 x 1 + 12 x 2 + 4 x 3 + 2 x 4 x 1 = 0 x 1 = 1 s.t. 8 x 1 + 5 x 2 + 3 x 3 + 2 x 4 ≤ 10 x i ∈ { 0 , 1 } 2 3 Best lower bound (feasible): � � z ⋆ = 0 , x ⋆ = 0 0 0 0 Solve the LP relaxation of (2): z (2) x (2) � � LP = 18 , LP = 0 1 1 1 It’s integral and superior to z ⋆ , so it becomes our new lower bound. No need to branch any further. Prune the node and move on to the next active node. Example borrowed from MIT 15.053/8 23-19

  20. Branch and bound example 1 max 15 x 1 + 12 x 2 + 4 x 3 + 2 x 4 x 1 = 0 x 1 = 1 s.t. 8 x 1 + 5 x 2 + 3 x 3 + 2 x 4 ≤ 10 x i ∈ { 0 , 1 } 2 3 Best lower bound (feasible): � � z ⋆ = 18 , x ⋆ = 0 1 1 1 Solve the LP relaxation of (3): z (3) x (3) � � LP = 19 . 8 , LP = 1 0 . 4 0 0 LP solution is superior to z ⋆ , but not integral. Branch on the fractional variable x 2 . Mark descendants as active. Example borrowed from MIT 15.053/8 23-20

  21. Branch and bound example 1 max 15 x 1 + 12 x 2 + 4 x 3 + 2 x 4 x 1 = 0 x 1 = 1 s.t. 8 x 1 + 5 x 2 + 3 x 3 + 2 x 4 ≤ 10 x i ∈ { 0 , 1 } 2 3 Best lower bound (feasible): x 2 = 0 x 2 = 1 � � z ⋆ = 18 , x ⋆ = 0 1 1 1 4 5 Solve the LP relaxation of (4): z (4) x (4) � � LP = 17 . 67 , LP = 1 0 0 . 67 0 LP solution is inferior to z ⋆ . No need to branch any further. Prune the node and move on to the next active node. Example borrowed from MIT 15.053/8 23-21

  22. Branch and bound example 1 max 15 x 1 + 12 x 2 + 4 x 3 + 2 x 4 x 1 = 0 x 1 = 1 s.t. 8 x 1 + 5 x 2 + 3 x 3 + 2 x 4 ≤ 10 x i ∈ { 0 , 1 } 2 3 Best lower bound (feasible): x 2 = 0 x 2 = 1 � � z ⋆ = 18 , x ⋆ = 0 1 1 1 4 5 Solve the LP relaxation of (5): z (5) x (5) LP = −∞ , LP = infeasible LP is infeasible (inferior to z ⋆ ). No need to branch any further. Prune the node. No more active nodes; we are done! Example borrowed from MIT 15.053/8 23-22

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend