CS4234 Optimiz(s)ation Algorithms L2 – Linear Programming.

Slides:



Advertisements
Similar presentations
Introduction to Algorithms 6.046J/18.401J/SMA5503
Advertisements

Integer Optimization Basic Concepts Integer Linear Program(ILP): A linear program except that some or all of the decision variables must have integer.
Linear Programming, 1 Max c 1 *X 1 +…+ c n *X n = z s.t. a 11 *X 1 +…+ a 1n *X n  b 1 … a m1 *X 1 +…+ a mn *X n  b m X 1, X n  0 Standard form.
© 2003 Anita Lee-Post Linear Programming Part 2 By Anita Lee-Post.
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,
Introduction to Mathematical Programming Matthew J. Liberatore John F. Connelly Chair in Management Professor, Decision and Information Technologies.
Linear Programming (LP) (Chap.29)
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
Totally Unimodular Matrices
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
CS 312 – Linear Programming
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
The Simplex Method: Standard Maximization Problems
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
INFM 718A / LBSC 705 Information For Decision Making Lecture 4.
Approximation Algorithms
1 Traveling Salesman Problem (TSP) Given n £ n positive distance matrix (d ij ) find permutation  on {0,1,2,..,n-1} minimizing  i=0 n-1 d  (i),  (i+1.
Penn ESE535 Spring DeHon 1 ESE535: Electronic Design Automation Day 5: February 2, 2009 Architecture Synthesis (Provisioning, Allocation)
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
Linear Programming – Max Flow – Min Cut Orgad Keller.
Linear Programming Econ Outline  Review the basic concepts of Linear Programming  Illustrate some problems which can be solved by linear programming.
D Nagesh Kumar, IIScOptimization Methods: M7L1 1 Integer Programming All Integer Linear Programming.
Penn ESE535 Spring DeHon 1 ESE535: Electronic Design Automation Day 5: February 2, 2009 Architecture Synthesis (Provisioning, Allocation)
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Optimization of Linear Problems: Linear Programming (LP) © 2011 Daniel Kirschen and University of Washington 1.
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Deciding ILPs with Branch & Bound ILP References: ‘Integer Programming’
Linear Programming David Kauchak cs161 Summer 2009.
Decision Procedures An Algorithmic Point of View
Computational Geometry Piyush Kumar (Lecture 5: Linear Programming) Welcome to CIS5930.
ENCI 303 Lecture PS-19 Optimization 2
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 7.6 Linear Programming.
Theory of Computing Lecture 13 MAS 714 Hartmut Klauck.
Linear Programming – Simplex Method
QMB 4701 MANAGERIAL OPERATIONS ANALYSIS
Linear Programming Problem. Definition A linear programming problem is the problem of optimizing (maximizing or minimizing) a linear function (a function.
Chap 10. Integer Prog. Formulations
Soham Uday Mehta. Linear Programming in 3 variables.
Gomory Cuts Updated 25 March Example ILP Example taken from “Operations Research: An Introduction” by Hamdy A. Taha (8 th Edition)“Operations Research:
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
Class Opener: Solve each equation for Y: 1.3x + y = y = 2x 3.x + 2y = 5 4. x – y = x + 3y = x – 5y = -3.
Implicit Hitting Set Problems Richard M. Karp Erick Moreno Centeno DIMACS 20 th Anniversary.
CSE 6311 – Spring 2009 ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS Lecture Notes – March 12, 2009 ILP – Integer Linear Programming Approximate algorithm.
Constraints Feasible region Bounded/ unbound Vertices
LINEAR PROGRAMMING 3.4 Learning goals represent constraints by equations or inequalities, and by systems of equations and/or inequalities, and interpret.
Linear Programming: Formulations, Geometry and Simplex Method Yi Zhang January 21 th, 2010.
Optimization - Lecture 5, Part 1 M. Pawan Kumar Slides available online
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Sullivan Algebra and Trigonometry: Section 12.9 Objectives of this Section Set Up a Linear Programming Problem Solve a Linear Programming Problem.
Linear Programming Piyush Kumar Welcome to CIS5930.
Approximation Algorithms based on linear programming.
Linear Programming (LP) Vector Form Maximize: cx Subject to : Ax  b c = (c 1, c 2, …, c n ) x = b = A = Summation Form Maximize:  c i x i Subject to:
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Exploring Microsoft Office Exploring Excel Appendix C
Lap Chi Lau we will only use slides 4 to 19
Integer Programming An integer linear program (ILP) is defined exactly as a linear program except that values of variables in a feasible solution have.
Topics in Algorithms Lap Chi Lau.
Constrained Optimization
Gomory Cuts Updated 25 March 2009.
3-3 Optimization with Linear Programming
INFM 718A / LBSC 705 Information For Decision Making
Linear Programming Example: Maximize x + y x and y are called
LINEARPROGRAMMING 4/26/2019 9:23 AM 4/26/2019 9:23 AM 1.
Chapter 2. Simplex method
Dr. Arslan Ornek DETERMINISTIC OPTIMIZATION MODELS
Integer LP: Algorithms
Chapter 2. Simplex method
Simplex Tableau Method
Linear Constrained Optimization
Presentation transcript:

CS4234 Optimiz(s)ation Algorithms L2 – Linear Programming

A typical LP consists of three components: 1.A list of (real-valued) variables x 1, x 2, …, x n –The goal: To find good values for these variables 2.An objective function f(x 1, x 2, …, x n ) that you are trying to maximize or minimize –The goal is to find the best values for the variables so as optimize this function 3.A set of constraints that limits the feasible solution space –Each of these constraints is specified as an inequality In a LP problem, both the objective function and the constraints are linear functions of the variables Linear Programming (LP)

LP Example

1.Find any (feasible) vertex v 2.Examine all the neighboring vertices of v: v 1, v 2, …, v k 3.Calculate f(v), f(v 1 ), f(v 2 ), …, f(v k ) –If f(v) is the maximum (among its neighbors), then stop and return v 4.Otherwise, choose one of the neighboring vertices v j where f(v j ) > f(v) –Let v = v j 5.Go to step (2) Simplex Method

Simplex Live Example 1.Find any (feasible) vertex v 2.Examine all the neighboring vertices of v: v 1, v 2, …, v k 3.Calculate f(v), f(v 1 ), f(v 2 ), …, f(v k ) –If f(v) is the maximum (among its neighbors), then stop and return v 4.Otherwise, choose one of the neighboring vertices v j where f(v j ) > f(v) –Let v = v j 5.Go to step (2)

Live Demonstration See 02.ExcelSample.xlsx (tab 'LP') LP Solver in Microsoft Excel

Both the Randomized & Deterministic 2-approximation algorithm for Min-Vertex-Cover "fails" on the weighted version MIN-WEIGHT-VERTEX-COVER

The formulation (x j is a Boolean {0, 1} variable where 0 = not in VC and 1 = in VC): Min-Vertex-Cover (set w(v j ) to all 1)  p ILP So ILP is also NP-hard MWVS as an (Integer) Linear Program ILP/IP

Relaxing the Integer constraint ????? ?? x j value if it is  0.5 But is this a good approximation? MWVS as a Relaxed Linear Program Assume w is all 1 Example LP solution x 0 = x 1 = x 2 = x 3 = 0.5 What should we do?

General form of an LP: 1.A set of variables: x 1, x 2, …, x n 2.A linear objective to maximize (or minimize): c T x c and x as vectors, c T represents the transpose of c multiplication represents the dot product 3.A set of linear constraints written as a Matrix equation: Ax  b Presented as: max cx where Ax  b and x  0 Linear Programming Summary

Exercise to translate given LP into standard form Details in the PDF LP in Standard Form

Introduction to LP Overview of Simplex Method Simplex in Excel++ Introducing the weighted MVC = MWVC –Problem with MVC approximation algorithms… Reducing MWVC to ILP Relaxing ILP to LP and rounding up the answer Analysis of that solution Summary