CPSC 536N Sparse Approximations Winter 2013 Lecture 1 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAA.

Slides:



Advertisements
Similar presentations
1 LP, extended maxflow, TRW OR: How to understand Vladimirs most recent work Ramin Zabih Cornell University.
Advertisements

C&O 355 Lecture 15 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A A A A A A A.
Min-Max Relations, Hall’s Theorem, and Matching-Algorithms Graphs & Algorithms Lecture 5 TexPoint fonts used in EMF. Read the TexPoint manual before you.
C&O 355 Lecture 6 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A.
C&O 355 Lecture 8 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A.
C&O 355 Lecture 9 N. Harvey TexPoint fonts used in EMF.
C&O 355 Lecture 23 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.
1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
Geometry and Theory of LP Standard (Inequality) Primal Problem: Dual Problem:
Lecture #3; Based on slides by Yinyu Ye
C&O 355 Mathematical Programming Fall 2010 Lecture 22 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A.
Totally Unimodular Matrices
Introduction to Algorithms
1 Introduction to Linear Programming. 2 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. X1X2X3X4X1X2X3X4.
Dragan Jovicic Harvinder Singh
C&O 355 Lecture 4 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 20 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
C&O 355 Mathematical Programming Fall 2010 Lecture 15 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
C&O 355 Lecture 20 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?
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2006 Lecture 9 Wednesday, 11/15/06 Linear Programming.
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.
Duality Lecture 10: Feb 9. Min-Max theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum Cut Both.
Approximation Algorithms
1 Spanning Tree Polytope x1 x2 x3 Lecture 11: Feb 21.
1 Linear Programming Supplements (Optional). 2 Standard Form LP (a.k.a. First Primal Form) Strictly ≤ All x j 's are non-negative.
Approximation Algorithms: Bristol Summer School 2008 Seffi Naor Computer Science Dept. Technion Haifa, Israel TexPoint fonts used in EMF. Read the TexPoint.
C&O 355 Mathematical Programming Fall 2010 Lecture 17 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
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.
C&O 355 Mathematical Programming Fall 2010 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
C&O 355 Mathematical Programming Fall 2010 Lecture 4 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A.
Linear Programming System of Linear Inequalities  The solution set of LP is described by Ax  b. Gauss showed how to solve a system of linear.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
Linear Programming Data Structures and Algorithms A.G. Malamos References: Algorithms, 2006, S. Dasgupta, C. H. Papadimitriou, and U. V. Vazirani Introduction.
Theory of Computing Lecture 13 MAS 714 Hartmut Klauck.
C&O 355 Mathematical Programming Fall 2010 Lecture 18 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A.
CS38 Introduction to Algorithms Lecture 16 May 22, CS38 Lecture 16.
TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A A A A A A A Image:
Advanced Operations Research Models Instructor: Dr. A. Seifi Teaching Assistant: Golbarg Kazemi 1.
C&O 355 Mathematical Programming Fall 2010 Lecture 16 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A.
Linear Program Set Cover. Given a universe U of n elements, a collection of subsets of U, S = {S 1,…, S k }, and a cost function c: S → Q +. Find a minimum.
X y x-y · 4 -y-2x · 5 -3x+y · 6 x+y · 3 Given x, for what values of y is (x,y) feasible? Need: y · 3x+6, y · -x+3, y ¸ -2x-5, and y ¸ x-4 Consider the.
C&O 355 Mathematical Programming Fall 2010 Lecture 5 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A.
Hon Wai Leong, NUS (CS6234, Spring 2009) Page 1 Copyright © 2009 by Leong Hon Wai CS6234: Lecture 4  Linear Programming  LP and Simplex Algorithm [PS82]-Ch2.
C&O 355 Lecture 7 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A.
Lecture.6. Table of Contents Lp –rounding Dual Fitting LP-Duality.
C&O 355 Lecture 24 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A A A A A A A.
C&O 355 Lecture 19 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.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Linear Programming Chap 2. The Geometry of LP  In the text, polyhedron is defined as P = { x  R n : Ax  b }. So some of our earlier results should.
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.
Lap Chi Lau we will only use slides 4 to 19
Topics in Algorithms Lap Chi Lau.
Proving that a Valid Inequality is Facet-defining
Chap 9. General LP problems: Duality and Infeasibility
Analysis of Algorithms
Chapter 4. Duality Theory
Linear Programming and Approximation
Chapter 5. The Duality Theorem
Lecture 20 Linear Program Duality
Proving that a Valid Inequality is Facet-defining
Chapter 2. Simplex method
Presentation transcript:

CPSC 536N Sparse Approximations Winter 2013 Lecture 1 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAA

Linear Program General definition – Parameters: c, a 1,…,a m 2R n, b 1,…,b m 2R – Variables: x 2R n Terminology – Feasible point: any x satisfying constraints – Optimal point: any feasible x that minimizes obj. func – Optimal value: value of obj. func for any optimal point Objective function Constraints

Matrix form Parameters: c 2 R n, A 2 R m £ n, b 2 R m Variables: x 2 R n Linear Program General definition – Parameters: c, a 1,…,a m 2R n, b 1,…,b m 2R – Variables: x 2R n

Simple LP Manipulations “max” instead of “min” max c T x ´ min –c T x “ ¸ ” instead of “ · ” a T x ¸ b, -a T x · -b “=” instead of “ · ” a T x=b, a T x · b and a T x ¸ b Note: “ ” are not allowed in constraints Because we want the feasible region to be closed, in the topological sense.

x1x1 x2x2 x 2 - x 1 · 1 x 1 + 6x 2 · 15 4x 1 - x 2 · 10 Gradient of Objective Function (0,0) Feasible region Constraint Optimal point 2D Example x1¸0x1¸0 x2¸0x2¸0 Unique optimal solution exists (3,2) Objective Function

x1x1 x2x2 x 2 - x 1 · 1 x 1 + 6x 2 · 15 4x 1 - x 2 · 10 (0,0) Feasible region Constraint Optimal points 2D Example x1¸0x1¸0 x2¸0x2¸0 Optimal solutions exist: Infinitely many! Gradient of Objective Function Objective Function

x1x1 x2x2 x 2 - x 1 ¸ 1 x 1 + 6x 2 · 15 4x 1 - x 2 ¸ 10 (0,0) Feasible region is empty Constraint 2D Example x1¸0x1¸0 x2¸0x2¸0 Infeasible No feasible solutions (so certainly no optimal solutions either) Gradient of Objective Function

x1x1 x2x2 x 2 - x 1 · 1 (0,0) Feasible region Constraint 2D Example x1¸0x1¸0 x2¸0x2¸0 Unbounded Feasible solutions, but no optimal solution (Informally, “optimal value = 1” ) Gradient of Objective Function

x1x1 x2x2 x 2 - x 1 · 1 Gradient of Objective Function (0,0) Feasible region Constraint 2D Example x1¸0x1¸0 x2¸0x2¸0 Important Point: This LP is NOT unbounded. The feasible region is unbounded, but optimal value is 1 Optimal point (0,1)

“Fundamental Theorem” of LP Theorem: For any LP, the outcome is either: – Optimal solution (unique or infinitely many) – Infeasible – Unbounded (optimal value is 1 for maximization problem, or - 1 for minimization problem) The main point is: if the LP is feasible and not unbounded, then the supremum is achieved.

Example: Bipartite Matching Given bipartite graph G=(V, E) Find a maximum size matching – A set M µ E s.t. every vertex has at most one incident edge in M

Given bipartite graph G=(V, E) Find a maximum size matching – A set M µ E s.t. every vertex has at most one incident edge in M The blue edges are a matching M Example: Bipartite Matching

The natural integer program Given bipartite graph G=(V, E) Find a maximum size matching – A set M µ E s.t. every vertex has at most one incident edge in M Example: Bipartite Matching Solving IPs is very hard. Try an LP instead. (LP) Theorem: (IP) and (LP) have the same solution! Proof: Later in the course! Corollary: Bipartite matching can be solved by LP algorithms. (IP)

Duality: Proving optimality x1x1 x2x2 -x 1 +x 2 · 1 x 1 + 6x 2 · 15 4x 1 - x 2 · 10 Question: What is optimal point in direction c = (-7,14)? Solution: Optimal point is x=(9/7,16/7), optimal value is 23. How can I be sure? – Every feasible point satisfies x 1 +6x 2 · 15 – Every feasible point satisfies -x 1 +x 2 · 1 – Every feasible point satisfies their sum: -7x 1 +14x 2 · 23 (9/7,16/7) This is the objective function! ) -8x 1 +8x 2 · 8

Duality: Proving optimality Question: What is optimal point in direction c = (-7,14)? Solution: Optimal point is x=(9/7,16/7), optimal value is 23. How can I be sure? – Every feasible point satisfies x 1 +6x 2 · 15 – Every feasible point satisfies -x 1 +x 2 · 1 ) -8x 1 +8x 2 · 8 – Every feasible point satisfies their sum: -7x 1 +14x 2 · 23 Certificates To convince you that optimal value is ¸ k, I can find x such that c T x ¸ k. To convince you that optimal value is · k, I can find a linear combination of the constraints which proves that c T x · k. “Strong Duality Theorem”: Such certificates always exists. This is the objective function!

Duality: Geometric View Suppose c=[-1,1] Then every feasible x satisfies c T x = -x 1 +x 2 · 1 If this constraint is tight at x ) x is optimal x1x1 x2x2 -x 1 +x 2 · 1 x 1 + 6x 2 · 15 Objective Function c i.e. -x 1 +x 2 =1 i.e. x lies on the red line (because equality holds here)

Duality: Geometric View x1x1 x2x2 -x 1 +x 2 · 1 x 1 + 6x 2 · 15 Objective Function c Suppose c=[1,6] Then every feasible x satisfies c T x = x 1 +6x 2 · 15 If this constraint is tight at x ) x is optimal (because equality holds here)i.e. x 1 +6x 2 =15 i.e. x lies on the red line

Duality: Geometric View x1x1 x2x2 -x 1 +x 2 · 1 x 1 + 6x 2 · 15 Objective Function c (because equality holds here) Suppose c= ®¢ [1,6], where ®¸ 0 Then every feasible x satisfies c T x = ®¢ ( x 1 +6x 2 ) · 15 ® If this constraint is tight at x ) x is optimal i.e. x 1 +6x 2 =15 i.e. x lies on the red line

Duality: Geometric View What if c does not align with any constraint? Can we “generate” a new constraint aligned with c? x1x1 x2x2 -x 1 +x 2 · 1 x 1 + 6x 2 · 15 Objective Function c

Duality: Geometric View Can we “generate” a new constraint aligned with c? One way is to “average” the tight constraints Example: Suppose c = u+v. Then every feasible x satisfies c T x = (u+v) T x = (-x 1 +x 2 ) + (x 1 +6x 2 ) · = 16 x is feasible and both constraints tight ) x is optimal x1x1 x2x2 -x 1 +x 2 · 1 x 1 +6x 2 · 15 Objective Function c u=[-1,1] v=[1,6]

Duality: Geometric View Can we “generate” a new constraint aligned with c? One way is to “average” the tight constraints More generally: Suppose c = ® u+ ¯ v for ®, ¯¸ 0 Then every feasible x satisfies c T x = ( ® u+ ¯ v) T x = ® (-x 1 +x 2 ) + ¯ (x 1 +6x 2 ) · ® +15 ¯ x is feasible and both constraints tight ) x is optimal x1x1 x2x2 -x 1 +x 2 · 1 x 1 +6x 2 · 15 Objective Function c u=[-1,1] v=[1,6]

x feasible ) a 1 T x · b 1 and a 2 T x · b 2 ) (a 1 +a 2 ) T x · b 1 +b 2 (new valid constraint) More generally, for any ¸ 1,…, ¸ m ¸ 0 x feasible ) ( § i ¸ i a i ) T x · § i ¸ i b i (new valid constraint) “Any non-negative linear combination of the constraints gives a new valid constraint” Definition: A new constraint a T x · b is valid if it is satisfied by all feasible points To get upper bound on objective function c T x, need ( § i ¸ i a i ) = c (because then our new valid constraint shows c T x · § i ¸ i b i ) Want best upper bound ) want to minimize § i ¸ i b i Duality: Algebraic View

To get upper bound on objective function c T x, need ( § i ¸ i a i ) = c Want best upper bound ) want to minimize § i ¸ i b i We can write this as an LP too! Primal LP ´ Theorem: “Weak Duality Theorem” If x feasible for Primal and ¸ feasible for Dual then c T x · b T ¸. Proof: c T x = (A T ¸ ) T x = ¸ T A x · ¸ T b. ¥ Since ¸¸ 0 and Ax · b Dual LP

Duality: Algebraic View To get upper bound on objective function c T x, need ( § i ¸ i a i ) = c Want best upper bound ) want to minimize § i ¸ i b i We can write this as an LP too! Primal LP ´ Theorem: “Weak Duality Theorem” If x feasible for Primal and ¸ feasible for Dual then c T x · b T ¸. Corollary: If x feasible for Primal and ¸ feasible for Dual and c T x = b T ¸ then x optimal for Primal and ¸ optimal for Dual. Dual LP

´ new variables (non-negative) transpose Dual LPInequality Form Dual of Dual ´ Let x = v-u Primal: Conclusion: “Dual of Dual is Primal!” Dual of Dual ´ A has size m x n c 2 R n and b 2 R m u2Rnv2Rnw2Rmu2Rnv2Rnw2Rm

Primal vs Dual Weak Duality Theorem: If x feasible for Primal and ¸ feasible for Dual then c T x · b T ¸. InfeasibleUnboundedOpt. Exists Infeasible Unbounded Opt. Exists Primal (maximization) Dual (minimization) Impossible Fundamental Theorem of LP: For any LP, the outcome is either: Infeasible, Unbounded, Optimum Point Exists. Possible Strong Duality Theorem: If Primal has an opt. solution x, then Dual has an opt. solution ¸. Furthermore, optimal values are same: c T x = b T ¸. Impossible Possible Exercise!

Strong Duality Primal LP:Dual LP: Strong Duality Theorem: Primal has an opt. solution x, Dual has an opt. solution y. Furthermore, optimal values are same: c T x = b T y. Weak Duality implies c T x · b T y. So strong duality says c T x ¸ b T y. Restatement of Theorem: Primal has an optimal solution, Dual has an optimal solution, the following system is solvable: Punchline: Finding optimal primal & dual LP solutions is equivalent to solving this system of inequalities. Can we characterize when systems of inequalities are solvable? (for any feasible x,y) (for optimal x,y)

Systems of Equalities Lemma: Exactly one of the following holds: – There exists x satisfying Ax=b – There exists y satisfying y T A=0 and y T b>0 Geometrically… x1x1 x2x2 span(A 1,…,A n ) = column space of A x3x3 A1A1 A2A2 b (b is in column space of A)

Systems of Equalities Lemma: Exactly one of the following holds: – There exists x satisfying Ax=b (b is in column space of A) – There exists y satisfying y T A=0 and y T b>0 (or it is not) Geometrically… x2x2 column space of A x3x3 A1A1 A2A2 b x1x1 y Hyperplane Positive open halfspace ++ H a,0 col-space(A) µ H y,0 but b 2 H y,0

Systems of Inequalities Lemma: Exactly one of the following holds: – There exists x ¸ 0 satisfying Ax=b – There exists y satisfying y T A ¸ 0 and y T b<0 Geometrically… Let cone(A 1,…,A n ) = { § i x i A i : x ¸ 0 } “cone generated by A 1,…,A n ” (Here A i is the i th column of A) x1x1 x2x2 x3x3 A1A1 A2A2 b A3A3 cone(A 1,…,A n ) (b is in cone(A 1,…,A n ))

Systems of Inequalities Lemma: Exactly one of the following holds: – There exists x ¸ 0 satisfying Ax=b (b is in cone(A 1,…,A n )) – There exists y satisfying y T A ¸ 0 and y T b<0 Geometrically… x1x1 x2x2 x3x3 A1A1 A2A2 b A3A3 cone(A 1,…,A n ) Positive closed halfspace Negative open halfspace --+ H y,0 cone(A 1, ,A n ) 2 H y,0 but b 2 H y,0 (y gives a separating hyperplane) y

Lemma: Exactly one of the following holds: – There exists x ¸ 0 satisfying Ax=b (b is in cone(A 1,…,A n )) – There exists y satisfying y T A ¸ 0 and y T b<0 (y gives a “separating hyperplane”) This is called “Farkas’ Lemma” – It has many interesting proofs. – It is “equivalent” to strong duality for LP. – There are several “equivalent” versions of it. Gyula Farkas Systems of Inequalities

Gyula Farkas Variants of Farkas’ Lemma The System Ax · b Ax = b has no solution x ¸ 0 iff 9 y ¸ 0, A T y ¸ 0, b T y<0 9 y 2R n, A T y ¸ 0, b T y<0 has no solution x 2R n iff 9 y ¸ 0, A T y=0, b T y<0 9 y 2R n, A T y=0, b T y  0 This is the simple lemma on systems of equalities These are all “equivalent” (each can be proved using another)