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

Slides:



Advertisements
Similar presentations
Cognitive Radio Communications and Networks: Principles and Practice By A. M. Wyglinski, M. Nekovee, Y. T. Hou (Elsevier, December 2009) 1 Chapter 12 Cross-Layer.
Advertisements

Thursday, April 11 Some more applications of integer
Introduction to Algorithms 6.046J/18.401J/SMA5503
Thursday, March 7 Duality 2 – The dual problem, in general – illustrating duality with 2-person 0-sum game theory Handouts: Lecture Notes.
Tuesday, March 5 Duality – The art of obtaining bounds – weak and strong duality Handouts: Lecture Notes.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Algorithms for MAP estimation in Markov Random Fields Vladimir Kolmogorov University College London Tutorial at GDR (Optimisation Discrète, Graph Cuts.
1 Outline relationship among topics secrets LP with upper bounds by Simplex method basic feasible solution (BFS) by Simplex method for bounded variables.
1 Column Generation. 2 Outline trim loss problem different formulations column generation the trim loss problem master problem and subproblem in column.
Shadow Prices vs. Vickrey Prices in Multipath Routing Parthasarathy Ramanujam, Zongpeng Li and Lisa Higham University of Calgary Presented by Ajay Gopinathan.
Outline Minimum Spanning Tree Maximal Flow Algorithm LP formulation 1.
IEOR 4004 Final Review part II.
The simplex algorithm The simplex algorithm is the classical method for solving linear programs. Its running time is not polynomial in the worst case.
Addition 1’s to 20.
Week 1.
Dantzig-Wolfe Decomposition
Minimum Vertex Cover in Rectangle Graphs
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.
IEOR 4004 Midterm review (Part II) March 12, 2014.
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,
Linear Programming (LP) (Chap.29)
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
ICCV 2007 tutorial Part III Message-passing algorithms for energy minimization Vladimir Kolmogorov University College London.
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
Instructor Neelima Gupta Table of Contents Lp –rounding Dual Fitting LP-Duality.
CSCI 3160 Design and Analysis of Algorithms Tutorial 6 Fei Chen.
Linear Programming and Approximation
Totally Unimodular Matrices Lecture 11: Feb 23 Simplex Algorithm Elliposid Algorithm.
Duality Lecture 10: Feb 9. Min-Max theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum Cut Both.
Duality Dual problem Duality Theorem Complementary Slackness
Approximation Algorithms
Computational Methods for Management and Economics Carla Gomes
Linear Programming – Max Flow – Min Cut Orgad Keller.
LP formulation of Economic Dispatch
Max-flow/min-cut theorem Theorem: For each network with one source and one sink, the maximum flow from the source to the destination is equal to the minimal.
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A A A A A A A Image:
Algorithms for MAP estimation in Markov Random Fields Vladimir Kolmogorov University College London.
Fast and accurate energy minimization for static or time-varying Markov Random Fields (MRFs) Nikos Komodakis (Ecole Centrale Paris) Nikos Paragios (Ecole.
Advanced Operations Research Models Instructor: Dr. A. Seifi Teaching Assistant: Golbarg Kazemi 1.
Probabilistic Inference Lecture 5 M. Pawan Kumar Slides available online
1 System Planning 2013 Lecture 7: Optimization Appendix A Contents: –General about optimization –Formulating optimization problems –Linear Programming.
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.
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.
OR Chapter 7. The Revised Simplex Method  Recall Theorem 3.1, same basis  same dictionary Entire dictionary can be constructed as long as we.
Lecture.6. Table of Contents Lp –rounding Dual Fitting LP-Duality.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
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.
Lap Chi Lau we will only use slides 4 to 19
Topics in Algorithms Lap Chi Lau.
The minimum cost flow problem
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
Chap 9. General LP problems: Duality and Infeasibility
Linear Programming Piyush Kumar Welcome to COT 5405.
Linear Programming and Approximation
Linear Programming Duality, Reductions, and Bipartite Matching
Chapter 5. The Duality Theorem
Lecture 20 Linear Program Duality
Flow Feasibility Problems
Chapter 1. Formulations.
Presentation transcript:

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

2 Outline Linear programming and duality Extended maxflow TRW Some slides from Ziv Bar-Yossef (Technion) Much content from Vladimir Kolmogorov

3 Linear Programming Fast algorithms - O(n 3 ) or so Numerous interesting special cases can be encoded as LPs Many ways to convert between LPs –Sometimes you can transform into a fast special case Can sometimes solve integer programs –Integrality gap: IP versus LP solution

4 Example

5

6 Solving LP Graphically Feasible region Vertices Objective function Optimal solution

7 Notes on solutions Maximum is always at a vertex –Simplex algorithm Certain constraints are tight –So you can check if the solution is integral!

8 Convert any LP to Standard Form

9 Bounding the Optimal Solution Suppose we wish to find an upper bound on the optimal solution Multiply first constraint by 3: z 90 Add first and second constraints: z 54 What linear combination gives the best upper bound?

10 Bound Optimal Solution by LP Primal Dual

11 Primal vs. Dual Lemma: The dual of the dual is the primal. Theorem (Weak Duality) For any feasible solution x for the primal (cost vector c), and for any feasible solution y for the dual (cost b), Theorem (Strong Duality) If the primal has an optimal solution x *, then the dual also has an optimal solution y *, and

12 RDZs favorite dual

13 Notes Solutions to dual are not obviously cuts –Why are the y I,j values 0 or 1? Any flow · any cut –We can find the biggest flow fast By strong duality this is the value of the cheapest cut –But how do we actually find the cut? –How about in generality?

14 Complementary slackness Easy to go from dual optimum solution to primal optimal solution –No guarantees if dual solution isnt optimal Dual variable y j is zero iff jth constraint is slack (not tight) –So you know which constraint lines intersect at the optimum!

15 LP for energy minimization We can formulate E(x) as an IP –Since IPs are NP-hard –We replace x p by indicator variables x p;k which are like probabilities (non negative, sum to 1) Similarly, need x pq;ij for adjacent pixels Parameters are costs –We can then relax this IP to an LP and solve it If integer solutions, we are done Note that we first need to actually solve the LP!

16 Primal LP [Chekuri00]

17 Importance of this LP This LP is vital for both extended maxflow (quadratic pseudo-boolean optimization) and TRW(-S) –Both work on its dual So by solving the dual we are maximizing a lower bound on the energy

18 Extended maxflow vs TRW Maxflow is only for binary labels –I.e., for the expansion move algorithm Maxflow solves the LP exactly Solutions are [1 0] or [0 1] or [.5.5] No ambiguities if problem is regular Automatically does flipping If not regular, solution is persistent

19 Extended maxflow non-negative - lower bound on the energy: maximize Maximize lower bound on E

20 TRW idea Decompose graph into a collection of trees with different parameterizations Weak tree agreement (WTA): –Consider all trees incorporating a node. Their parameterizations with cost 0 all agree. Normal form tree parameterization –node params are min marginals (after BP) Goal is normal form and WTA

21 TRW(-S) properties WTA and normal form holds at the dual solution (max ( )) –For binary labels only! TRW(-S) tries to achieve this –TRW doesnt always converge to a solution where this is true (TRW-S does) –What it converges for isnt necessarily the dual solution (except for 2 labels) –The primal solution may not be integral