Political problem Suppose a politician trying to win an election 3 types of areas --- urban, suburban, rural. Certain issues --- road, gun control, farm.

Slides:



Advertisements
Similar presentations
3.4 Linear Programming 10/31/2008. Optimization: finding the solution that is either a minimum or maximum.
Advertisements

1 LP, extended maxflow, TRW OR: How to understand Vladimirs most recent work Ramin Zabih Cornell University.
1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
Linear Programming Problem
ECE Longest Path dual 1 ECE 665 Spring 2005 ECE 665 Spring 2005 Computer Algorithms with Applications to VLSI CAD Linear Programming Duality – Longest.
Linear Programming (LP) (Chap.29)
Introduction to Algorithms
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2002 Lecture 8 Tuesday, 11/19/02 Linear Programming.
1 Introduction to Linear Programming. 2 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. X1X2X3X4X1X2X3X4.
Dragan Jovicic Harvinder Singh
Theory of Computing Lecture 14 MAS 714 Hartmut Klauck.
Modeling problems with Integer Linear Programming (ILP) Name: Chuan Huang.
Linear Programming?!?! Sec Linear Programming In management science, it is often required to maximize or minimize a linear function called an objective.
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
Linear Programming.
1 Linear Programming Jose Rolim University of Geneva.
Linear Programming Unit 2, Lesson 4 10/13.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2006 Lecture 9 Wednesday, 11/15/06 Linear Programming.
Introduction to Linear and Integer Programming Lecture 7: Feb 1.
Linear programming maximize x 1 + x 2 x 1 + 3x 2  3 3x 1 + x 2  5 x 1  0 x 2  0.
Matching Polytope, Stable Matching Polytope Lecture 8: Feb 2 x1 x2 x3 x1 x2 x3.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
Linear Programming OPIM 310-Lecture 2 Instructor: Jose Cruz.
Linear Programming – Max Flow – Min Cut Orgad Keller.
INTRODUCTION TO LINEAR PROGRAMMING
Objectives: Set up a Linear Programming Problem Solve a Linear Programming Problem.
1 Ford-Fulkerson method Ford-Fulkerson(G) f = 0 while( 9 simple path p from s to t in G f ) f := f + f p output f Runs in time O(|f max | |E|) where f.
1 Integrality constraints Integrality constraints are often crucial when modeling optimizayion problems as linear programs. We have seen that if our linear.
1 Spanning Tree Polytope x1 x2 x3 Lecture 11: Feb 21.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2008 Lecture 9 Tuesday, 11/18/08 Linear Programming.
Linear Programming Operations Research – Engineering and Math Management Sciences – Business Goals for this section  Modeling situations in a linear environment.
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
Integer programming Branch & bound algorithm ( B&B )
C&O 355 Lecture 2 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A.
Duality Theory 對偶理論.
Approximating Minimum Bounded Degree Spanning Tree (MBDST) Mohit Singh and Lap Chi Lau “Approximating Minimum Bounded DegreeApproximating Minimum Bounded.
Theory of Computing Lecture 13 MAS 714 Hartmut Klauck.
TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A A A A A A A Image:
Chapter 2 Greedy Strategy I. Independent System Ding-Zhu Du.
Linear Programming Problem. Definition A linear programming problem is the problem of optimizing (maximizing or minimizing) a linear function (a function.
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
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.
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.
Review for E&CE Find the minimal cost spanning tree for the graph below (where Values on edges represent the costs). 3 Ans. 18.
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.
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.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2010 Lecture 9 Tuesday, 4/20/10 Linear Programming 1.
CS4234 Optimiz(s)ation Algorithms L2 – Linear Programming.
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
Topics in Algorithms Lap Chi Lau.
Linear Programming (LP) (Chap.29)
Copyright © Cengage Learning. All rights reserved.
Linear Programming.
GreedyMaxCut a b w c d e 1.
Linear Programming and Approximation
Graphical Solution of Linear Programming Problems
Data structure: Heap Representation change: Heapsort Problem reduction
Data structure: Heap Representation change: Heapsort Problem reduction
Linear Programming Problem
LINEARPROGRAMMING 4/26/2019 9:23 AM 4/26/2019 9:23 AM 1.
Lecture 19 Linear Program
Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an equation.
1.6 Linear Programming Pg. 30.
Data structure: Heap Representation change: Heapsort Problem reduction
Presentation transcript:

Political problem Suppose a politician trying to win an election 3 types of areas --- urban, suburban, rural. Certain issues --- road, gun control, farm subsidies, gasoline tax. Try to find out the minimum amount of money you need to win 50,000 urban, 100,000 suburban, 25,000 rural votes. Policyurban suburban rural Build roads Gun control Farm subsidies Gasoline tax The effects of policies on votes.

4 variables : x1 is the # of thousands of dollars on advertising on building roads. x2 is the # of thousands of dollars on advertising on gun control. x3 is the # of thousands of dollars on advertising on farm subsidies. x4 is the # of thousands of dollars on advertising on gasoline tax. We format this problem as: Minimize: x1 + x2 + x3 + x4 Subject to: -2x1 +8x2 +0x3 +10x4  50 5x1 +2x2 +0x3 +0x4  50 3x1 +5x2 +10x3 +2x4  50 x1, x2, x3, x4  0 The solution of this liner program will yield an optimal strategy for the politician.

An overview of liner programming : Two forms: standard and slack. Linear program with two variables: Maximize x1+x2 Subject to:4x1-x2  8 2x1 +x2  10 5x1- 2x2  -2 x1, x2  0 Feasible solution : if x1 and x2 satisfies all the constraints.

Formulating problems as linear programs Shortest paths: minimize d[t] subject to:d[v]  d[u] + w( u, v ) for each (u, v)  E. d[s] = 0. Maximum flow: maximize  f[s,v] subject to:f[u,v]  c[u,v] for each u, v  V, f[u,v] = -f[v,u] for each u, v  V,  f[u,v] = 0 for each u  V – {s,t}.

Minimum-cost-flow problem s x y t c=5 a=2 c=2 a=7 c=4 a=1 c=2 a=5 c=1 a=3 An example of minimum cost flow problem. s x y t 2/5 a=2 3/4 a=1 2/2 a=5 1/1 a=3 A solution to minimum cost flow problem. 1/2 a=7

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:  a 1i x i  b 1  a 2i x i  b 2.  a mi x i  b m x1..xnx1..xn b1..bnb1..bn a 11 … a 1n …… a n1 … a mn

Example LP n = 2; m = 4 x 1 + x 2  max x 1  0 (-1)x 1 + 0x 2  0 x 2  0 0x 1 + (-1)x 2  0 x 1  5 (-1)x 1 + 0x 2  5 x 2  6 0x 1 + 1x 2  6 c = (1, 1) b = A = Optimal solution is the unique point of intersection of the objective with the hyperplane feasible polytope. x 2 optimal solution x 1 = 5 ; x 2 = 6 objective: x 1 + x 2 = 11 x Feasible solution region

Integer Linear Programming (ILP) Vector Form Maximize: cx Subject to : Ax  b and x  {0,1} c = (c 1, c 2, …, c n ) x = b = A = Summation Form Maximize:  c i x i Subject to:  a 1i x i  b 1  a 2i x i  b 2.  a mi x i  b m and x  {0,1} x1..xnx1..xn b1..bnb1..bn a 11 … a 1n …… a n1 … a mn

ILP for MIS Maximum Independent Set (MIS) - Find the maximum subset of nodes in graph G = (V, E) which are pairwise non-adjacent ILP - For any v  V make a variable x v  {0, 1} x v = 0  v  MIS which means 0 is not chosen x v = 1  v  MIS which means 1 is chosen - Maximize  v  V x v Subject to:  e = (u, v)  V, x u + x v  1

Example ILP of MIS Max: x 1 + x 2 + x 3 + x 4 + x 5 + x 6 subject to: x 1 + x 6  1 x 1 + x 2  1 x 2 + x 3  1 x 3 + x 6  1 x 3 + x 5  1 x 6 + x 5  1 x 3 + x 4  1 x 4 + x 5  1 and x 1, x 2,…, x 6  {0,1} Graph

ILP for MaxClique ILP -  x i  max - Subject to: x i + x j  1  (i, j)  E MaxClique - Given G = (V, E) - Find X  V  x, x’  X (x, x’)  E |X|  max

ILP for Matching Matching - Given G = (V, E) - Find X  E  e, e’  X e and e’ don’t share endpoint. |X|  max ILP - for any e  E x e  {0, 1} + 0 is not in matching + 1 is in matching -  e  E x e  max - Subject to:  e incident to V x e  1  v  V e 2 x e 1 + x e 2 + x e 3  1 only one edge from e 1 e 3 matching can be incident to v v

LP relaxation (LPR) vs. ILP LP relaxation (LPR) for MAX independent set problem (MISP) gives larger value than the maximum size of independent set. MISP  x i  max, i  V x i + x j  1, for each edge (x i,x j )  E x i  {0, 1} LPR  x i  max, i  V x i + x j  1, for each edge (x i,x j )  E 0  x i  1

Example 1 of ILP vs. LPR  x i  max x 1 +x 6  1 x 1 +x 2  1 x 5 +x 6  1 x 5 +x 2  1 x 5 +x 4  1 x 4 +x 3  1 x 4 +x 2  1 x 2 +x 3  1 ILP x 1 = x 3 = x 5 = 1  x i = 3 LPR x i = ½  x i =

MISP Integrality Gap x 1 +x 2 + x 3  max x 1 +x 2  1 x 1 +x 3  1 x 2 +x 3  1 0  x 1  1 0  x 2  1 0  x 3  1 LPR (  )  3/2 Implies LPR (  ) = 3/2 So x 1 = x 2 = x 3 = ½  LPR (  )  3/2 ILP (  ) = 1 Integrality Gap (IG) = LPR / ILP = 3/2 What is the integrality gap for (MISP) For a complete graph ILP (Kn) = 1 LPR (Kn) = n/2 Integrality Gap (IG) = LPR / ILP Integrality gap may be as large as n/

LPR vs. ILP LP relaxation (LPR) for Minimum Vertex Cover problem (MVCP) gives smaller value than the minimum size of vertex cover MVCP  x i  min, i  V x i + x j  1, for each e= (x i,x j )  E x i  {0, 1} LPR  x i  min, i  V x i + x j  1, for each e= (x i,x j )  E 0  x i  1

MVCP Integrality Gap x 1 +x 2 + x 3  min x 1 +x 2  1 x 1 +x 3  1 x 2 +x 3  1 0  x 1  1 0  x 2  1 0  x 3  1 LPR (  )  3/2 Implies LPR (  ) = 3/2 So x 1 = x 2 = x 3 = ½  LPR (  )  3/2 ILP (  ) = 2 Integrality Gap (IG) = ILP / LPR = 4/3 What is the integrality gap for (MVCP) For a complete graph ILP (Kn) = n - 1 LPR (Kn) = n/2 Integrality Gap (IG) = ILP / LPR Integrality gap may be as large as 2 – (2 / n) For more information: unix.mcs.anl.gov/otc/Guide/faq/lin ear-programming-faq.html 1 2 3