Linear Programming: A Geometric Approach

Similar documents
Linear Programming Problems

Example Graph the inequality 2x-3y 12. Answer - start with the = part. Graph the line 2x - 3y = 12. Linear Programming: A Geometric Approach

Chapter 3 Linear Programming: A Geometric Approach

Graphing Linear Inequalities in Two Variables.

UNIT 6 MODELLING DECISION PROBLEMS (LP)

Mathematics for Business and Economics - I. Chapter7 Linear Inequality Systems and Linear Programming (Lecture11)

WEEK 4 REVIEW. Graphing Systems of Linear Inequalities (3.1)

LINEAR PROGRAMMING. Chapter Overview

Section Graphing Systems of Linear Inequalities

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

Systems of Equations and Inequalities. Copyright Cengage Learning. All rights reserved.

CHAPTER 4 Linear Programming with Two Variables

1. Evaluating the objective function at each of the corner points we obtain the following table. Vertex Z = 2x + 3y (1,1) 5 (8,5) 31 (4,9) 35 (2,8) 28

Review for Mastery Using Graphs and Tables to Solve Linear Systems

LINEAR PROGRAMMING INTRODUCTION 12.1 LINEAR PROGRAMMING. Three Classical Linear Programming Problems (L.P.P.)

Chapter 4. Linear Programming

ax + by = 0. x = c. y = d.

Concept: Solving Inequalities Name:

LINEAR PROGRAMMING: A GEOMETRIC APPROACH. Copyright Cengage Learning. All rights reserved.

Math 1313 Prerequisites/Test 1 Review

Section 18-1: Graphical Representation of Linear Equations and Functions

Section 3.1 Graphing Systems of Linear Inequalities in Two Variables

Chapter 1. Linear Equations and Straight Lines. 2 of 71. Copyright 2014, 2010, 2007 Pearson Education, Inc.

Finite Math Linear Programming 1 May / 7

3.1 Graphing Linear Inequalities

Econ 172A - Slides from Lecture 2

Section 3.1 Graphing Systems of Linear Inequalities in Two Variables

MA30SA Applied Math Unit D - Linear Programming Revd:

3x + y 50. y=10. x=15 3x+y=50. 2x + 3y = 40

GRAPHING WORKSHOP. A graph of an equation is an illustration of a set of points whose coordinates satisfy the equation.

Mathematics. Linear Programming

Chapter 4 Linear Programming

Sketching Straight Lines (Linear Relationships)

Lesson 08 Linear Programming

7.5. Systems of Inequalities. The Graph of an Inequality. What you should learn. Why you should learn it

Chapter 15 Introduction to Linear Programming

x Boundary Intercepts Test (0,0) Conclusion 2x+3y=12 (0,4), (6,0) 0>12 False 2x-y=2 (0,-2), (1,0) 0<2 True

Unit 0: Extending Algebra 1 Concepts

Appendix F: Systems of Inequalities

Resource Allocation (p. 254)

GRAPHING LINEAR INEQUALITIES AND FEASIBLE REGIONS

Systems of Inequalities and Linear Programming 5.7 Properties of Matrices 5.8 Matrix Inverses

Chapter 1 & 2. Homework Ch 1 & 2

Section 2.0: Getting Started

9.1 Linear Inequalities in Two Variables Date: 2. Decide whether to use a solid line or dotted line:

Section 2.1 Graphs. The Coordinate Plane

Appendix F: Systems of Inequalities

OPERATIONS RESEARCH. Linear Programming Problem

Math 20 Practice Exam #2 Problems and Their Solutions!

Chapter 3: Section 3-2 Graphing Linear Inequalities

Introduction to Linear Programming

Three Dimensional Geometry. Linear Programming

4 LINEAR PROGRAMMING (LP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1

MATH 1113 Exam 1 Review. Fall 2017

OPTIMIZATION: Linear Programming

6.5. SYSTEMS OF INEQUALITIES

You should be able to plot points on the coordinate axis. You should know that the the midpoint of the line segment joining (x, y 1 1

Precalculus Notes: Unit 7 Systems of Equations and Matrices

Here are some guidelines for solving a linear programming problem in two variables in which an objective function is to be maximized or minimized.

Alg2H Chapter 4 Review Sheet Date Wk #11. Let

Math 2 Coordinate Geometry Part 3 Inequalities & Quadratics

CHAPTER 12: LINEAR PROGRAMMING

AP Statistics Summer Math Packet

2.6: Solving Systems of Linear Inequalities

Think about the pattern you used to calculate each dependent quantity value. Problem 1 As We Make Our Final Descent

Section Graphing Systems of Linear Inequalities

Sec 4.1 Coordinates and Scatter Plots. Coordinate Plane: Formed by two real number lines that intersect at a right angle.

3.1 Start Thinking. 3.1 Warm Up. 3.1 Cumulative Review Warm Up. Consider the equation y x.

CHAPTER 5: LINEAR EQUATIONS AND THEIR GRAPHS Notes#26: Section 5-1: Rate of Change and Slope

Algebra I Notes Linear Equations and Inequalities in Two Variables Unit 04c

3.1. 3x 4y = 12 3(0) 4y = 12. 3x 4y = 12 3x 4(0) = y = x 0 = 12. 4y = 12 y = 3. 3x = 12 x = 4. The Rectangular Coordinate System

AP Statistics Summer Review Packet

1 GIAPETTO S WOODCARVING PROBLEM

Setup and graphical solution of Linear Programming Problems [2-variables] Mathematical Programming Characteristics

MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED DETERMINING THE INTERSECTIONS USING THE GRAPHING CALCULATOR

STANDARDS OF LEARNING CONTENT REVIEW NOTES ALGEBRA I. 2 nd Nine Weeks,

I(g) = income from selling gearboxes C(g) = cost of purchasing gearboxes The BREAK-EVEN PT is where COST = INCOME or C(g) = I(g).

Intro. To Graphing Linear Equations

LINEAR PROGRAMMING. Straight line graphs LESSON

Chapter 4 Section 1 Graphing Linear Inequalities in Two Variables

+ Solving Linear Inequalities. Mr. Smith IM3

Linear Programming Problems: Geometric Solutions

Lecture 14. Resource Allocation involving Continuous Variables (Linear Programming) 1.040/1.401/ESD.018 Project Management.

Algebra II Notes Unit Two: Linear Equations and Functions

Lesson 18: There is Only One Line Passing Through a Given Point with a Given

Four Types of Slope Positive Slope Negative Slope Zero Slope Undefined Slope Slope Dude will help us understand the 4 types of slope

Algebra I Notes Unit Six: Graphing Linear Equations and Inequalities in Two Variables, Absolute Value Functions

Math 101 Exam 1 Review

Concept: Solving Inequalities Name:

6.7. Graph Linear Inequalities in Two Variables. Warm Up Lesson Presentation Lesson Quiz

Vertical Line Test a relationship is a function, if NO vertical line intersects the graph more than once

Graphing Linear Equations

Part I. Problems in this section are mostly short answer and multiple choice. Little partial credit will be given. 5 points each.

Section Graphs and Lines

Graphing Systems of Linear Inequalities in Two Variables

LINEAR PROGRAMMING. Chapter Introduction

CURVE SKETCHING EXAM QUESTIONS

Algebra Unit 2: Linear Functions Notes. Slope Notes. 4 Types of Slope. Slope from a Formula

Unit Essential Questions: Does it matter which form of a linear equation that you use?

Quadratic Equations Group Acitivity 3 Business Project Week #5

Transcription:

Chapter 3 Linear Programming: A Geometric Approach 3.1 Graphing Systems of Linear Inequalities in Two Variables The general form for a line is ax + by + c =0. The general form for a linear inequality is ax + by + c 0 or > 0 or 0 or < 0. How does these inequalities look graphically? Example - show the inequality 2x 3y 12. Answer - We start with the = part. Graph the line 2x 3y =12. This line divides the xy plane into an upper half plane and a lower half plane. One side of the line is the solution. Which one? Let s look at some points in the upper half plane. Try the point (0,0) in our inequality: 0 0 12 FALSE. Try another point in the upper half plane, like (0,2): 0 3(2) 12 FALSE. In fact all of the points in the upper half plane will not make the inequality true. How about the other half plane? Try the point (0,-6): 0 3( 6) 12 TRUE. Any of the points in the lower half plane will make the inequality true. NOTE - you cannot use any points that are ON the line because those points are equal to 12. So if your line passes through the origin, you must take a different point for a test point. 0 c Janice Epstein 1998, 1999, 2000. These notes may not be distributed for profit

3.1 Graphing Systems of Linear Inequalities in Two Variables 2 y upper half-plane 2 00 00 00 11 11 11 0 1 (0,0) false 00 000 11 111 00 00 11 0000 2 11 0000 0000 00 0 11 1 0000 0000 (0,2) false (0,-6) true (5,4) false (5,-3) true 2x-3y=12 x lower half-plane So the solution to this linear inequality is the lower-half plane bounded by the line 2x 3y =12. We really only need one test point from one of the half-planes in determining our solution as if it is not in one half-plane, its in the other. The origin is the easiest test point, but it won t work if the line goes through the origin. In that case you have to choose another point that is easy to calculate. To show the solution we shade the region that is NOT TRUE. So since the lower half-plane is the solution, we will shade the upper half-plane. See the student calculator manual for more help on shading, especially with the TI-82. If our inequality had or we draw the boundingline as a solid. If our inequality had > or < we draw the boundingline as DASHED. The region that satisfies our inequality is called the feasible region. This is the region that is white (unshaded). What if we have two inequalities (a system)? The feasible region will be where they are both true at the same time. Example: Find the feasible region for the system 3x + 2y > 6 x 4 Start by drawing the two lines. (We can t really draw vertical lines on the calculator, so we want to draw one with a VERY large slope instead. We want the line going through x =4with a bigggg negative slope. We can use y = 10 9 (x 4)) Remember, the first one will be dashed and the second will be solid. Label the intersection point. The xy plane is divided into 4 regions. Use (0,0) as the test point for each equaton. We see that (0,0) does not work in the first equation, so it is the upper half plane that is true. Shade the lower half plane.

3.1 Graphing Systems of Linear Inequalities in Two Variables 3 Try (0,0) in the second equation. It works and so the left half plane is true so we shade the right half-plane. With a negative slope, the right half-plane will be the upper on shading. You should just check when you shade that the correct region is left clear. Remember, the shading on the calculator is for your benefit - I will only see what you shade on the paper when you turn it in. Therefore you can just shade by hand on your paper if you wish. I am doing this on the overhead, so I have to use the calculator. The region left clear is the feasible region. It is important to mark the corners of the feasible region. This one has only one corner at (4,-3). It is UNBOUNDED as it continues upward without bound. In general, a region is unbounded if it cannot be enclosed in a circle. If it can, it is called BOUNDED. Example: Shade the feasible region and label the corner points for the following system of linear inequalities: 4x 3y 12 x + 2y 10 x 0 y 2 Start by graphing the system. You do not need to graph the line x =0,itisthey-axis. If I want only the region of x 0, I will just start my window at XMIN=0. That will also avoid shading a vertical line! Use test points to find: Y1 is true for (0,0) so we shade the lower half Y2 is true for (0,0) so we shade the upper half Y3 is false for (0,0) so we shade the lower half Our feasible region looks like:

3.2 Linear Programming Problems 4 We see this is bounded region (if we make the circle large enough we can enclose the entire region). Now to find the coordinates of the 4 corners. We can use the intersection button and the trace feature (for where it crosses the y-axis): Notice that not all the intersections are corners of the feasible region. Also notice that the points are given as decimals when you find the intersections on the calculator but you must give EXACT (fraction) answers for full credit. 3.2 Linear Programming Problems In real life linear inequalities are important because we often want to minimize or maximize a quantity (called the objective function) subject to certain constraints (linear inequalities). For example, we may want to maximize our profits but we are constrained by how much material and labor are available. Or we may want to minimize the calories in our diet subject to getting aleast our daily requirements of vitamins. In this section we will only SET-UP the problems. Solving them isn t until the next section. Production Scheduling: A company produces two models of hibachis, model A and model B. To produce each model A requires 3 lbs of cast iron and 6 minutes of labor. Each model B requires 4 lbs of cast iron and 3 minutes of labor. The profit for each model A is $2 and the profit for each model B is $1.50. If 1000 lbs of cast iron and 20 hours of labor are available each day, how many hibachis of each model should be produced to maximize profits? Start by defining your variables! We are asked how many of each model, so define: x = number of model A produced per day y = number of model B produced per day. Next we want to find the objective function. That is the quantity we are trying to minimize or maximize. Here we want to maximize profits, so say P =2x+1.5yMaximize.

3.2 Linear Programming Problems 5 We next want the constraints. We only have a certain amount of iron and labor available each day, so we say subject to 3x +4y 1000 use 1000 lbs or less of iron 6x +3y 20 60 = 1200 use 1200 minutes or less of labor (watch the units!). Finally, this is a word problem so we cannot have a negative number of hibachis, x 0 and y 0 (non-negativity condition) Allocation of Funds: A bank has $20 million available for homeowner and auto loans. The homeowner loans average 10% return and the auto loans 12%. The total amount of homeowner loans must be at least four times the amount of auto loans. Determine how much should be used for each type of loan to maximize the bank s return. We need to find how much of each type of loan, we will let x = amount of homeowner loans y = amount of auto loans We want to maximize returns, so the return will be our objective function to maximize: R =.10x +.12y maximize subject to x + y 20, 000, 000 available funds x 4y ratio x 0 and y 0 non-negativity. Check the ratio equation - from the problem it says we want more homeowner loan than auto loans. Test with $1 in auto loans, y =1, x 4y x 4 1 x 4and that is what we want!

3.3 Graphical Solution of Linear Programming Problems 6 3.3 Graphical Solution of Linear Programming Problems When our linear programming problem has only two variables we can solve the problem graphically. The constraint equations are linear inequalities that correspond to a feasible region in the xy plane. How does the objective function fit in? Consider our hibachi problem. We had x = number of model A hibachis y = number of model B hibachis maximize P =2x+1.5y subject to 3x + 4y 1000 pounds of iron available 2x + y 400 minutes of labor available x 0 y 0 Make a sketch of the feasible region. Label the feasible regions. Any point in S will satisfy the constraints, but which one will maximize our profit? Look at the point (0,0). The profit there is P =2(0)+1.5(0) = 0. Where else is the profit zero? There is a line P =0=2x+1.5y and everywhere along that line the profit is zero. It cuts through the feasible region only in the corner (0,0). Zero doesn t seem like much of a profit. How about a profit of $300? There are many ways to make a profit of $300. If we sell 150 of model A (profit of $2 each) we will get $300. If we sell 200 of model B (profit of $1.50 each) we will get 300. So again there is a line P = 300 = 2x +1.5y. This line is parallel to the first line of zero profit (they have the same slope, different intercepts). This passes through much more of the feasible region. And every point of the line inside the feasible region is a possible way to get $300. Notice that the line for a $300 profit has moved up from the zero profit. y P=300 P=0 100 S Can we make even more money? We can have a series of parallel lines moving through the feasible region with P increasing with each line. How large can P get and still be in S? Let s have some theorems to help 100 x Theorem 1: If a linear programming problem has a solution, then it must occur at a vertex (or corner point) of the feasible region S associated with the problem. Furthermore, if the objective function is optimized at two adjacent vertices of S, then it is optimized at every point on the line segment joining these vertices. In this case there are infinitely many solutions. So the answer is that the profit will be maximized at a corner of the feasible region. If you look at the sequence of parallel lines we

3.3 Graphical Solution of Linear Programming Problems 7 found, there is no way to get out of the feasible region (as we let P get bigger or smaller) except through a corner point (or two corner points at the same time). However, theorem 1 only says IF there is a solution. Now have: Theorem 2: Existence of a Solution Suppose we are given a linear programming problem with a feasible set S and objective function P = ax + by. 1. If S is bounded then P has both a maximum and a minimum value on S. 2. If S is unbounded and both a and b are non-negative, then P has a minimum value on S provided that the constraints defining S include x 0 and y 0. 3. If S is the empty set, then the linear programming problem has no solution. That is, P does not have a minimum or a maximum. So we will use the METHOD OF CORNERS in this section to solve the linear programming problems: 1. Graph the feasible region (set), S. 2. Find the coordinates of all the vertices (corner points) of S. 3. Evalute the objective function at each vertex. 4. Find the vertex that renders the objective function a maximum (or minimum). If there is one such vertex, that is the unique solution to the linear programming problem. If the objective function is maximized (or minimized) at two adjacent vertices of S,thereare infinitely many optimal solutions give by the points on the line segment connecting the two vertices. So in our hibachi example we would make a table (ALWAYS make me a table to show your work): vertex P =2x +1.5y (0,0) 0 minimum (0,250) 375 (120,160) 480 maximum (200,0) 400 To maximize profits make 120 of type A hibachis and 160 of type B hibachis. Example - Shipping parts: A part is shipped each week from a warehouse to assembly plants in Hobbs and Sacramento. The plant in Sacramento needs at least 1000 of these parts each week and the plant in Hobbs needs at least 1200 of these parts each week. It costs $2 to ship each part to Sacramento and $3 to ship each part to Hobbs. The budget limits the shipping costs to $14,000 per week. The work hours required to ship a part to Sacramento are.2 hours and to Hobbs is.25 work hours. How many parts should be shipped to each location if the work hours are to be kept to a minimum? Answer: Shipping problems are often best visualized with a drawing x = number of parts shipped to Sacramento y = number of parts shipped to Hobbs Minimize W =.2x +.25y Subject to warehouse.25 hr..20 hr. $3 $2 y x Hobbs Sacramento at least 1200 at least 1000 2x + 3y 14, 000 shipping dollars available x 1000 y 1200

3.3 Graphical Solution of Linear Programming Problems 8 Sketch the feasible region: Make a table of the vertex and the value of the objective function: vertex W =.2x +.25y (1000,1200) 500 minimum (1000,4000) 1200 (5200,1200) 1340 So they should ship 1000 parts to Sacramento and 1200 parts to Hobbs. Example: A dietitian is to prepare two foods in order to meet certain requirements. Each pound of food I contains 100 units of vitamin C, 40 units of vitamin D and 20 units of vitamin E and costs 20 cents. Each pound of food II contains 10 units of vitamin C, 80 units of vitamin D and 15 units of vitamin E and costs 15 cents. The mixture of the two foods is to contain at least 260 units of vitamin C, 320 units of vitamin D and 120 units of vitamin E. How many pounds of each type of food should be used in order to minimize the cost? Answer: x = number of pounds of food I y = number of pounds of food II Minimize C =.2x +.15y Subject to 100x + 10y 260 vitamin C 40x + 80y 320 vitamin D 20x + 15y 120 vitamin E x 0 y 0 Sketch the feasible region. It is unbounded, but we are trying to get a minimum. Make a table of the vertex and the value of the objective function: vertex C =.2x +.15y (0,26) 3.9 (8,0) 1.6 (4.8,1.6) 1.2 minimum (27/13,68/13) 1.2 minimum

3.3 Graphical Solution of Linear Programming Problems 9 The cost is minimized along a line segment connecting the points (4.8,1.6) and (27/13, 68/13) ( (2.1,5.2)). This is along the line 20x +15y= 120 so we can say the solution is y = (120 20x)/15 or y = (4/3)x +8with 27/13 x 4.8 and there are an infinite number of points that minimize the cost.