TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A A A A A A A Image:

Slides:



Advertisements
Similar presentations
The Primal-Dual Method: Steiner Forest TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A AA A A A AA A A.
Advertisements

1 LP, extended maxflow, TRW OR: How to understand Vladimirs most recent work Ramin Zabih Cornell University.
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 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 Mathematical Programming Fall 2010 Lecture 6 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A.
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
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.
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
CS38 Introduction to Algorithms Lecture 15 May 20, CS38 Lecture 15.
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
Linear programming maximize x 1 + x 2 x 1 + 3x 2  3 3x 1 + x 2  5 x 1  0 x 2  0.
Computational Methods for Management and Economics Carla Gomes
Linear Programming – Max Flow – Min Cut Orgad Keller.
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.
Duality Theory 對偶理論.
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.
Simplex method (algebraic interpretation)
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.
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.
Advanced Operations Research Models Instructor: Dr. A. Seifi Teaching Assistant: Golbarg Kazemi 1.
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.
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.
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.
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 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.
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.
Approximation Algorithms Duality My T. UF.
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.
Polyhedral Optimization Lecture 2 – Part 2 M. Pawan Kumar Slides available online
Lap Chi Lau we will only use slides 4 to 19
Chap 10. Sensitivity Analysis
Topics in Algorithms Lap Chi Lau.
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
Chap 9. General LP problems: Duality and Infeasibility
Analysis of Algorithms
Chapter 5. The Duality Theorem
Chapter 2. Simplex method
Presentation transcript:

TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A A A A A A A Image: C&O 355 Mathematical Programming Fall 2010 Lecture 3 N. Harvey

C&O 355 Mathematical Programming Fall 2010 Lecture 1 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

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

Rules for Duals PrimalDual Objectivemax c T xmin b T y Variablesx 1, …, x n y 1,…, y m Constraint matrixAATAT Right-hand vectorbc Constraints versus Variables i th constraint: · i th constraint: ¸ i th constraint: = x i ¸ 0 x i · 0 x i unrestricted y i ¸ 0 y i · 0 y i unrestricted j th constraint: ¸ j th constraint: · j th constraint: = Note: Not symmetric Useful Mnemonic “Natural” bound on a variable is ¸ 0 “Natural” constraint for a maximization problem is · 0 “Natural” constraint for a minimization problem is ¸ 0 “Natural” A has size m x n

Example: Bipartite Matching (from Lecture 2) 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 But we don’t know how to solve IPs. Try an LP instead. (LP) Write an integer program (IP)

Example: Bipartite Matching (from Lecture 2) The LP formulation is: (Primal) Using “Rules for Duals”: (Dual) If you add the constraint y v 2 {0,1} to (Dual), it becomes the “vertex cover problem”. There is a nice duality between the bipartite matching and vertex cover problems. (We’ll see this later in the course.)

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!

Certificates For any LP, I can convince you that optimal value is… ¸ k: by giving a primal feasible x with obj. value ¸ k. · k: by giving a dual feasible ¸ with obj. value · k. Theorem: Such certificates always exists. (stated in Lecture 2) Proof: Immediate from strong duality theorem. ¥ Theorems like this are very strong and useful. Other famous examples: Konig / Hall’s Theorem (Graph theory) Max-flow Min-cut Theorem (Network flow theory) Hilbert’s Nullstellensatz (Algebraic geometry)

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 Proof: Simple consequence of Gaussian elimination working. Perform row eliminations on augmented matrix [ A | b ], so that A becomes upper-triangular If resulting system has i th row of A equal to zero but b i non-zero then no solution exists – This can be expressed as y T A=0 and y T b<0. Otherwise, back-substitution yields a solution. ¥ Or y T b>0, by negating 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… x1x1 x2x2 span(A 1,…,A n ) = column space of A x3x3 A1A1 A2A2 b

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 ¸ i A i : ¸ ¸ 0 } “cone generated by A 1,…,A n ” 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