is redundant. If you satisfy the other four constraints, then you automatically satisfy x 1 0. (In fact, if the first two constraints hold, then x 1 m

Similar documents
The Graphical Method: An Example

Module1. x y 800.

OPRE 6201 : 2. Simplex Method

What is Linear Programming?

Linear Programming Notes V Problem Transformations

3. Evaluate the objective function at each vertex. Put the vertices into a table: Vertex P=3x+2y (0, 0) 0 min (0, 5) 10 (15, 0) 45 (12, 2) 40 Max

. P. 4.3 Basic feasible solutions and vertices of polyhedra. x 1. x 2

Mathematical Induction. Mary Barnes Sue Gordon

Linear Programming. Solving LP Models Using MS Excel, 18

Question 2: How do you solve a linear programming problem with a graph?

3.1 Solving Systems Using Tables and Graphs

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood

Chapter 9. Systems of Linear Equations

Linear Programming I

Linear Programming for Optimization. Mark A. Schulze, Ph.D. Perceptive Scientific Instruments, Inc.

Chapter 5. Linear Inequalities and Linear Programming. Linear Programming in Two Dimensions: A Geometric Approach

1 Solving LPs: The Simplex Algorithm of George Dantzig

Special Situations in the Simplex Algorithm

Linear Programming. March 14, 2014

5 Systems of Equations

Linear Programming Notes VII Sensitivity Analysis

Chapter 3: Section 3-3 Solutions of Linear Programming Problems

4.6 Linear Programming duality

1. Graphing Linear Inequalities

CHAPTER 11: BASIC LINEAR PROGRAMMING CONCEPTS

Linear Programming Problems

Section 7.2 Linear Programming: The Graphical Method

Using Linear Programming in Real-Life Problems

Lesson 26: Reflection & Mirror Diagrams

Largest Fixed-Aspect, Axis-Aligned Rectangle

EdExcel Decision Mathematics 1

Systems of Equations - Substitution

Determine If An Equation Represents a Function

Lecture 2: August 29. Linear Programming (part I)

Linear Programming Supplement E

Kenken For Teachers. Tom Davis June 27, Abstract

Questions. Strategies August/September Number Theory. What is meant by a number being evenly divisible by another number?

Basic Components of an LP:

Linear Programming: Theory and Applications

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

Duality of linear conic problems

Algebra I Notes Relations and Functions Unit 03a

(Refer Slide Time: 2:03)

IEOR 4404 Homework #2 Intro OR: Deterministic Models February 14, 2011 Prof. Jay Sethuraman Page 1 of 5. Homework #2

Arrangements And Duality

Introductory Notes on Demand Theory

1 if 1 x 0 1 if 0 x 1

MATH STUDENT BOOK. 8th Grade Unit 6

1 Introduction. Linear Programming. Questions. A general optimization problem is of the form: choose x to. max f(x) subject to x S. where.

Study Guide 2 Solutions MATH 111

24. The Branch and Bound Method

EQUATIONS and INEQUALITIES

Linear functions Increasing Linear Functions. Decreasing Linear Functions

LINEAR EQUATIONS IN TWO VARIABLES

Computational Geometry. Lecture 1: Introduction and Convex Hulls

Solving Systems of Linear Equations

Solutions of Linear Equations in One Variable

Reflection and Refraction

Common Core Unit Summary Grades 6 to 8

Sneaking up on Slope

Solving Systems of Linear Equations

Linear Programming. Widget Factory Example. Linear Programming: Standard Form. Widget Factory Example: Continued.

Solutions to Math 51 First Exam January 29, 2015

SYSTEMS OF LINEAR EQUATIONS

Systems of Linear Equations in Three Variables

Definition 8.1 Two inequalities are equivalent if they have the same solution set. Add or Subtract the same value on both sides of the inequality.

Intersection of a Line and a Convex. Hull of Points Cloud

High School Algebra Reasoning with Equations and Inequalities Solve systems of equations.

Walrasian Demand. u(x) where B(p, w) = {x R n + : p x w}.

MATH2210 Notebook 1 Fall Semester 2016/ MATH2210 Notebook Solving Systems of Linear Equations... 3

CHOOSING A COLLEGE. Teacher s Guide Getting Started. Nathan N. Alexander Charlotte, NC

Acquisition Lesson Planning Form Key Standards addressed in this Lesson: MM2A2c Time allotted for this Lesson: 5 Hours

Several Views of Support Vector Machines

A vector is a directed line segment used to represent a vector quantity.

Chapter 6. Cuboids. and. vol(conv(p ))

Applied Algorithm Design Lecture 5

No: Bilkent University. Monotonic Extension. Farhad Husseinov. Discussion Papers. Department of Economics

What does the number m in y = mx + b measure? To find out, suppose (x 1, y 1 ) and (x 2, y 2 ) are two points on the graph of y = mx + b.

Duality in Linear Programming

INCIDENCE-BETWEENNESS GEOMETRY

Pre-Algebra Academic Content Standards Grade Eight Ohio. Number, Number Sense and Operations Standard. Number and Number Systems

Max-Min Representation of Piecewise Linear Functions

Lecture 1: Systems of Linear Equations

Lecture 3. Linear Programming. 3B1B Optimization Michaelmas 2015 A. Zisserman. Extreme solutions. Simplex method. Interior point method

Geometry Review Flash Cards

Objectives. Materials

E XPLORING QUADRILATERALS

Sensitivity Analysis with Excel

2.3 Convex Constrained Optimization Problems

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

Chapter 1 Section 4: Compound Linear Inequalities

Linear Programming II: Minimization 2006 Samuel L. Baker Assignment 11 is on page 16.

1 Portfolio mean and variance

LINEAR INEQUALITIES. less than, < 2x + 5 x 3 less than or equal to, greater than, > 3x 2 x 6 greater than or equal to,

Linear Equations. Find the domain and the range of the following set. {(4,5), (7,8), (-1,3), (3,3), (2,-3)}

Session 7 Bivariate Data and Analysis

Linear Programming. April 12, 2005

Math 4310 Handout - Quotient Vector Spaces

Chapter 2 An Introduction to Forwards and Options

Optimization Modeling for Mining Engineers

Transcription:

Linear Programming Notes II: Graphical Solutions 1 Graphing Linear Inequalities in the Plane You can solve linear programming problems involving just two variables by drawing a picture. The method works for problems with more than two variables, but it is hard to visualize the higher dimensional problems. There are essentially two things you need to know in order to find graphical solutions to linear programming problems. First, you need to be able to graph the solution to linear inequalities in the plane. Second, you need to be able to see how the relationship between these points and the value of the objective function. I will discuss the first topic in this section. The next section will discuss the second topic. As a warm up, remember how to graph a line. You find two points that are on the line and then connect them. For example, if the line is described by the equation: 2x 1 + x 2 =2, then you can observe that the points (x 1 ;x 2 )=(1; 0) and (x 1 ;x 2 )=(0; 2) are on the line. onnecting them leads to a straight line. The inequality, consists of all of the points above and to the right of the straight line. (In general, inequalities are satisfied by points on one side of the line. In order to determine which set consists of the point that satisfies the inequality, I test by checking an arbitrary point not on the line. For example, (x 1 ;x 2 )=(0; 0) does not satisfy the inequality. onsequently the set of points that satisfies the inequality consists of the points on the side of the line 2x 1 + x 2 = 2 that does not contain (0; 0). Now you can figure out how to graph one inequality. If your linear programming problem had only one constraint, you would be in business. LPs can have many constraints (and typically do). In order to complete the process, you graph the constraints one at a time. The feasible region is the intersection. onsider, for example, the set determined by thefive inequalities 4x 1 + x 2» 8 x 0: This is region bounded by the quadrilateral pictured. (The four corners are (0; 2), (1; 0), (2; 0), and (1; 4).) (I only havesomuch patience for doing the work needed to include graphs. Please accept the humble offerings at the end of the notes.) There are several things to note. Why did I say that there were five inequalities? The first three lines describe one inequality each. The fourth line describes two: x 1 0 and x 2 0: If you have five inequalities, you would expect the feasible set of have five sides. This set has only four. The reason is that the constraint that x 1 0 1

is redundant. If you satisfy the other four constraints, then you automatically satisfy x 1 0. (In fact, if the first two constraints hold, then x 1 must be non-negative.) Most of you have an intuition from high school algebra (or college linear algebra), that you should have asmanyvariables as equations to have a system that makes sense. In this example there are two variables. There are five constraints. What is wrong with your intuition? One problem is that it is not clear what it means to make sense. In linear algebra courses, you want to have as many equations as unknowns because then (and only then) should you expect the system of equations to have a unique solution. I am dealing with inequalities, not equations. You can convince yourself that when you have two (ormore) variables, it is possible to have solutions to an arbitrarily large number of distinct linear inequalities. (You describe a polygon having n sides as the set of points that satisfies n linear inequalities.) Furthermore, I do not want a unique solution to the constraints. This would mean that the feasible set had only one point. So the optimization problem would be simple. (In the diet problem, if the feasible set had only one point, that would mean that there was only one possible way inwhichyou could meet the nutritional constraints. Of course this is impossible - you could meet the constraints by eating more of everything - but the point isthatyou should expect feasible sets to be large.) In the example, the feasible set has four corners. These corners are determined by the intersection of pairs of constraints, solved as equations. That is, (0; 2) is the solution to (1; 4) is the solution to 2x 1 + x 2 = 2 2x 1 + x 2 = 2; 2x 1 + x 2 = 2 4x 1 + x 2 = 8; (1; 0) is the solution to 2x 1 + x 2 =2 and x 2 = 0, and (2; 0) is the solution to 4x 1 + x 2 =8 and x 2 = 0. This is what typically happens. That is, the feasible region of a linear programming problem has corners determined by solving subsets of the constraints as equations (here you do want to use as many constraints as you have variables). Once you have these corners, you get the feasible set by connecting the dots and identifying the region that satisfies all of the constraints. Warnings: The feasible set may be empty. (Imagine that you replaced the constraint that x 1 0 with one that said that x 1» 1.) There is nothing mathematically mysterious about this. It means that you need to be careful about which side of a constraint line is in the feasible set. The feasible set may be unbounded. That is, it may go out forever in one or more directions. (After all, having no constraints is perfectly ok.) The only way to have a problem that has an unbounded solution is to have an unbounded feasible set. 2

2 Graphical Solutions Now you know how to graph the feasible set. To solve a linear programming problem graphically, that is the first thing you do. If the feasible set is empty, then stop. It does not matter what the objective function is, the linear programming problem is not feasible. If the feasible set is non-empty, then you must decide whether the linear programming problem has a solution or is unbounded. If the problem has a solution, then you would like to find it (and, if the problem has more than one solution, you would like to find all of them). If the problem is unbounded, then you would like to be able to explain why itisunbounded. It should be clear that the linear program cannot be unbounded if the feasible set is not unbounded. It is possible for the LP to have a solution even if the feasible set is unbounded. I will now discuss graphical solutions using the feasible region described in the first section: 4x 1 + x 2» 8 x 0: For a start, assume that the objective function (I call it x 0 )isx 1 +2x 2. (I will discuss other possible objective functions later.) The next step is to graph a level set of the objective function. A level set of a function is the set of points at which the function takes on the same value. For the example, a level set is a set of points for which x 1 +2x 2 = c for some constant c. Level sets of linear functions of two variables are straight lines (level sets of linear functions of three variables are planes; level sets of linear functions of more than two variables are flat things called hyperplanes). oncretely, the points at which x 1 +2x 2 = 2 consist of a straight line through (2; 0) and (0; 1). Superimpose a level set of the objective function (which is a line) on the graph of the feasible region. When you do so, either the line intersects with the graph or it does not. For example, the line x 1 +2x 2 =2doesintersect the feasible region (at the point (2; 0) for example). The line x 1 +2x 2 = 2 does not intersect the feasible region (it lies below the region). Neither does the line x 1 +2x 2 = 20 (it lies above the region). If the level set x 1 +2x 2 = c intersects the feasible set, that means that there exists feasible points that make the objective function's value equal to c. If the level set does not intersect the feasible set, then it is not possible to make the objective function's value equal to c. So it is possible to make the objective function's value equal to 2, while it is not possible to make thevalue equal -2 or 20. These observations are important. They tell us that the value of the optimization problem is at least 2 but no more than 20. Our job is to find the highest value of the objective function subject to staying within the feasible set. Geometrically, wewant to find a level set of x 0 that intersects the feasible set, with the additional property that no higher level set intersects the feasible set. The level set x 1 +2x 2 =2 intersects interior of the feasible set. (Interior is a technical term, but I hope that its intuitive meaning is clear.) This means that 3

level sets for higher values still intersect the feasible region. Now consider the level set x 1 +2x 2 =9. This level set describes points that make x 0 =9. This level set is parallel to the others. It intersects the feasible region. It intersects the region in just one place, however (the point (1; 4)). We can conclude that it is possible to satisfy constraints and make the objective function's value be (at least) 9. We can further conclude that it is not possible to make the objective function any higher and still satisfy the constraints. It follows that the solution to the problem is (x 1 ;x 2 )=(1; 4). It leads to the optimal value 9. This is the solution to the linear programming problem. You should experiment with this procedure using alternative objective functions. You should be able to construct objective functions that yield solutions at any of the corners of the feasible set. In brief, here is the process. 1. Graph feasible set. If feasible set is empty, then stop. The problem is infeasible. Otherwise continue. 2. Graph a level set of the objective function. 3. Shift the level set (parallel movement) until it intersects the feasible region. 4. ontinue to shift the level set until it reaches the maximum value the intersects the feasible region. You follow the same steps for a minimization problem, taking care to move the objective function in the opposite direction. You know which direction increases the objective function value by drawing two level sets and comparing (the direction of increase never changes). In the example, the level set x 1 +2x 2 =9 lies above and to the right of the level set x 1 +2x 2 =2;you always increase the objective function (in this example) by moving up and to the right. If your feasible set is unbounded, then it may be that the linear programming problem is unbounded. You will be able to see this graphically if level sets for arbitrarily large values of the objective function continue to intersect the feasible region. The graphical method illustrates an important, and general, property of solutions to linear programming problems. If a linear programming problem has a solution, then it has a solution at a corner" of the feasible set. Graphically, this fact follows from the observation that if the level set of the objective function does not intersect a corner of the feasible set, then you can move the level set a little bit in either direction and still intersect the feasible region. You cannot be at either a minimum or a maximum. It is a really important fact. It means that if you want to solve alpandyou know the corners of the feasible set, then all you need to do is plug the corners into the objective function and pick thebest one. (In the example, the feasible set has only four corners: (0; 2), (1; 0), (2; 0), and (1; 4).) This realization turns out be the idea behind the simplex algorithm that can be used to solve any linear programming problem. Linear programming problems may have solutions that are not at corners. For example, if x 0 =4x 1 + x 2, then all points on the segment connecting (1; 4) 4

to (2; 0) solve the LP. ere the level sets of the objective function are parallel to the upper right boundary of the feasible set. This example does not contradict the fact. Points (1; 4) and (2; 0) are corners. (It is generally true that if a linear programming problem has two solutions, then everything on the segment connecting the two solutions is also a solution.) If the feasible set is unbounded, then the trick" of testing only at the corners of the feasible region will tell you the solution to the problem if the LP has a solution. The problem may be unbounded. Experiment with unbounded problems. For example, take the feasible set that I have used throughout these notes and omit the constraint that 4x 1 + x 2» 8. You obtain an unbounded feasible set. Even though the feasible set is unbounded, certain problems still have a solution. For example, the solution to min x 1 + x 2 subject to: x 0 is (1; 0). It should be clear, however, that if you tried to solve max x 1 + x 2 subject to these constraints you cannot find a solution. For example, since the point (z;0) is in the feasible set for all z 1, it is possible to make the objective function larger than anything (just let z > M). You can see this graphically by noting that the level sets of x 1 + x 2 intersect the feasible region at the point (z;0). If I ask you to solve a linear programming problem graphically, then you should give one of three answers. If the problem is not feasible, then you demonstrate that the graph of the constraint set is empty (and state that the problem is infeasible). If the problem has a solution, then you should state the solution (or solutions, if there is more than one); showalevel set of the objective function that intersects the feasible region at the solution; and show that if you increase the objective function the corresponding level set would no longer intersect the feasible region. If the problem is unbounded, then you should show how you can find a feasible point that makes the objective function larger (or, in the case of a minimization problem, smaller) than any arbitrarily chosen value M. 1,4 x 0 =9 0,2 A A A x 0 =2 A A A 1,0 2,0 5