Computational Geometry Piyush Kumar (Lecture 5: Linear Programming) Welcome to CIS5930.

Slides:



Advertisements
Similar presentations
Geometric Interpretation of Linear Programs
Advertisements

Solving IPs – Cutting Plane Algorithm General Idea: Begin by solving the LP relaxation of the IP problem. If the LP relaxation results in an integer solution,
Lecture #3; Based on slides by Yinyu Ye
Dragan Jovicic Harvinder Singh
Theory of Computing Lecture 14 MAS 714 Hartmut Klauck.
1 of 56 Linear Programming-Based Approximation Algorithms Shoshana Neuburger Graduate Center, CUNY May 13, 2009.
C&O 355 Lecture 12 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
How should we define corner points? Under any reasonable definition, point x should be considered a corner point x What is a corner point?
Linear Programming Fundamentals Convexity Definition: Line segment joining any 2 pts lies inside shape convex NOT convex.
Easy Optimization Problems, Relaxation, Local Processing for a small subset of variables.
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
Introduction to Linear and Integer Programming
 Topic: Fundamental concepts and algorithmic methods for solving linear and integer linear programs:  Simplex method  LP duality  Ellipsoid method.
CS38 Introduction to Algorithms Lecture 15 May 20, CS38 Lecture 15.
Linear Programming and Approximation
Totally Unimodular Matrices Lecture 11: Feb 23 Simplex Algorithm Elliposid Algorithm.
1 Introduction to Linear and Integer Programming Lecture 9: Feb 14.
Introduction to Linear and Integer Programming Lecture 7: Feb 1.
Fall 2006, Sep. 5 and 7 ELEC / Lecture 4 1 ELEC / (Fall 2006) Low-Power Design of Electronic Circuits (Formerly ELEC / )
Chapter 10: Iterative Improvement
Computer Algorithms Integer Programming ECE 665 Professor Maciej Ciesielski By DFG.
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Linear Programming Some of these slides are adapted from The Allocation of Resources.
 Linear Programming and Smoothed Complexity Richard Kelley.
D Nagesh Kumar, IIScOptimization Methods: M3L6 1 Linear Programming Other Algorithms.
Optimization of Linear Problems: Linear Programming (LP) © 2011 Daniel Kirschen and University of Washington 1.
LINEAR PROGRAMMING PROBLEM Definition and Examples.
C&O 355 Lecture 2 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A.
C&O 355 Mathematical Programming Fall 2010 Lecture 2 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A.
Linear Programming Piyush Kumar. Graphing 2-Dimensional LPs Example 1: x y Feasible Region x  0y  0 x + 2 y  2 y  4 x  3 Subject.
1 Linear Programming & Flows Instructor: yedeshi
Linear Programming – Simplex Method
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 3 Basics of the Simplex Algorithm.
OR Chapter 2. Simplex method (2,0) (2,2/3) (1,2)(0,2)
OR Chapter 1. Introduction  Ex : Diet Problem Daily requirements : energy(2000kcal), protein(55g), calcium(800mg) Food Serving size Energy (kcal)
§1.4 Algorithms and complexity For a given (optimization) problem, Questions: 1)how hard is the problem. 2)does there exist an efficient solution algorithm?
Chapter 3 Linear Programming Methods
Optimization - Lecture 4, Part 1 M. Pawan Kumar Slides available online
Linear Programming Maximize Subject to Worst case polynomial time algorithms for linear programming 1.The ellipsoid algorithm (Khachian, 1979) 2.Interior.
C&O 355 Lecture 7 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A.
IE 312 Review 1. The Process 2 Problem Model Conclusions Problem Formulation Analysis.
Linear Programming: Formulations, Geometry and Simplex Method Yi Zhang January 21 th, 2010.
Instructional Design Document Simplex Method - Optimization STAM Interactive Solutions.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Common Intersection of Half-Planes in R 2 2 PROBLEM (Common Intersection of half- planes in R 2 ) Given n half-planes H 1, H 2,..., H n in R 2 compute.
OR Chapter 4. How fast is the simplex method  Efficiency of an algorithm : measured by running time (number of unit operations) with respect to.
OR Chapter 4. How fast is the simplex method.
Linear Programming Piyush Kumar Welcome to CIS5930.
Approximation Algorithms based on linear programming.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
1 Chapter 4 Geometry of Linear Programming  There are strong relationships between the geometrical and algebraic features of LP problems  Convenient.
Discrete Optimization
Linear Programming Many problems take the form of maximizing or minimizing an objective, given limited resources and competing constraints. specify the.
Lap Chi Lau we will only use slides 4 to 19
Chapter 1. Introduction Ex : Diet Problem
ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS
Topics in Algorithms Lap Chi Lau.
Linear Programming.
Linear Programming in Two Dimensions
Chapter 6. Large Scale Optimization
Linear Programming Piyush Kumar Welcome to COT 5405.
Linear Programming and Approximation
CISC5835, Algorithms for Big Data
2. Generating All Valid Inequalities
EMIS 8373 Complexity of Linear Programming
CMPS 3130/6130 Computational Geometry Spring 2017
Part 3. Linear Programming
Chapter 10: Iterative Improvement
ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS
Chapter 6. Large Scale Optimization
Chapter 2. Simplex method
Presentation transcript:

Computational Geometry Piyush Kumar (Lecture 5: Linear Programming) Welcome to CIS5930

Linear Programming Significance  A lot of problems can be converted to LP formulation oPerceptrons (learning), Shortest path, max flow, MST, matching, … Accounts for major proportion of all scientific computations Helps in finding quick and dirty solutions to NP-hard optimization problems  Both optimal (B&B) and approximate (rounding)

Graphing 2-Dimensional LPs Example 1: x y Feasible Region x  0y  0 x + 2 y  2 y  4 x  3 Subject to: Maximize x + y Optimal Solution These LP animations were created by Keely Crowston.

Graphing 2-Dimensional LPs Example 2: Feasible Region x  0y  0 -2 x + 2 y  4 x  3 Subject to: Minimize ** x - y Multiple Optimal Solutions! 4 1 x 3 12 y /3 x + y  4

Graphing 2-Dimensional LPs Example 3: Feasible Region x  0y  0 x + y  20 x  5 -2 x + 5 y  150 Subject to: Minimize x + 1/3 y Optimal Solution x y

y x x y Do We Notice Anything From These 3 Examples? x y Extreme point

A Fundamental Point If an optimal solution exists, there is always a corner point optimal solution! y x x y x y

Graphing 2-Dimensional LPs Example 1: x y Feasible Region x  0y  0 x + 2 y  2 y  4 x  3 Subject to: Maximize x + y Optimal Solution Initial Corner pt. Second Corner pt.

And We Can Extend this to Higher Dimensions

Then How Might We Solve an LP? o The constraints of an LP give rise to a geometrical shape - we call it a polyhedron. o If we can determine all the corner points of the polyhedron, then we can calculate the objective value at these points and take the best one as our optimal solution. o The Simplex Method intelligently moves from corner to corner until it can prove that it has found the optimal solution.

But an Integer Program is Different x y  Feasible region is a set of discrete points.  Can’t be assured a corner point solution.  There are no “efficient” ways to solve an IP.  Solving it as an LP provides a relaxation and a bound on the solution.

Linear Programs in higher dimensions maximize z = -4x 1 + x 2 - x 3 subject to -7x 1 + 5x 2 + x 3 <= 8 -2x 1 + 4x 2 + 2x 3 <= 10 x 1, x 2, x 3  0

In Matrix terms

LP Geometry Forms a d dimensional polyhedron Is convex : If z 1 and z 2 are two feasible solutions then λz 1 + (1- λ)z 2 is also feasible. Extreme points can not be written as a convex combination of two feasible points.

LP Geometry Extreme point theorem: If there exists an optimal solution to an LP Problem, then there exists one extreme point where the optimum is achieved. Local optimum = Global Optimum

LP: Algorithms Simplex. (Dantzig 1947)  Developed shortly after WWII in response to logistical problems: used for 1948 Berlin airlift.  Practical solution method that moves from one extreme point to a neighboring extreme point.  Finite (exponential) complexity, but no polynomial implementation known. Courtesy Kevin Wayne

LP: Polynomial Algorithms Ellipsoid. (Khachian 1979, 1980)  Solvable in polynomial time: O(n 4 L) bit operations. on = # variables oL = # bits in input  Theoretical tour de force.  Not remotely practical. Karmarkar's algorithm. (Karmarkar 1984)  O(n 3.5 L).  Polynomial and reasonably efficient implementations possible. Interior point algorithms.  O(n 3 L).  Competitive with simplex! oDominates on simplex for large problems.  Extends to even more general problems.

LP: The 2D case Wlog, we can assume that c=(0,-1). So now we want to find the Extreme point with the smallest y coordinate. Lets also assume, no degeneracies, the solution is given by two Halfplanes intersecting at a point.

Incremental Algorithm? How would it work to solve a 2D LP Problem? How much time would it take in the worst case? Can we do better?