Lecture 19 Linear Program

Slides:



Advertisements
Similar presentations
3.4 Linear Programming.
Advertisements

3.4 Linear Programming 10/31/2008. Optimization: finding the solution that is either a minimum or maximum.
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.
ECE Longest Path dual 1 ECE 665 Spring 2005 ECE 665 Spring 2005 Computer Algorithms with Applications to VLSI CAD Linear Programming Duality – Longest.
Introduction to Algorithms
Linear Programming Unit 2, Lesson 4 10/13.
Linear Programming and Approximation
Totally Unimodular Matrices Lecture 11: Feb 23 Simplex Algorithm Elliposid Algorithm.
Math443/543 Mathematical Modeling and Optimization
Linear programming maximize x 1 + x 2 x 1 + 3x 2  3 3x 1 + x 2  5 x 1  0 x 2  0.
Foundations for LP Sean Eom. In this course, LP is the foundation of all other quantitative models. Study of LP and related techniques (Integer LP and.
Linear Programming – Max Flow – Min Cut Orgad Keller.
3.4 Linear Programming.
1 Spanning Tree Polytope x1 x2 x3 Lecture 11: Feb 21.
Systems of Linear Inequalities.  Two or more linear inequalities together form a system of linear inequalities.
Linear Programming Operations Research – Engineering and Math Management Sciences – Business Goals for this section  Modeling situations in a linear environment.
Chapter 5 Linear Inequalities and Linear Programming Section R Review.
Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities.
Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities.
Systems of Linear Equations and Inequalities (Chapter 3)
3.4 Linear Programming p Optimization - Finding the minimum or maximum value of some quantity. Linear programming is a form of optimization where.
Theory of Computing Lecture 13 MAS 714 Hartmut Klauck.
Linear Programming Introduction: Linear programming(LP) is a mathematical optimization technique. By “Optimization” technique we mean a method which attempts.
Review for E&CE Find the minimal cost spanning tree for the graph below (where Values on edges represent the costs). 3 Ans. 18.
Route Planning Texas Transfer Corp (TTC) Case 1. Linear programming Example: Woodcarving, Inc. Manufactures two types of wooden toys  Soldiers sell for.
Network Flow. Network flow formulation A network G = (V, E). Capacity c(u, v)  0 for edge (u, v). Assume c(u, v) = 0 if (u, v)  E. Source s and sink.
Notes 7.5 – Systems of Inequalities. I. Half-Planes A.) Given the inequality, the line is the boundary, and the half- plane “below” the boundary is the.
11C. Linear Programming. What is a linear programming problem? 1.A set of variables (in Further Maths there will only ever be two variables) called decision.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
3.4 – Linear Programming. Ex. 1 Graph the system of inequalities. Name the coordinates of the vertices of the feasible region. Find the max & min values.
Class Opener: Solve each equation for Y: 1.3x + y = y = 2x 3.x + 2y = 5 4. x – y = x + 3y = x – 5y = -3.
Warm-up Solve each system of equations:
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.
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.
(0, 0) (36, 0) (30, 4) (0, 10) WARM UP: a. Graph the system of inequalities. b. What are the vertices of the solution? Write your answers as ordered pairs.
3-5: Linear Programming. Learning Target I can solve linear programing problem.
Linear Programming. What is linear programming? Use a system of constraints (inequalities) to find the vertices of the feasible region (overlapping shaded.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
3.3 Linear Programming. Vocabulary Constraints: linear inequalities; boundary lines Objective Function: Equation in standard form used to determine the.
1. What does a need to be if there were infinitely many solutions to the system of equations. y + 2x = 12 2y + 4x = 2a.
3.4 Linear Programming p Optimization - Finding the minimum or maximum value of some quantity. Linear programming is a form of optimization where.
AS Decision Maths Tips for each Topic. Kruskal and Prim What examiner’s are looking for A table of values in the order that they are added and the total.
Linear Programming Chapter 3 Lesson 4 Vocabulary Constraints- Conditions given to variables, often expressed as linear inequalities. Feasible Region-
Lap Chi Lau we will only use slides 4 to 19
Topics in Algorithms Lap Chi Lau.
7.6 Solving Systems of Linear Inequalities
Lecture 16 Maximum Matching
3.2 Linear Programming 3 Credits AS
Chapter 5 Linear Inequalities and Linear Programming
3-3 Optimization with Linear Programming
Linear Programming.
3.4 – Linear Programming.
3.3 Graph Systems of Linear Inequalities
Introduction Basic formulations Applications
Lecture 19-Problem Solving 4 Incremental Method
Linear Programming and Approximation
8.4 Linear Programming p
Problem Solving 4.
1.3 Modeling with exponentially many constr.
LINEARPROGRAMMING 4/26/2019 9:23 AM 4/26/2019 9:23 AM 1.
Winter 2019 Lecture 11 Minimum Spanning Trees (Part II)
Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an equation.
Section Linear Programming
1.6 Linear Programming Pg. 30.
3.3 Graphing and Solving Systems of Linear Inequalities
Autumn 2019 Lecture 11 Minimum Spanning Trees (Part II)
Presentation transcript:

Lecture 19 Linear Program

Recap Shortest path Minimum spanning tree Maximum matching Common: Optimizing some objective (length of paths, weight of the tree, number of matches) Very different techniques Hope: A common technique that can solve all problems

Linear Relationships Inequalities that are linear in all parameters. Example. If d[u] = shortest path distance from s to u, then for any edge (u,v) 𝑑 𝑣 ≤𝑑 𝑢 +𝑤(𝑢,𝑣)

Linear Relationships Example 2: Let xi,j = 1 if course i is matched to classroom j, and 0 otherwise. Each classroom is matched to at most one course. ∀𝑗 𝑖=1 𝑛 𝑥 𝑖,𝑗 ≤1

Linear Program Optimize a linear function (objective), under a set of linear inequality constraints. max 2𝑥+𝑦 𝑥≥0 𝑦≥0 𝑥+𝑦≤1

Geometric Interpretation Linear inequality  Half planes x y x y x y 𝑥+𝑦≤1 𝑥≥0 𝑦≥0

Geometric Interpretation System of linear inequalities  intersections Green: Feasible set. Point in Green: feasible solution. x y

Geometric Interpretation Objective function  Direction of gravity x y x y max 2𝑥+𝑦

Geometric Interpretation Optimal Point  Lowest point Optimal solution: (x, y) = (1, 0), value = 2. x y

Canonical Form min 𝑐,𝑥 𝐴𝑥≥𝑏 𝑥≥0 c x A x b ≥

Converting to Canonical Form Equality constraints (e.g. x+y = 3) Solution: Split into two constraints 𝑥+𝑦≥3 𝑥+𝑦≤3

Converting to Canonical Form Free variable: x may or may not be nonnegative. Solution: Split x into x1 and x2 𝑥= 𝑥 1 − 𝑥 2 𝑥 1 ≥0 𝑥 2 ≥0

Using LP to solve graph problems Edge (i, j): Course i can be scheduled into classroom j Courses Classrooms Solution: A set of edges that do not share any vertices. (a matching)

Using LP to solve graph problems 1 2 1 2 3 3 1 2 4 5 6 4 1 1 3 2 7 8 9 1 1