1 Chapter 8 Linear programming is used to allocate resources, plan production, schedule workers, plan investment portfolios and formulate marketing (and.

Slides:



Advertisements
Similar presentations
LIAL HORNSBY SCHNEIDER
Advertisements

Linear Programming Problem
Chapter 2: Modeling with Linear Programming & sensitivity analysis
Introduction to Management Science
BA 452 Lesson A.2 Solving Linear Programs 1 1ReadingsReadings Chapter 2 An Introduction to Linear Programming.
Chapter 5 Linear Inequalities and Linear Programming
Linear Inequalities and Linear Programming Chapter 5 Dr.Hayk Melikyan/ Department of Mathematics and CS/ Linear Programming in two dimensions:
Learning Objectives for Section 5.3
Chapter 5 Linear Inequalities and Linear Programming Section 3 Linear Programming in Two Dimensions: A Geometric Approach.
Linear Programming Models: Graphical Methods
Managerial Decision Modeling with Spreadsheets
Chapter 2 Linear Programming Models: Graphical and Computer Methods © 2007 Pearson Education.
Chapter 8: Linear Programming
Quantitative Techniques for Decision Making M.P. Gupta & R.B. Khanna © Prentice Hall India LINEAR PROGRAMMING GRAPHIC METHOD 2 CHAPTER.
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Three Classic Applications of LP Product Mix at Ponderosa Industrial –Considered limited.
Chapter 2: Introduction to Linear Programming
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Linear Programming Models: Graphical Methods 5/4/1435 (1-3 pm)noha hussein elkhidir.
Solver & Optimization Problems n An optimization problem is a problem in which we wish to determine the best values for decision variables that will maximize.
LINEAR PROGRAMMING INTRODUCTION
3 Components for a Spreadsheet Linear Programming Problem There is one cell which can be identified as the Target or Set Cell, the single objective of.
FORMULATION AND GRAPHIC METHOD
Graphical Solutions Plot all constraints including nonnegativity ones
1 1 Slide LINEAR PROGRAMMING: THE GRAPHICAL METHOD n Linear Programming Problem n Properties of LPs n LP Solutions n Graphical Solution n Introduction.
Linear Programming Models: Graphical and Computer Methods
Introduction to Quantitative Business Methods (Do I REALLY Have to Know This Stuff?)
Chapter 5.1 Systems of linear inequalities in two variables.
Graphing Linear Inequalities
3.4 Linear Programming.
Solver & Optimization Problems n An optimization problem is a problem in which we wish to determine the best values for decision variables that will maximize.
Chapter 19 Linear Programming McGraw-Hill/Irwin
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS ST. EDWARD’S UNIVERSITY.
1 1 Slide Linear Programming (LP) Problem n A mathematical programming problem is one that seeks to maximize an objective function subject to constraints.
THE GALAXY INDUSTRY PRODUCTION PROBLEM -
Chapter 7 Introduction to Linear Programming
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
1 Chapter 11 A number of important scheduling problems... require the study of an astronomical number of arrangements to determine which one is best....
QMB 4701 MANAGERIAL OPERATIONS ANALYSIS
Linear Inequalities and Linear Programming Chapter 5 Dr.Hayk Melikyan Department of Mathematics and CS
PowerPoint Slides by Robert F. BrookerHarcourt, Inc. items and derived items copyright © 2001 by Harcourt, Inc. Managerial Economics in a Global Economy.
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
A LINEAR PROGRAMMING PROBLEM HAS LINEAR OBJECTIVE FUNCTION AND LINEAR CONSTRAINT AND VARIABLES THAT ARE RESTRICTED TO NON-NEGATIVE VALUES. 1. -X 1 +2X.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
Introduction to linear programming:- - Linear programming (LP) applies to optimization models in which the objective and constraints functions are strictly.
Example 3.2 Graphical Solution Method | 3.1a | a3.3 Background Information n The Monet Company produces two type of picture frames, which.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
3 Components for a Spreadsheet Optimization Problem  There is one cell which can be identified as the Target or Set Cell, the single objective of the.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 5.1 Inequalities in Two Variables The student will be able to graph linear.
CDAE Class 15 Oct. 16 Last class: Result of group project 1 3. Linear programming and applications Class Exercise 7 Today: 3. Linear programming.
Introduction to Quantitative Business Methods (Do I REALLY Have to Know This Stuff?)
© 2009 Prentice-Hall, Inc. 7 – 1 Decision Science Chapter 3 Linear Programming: Maximization and Minimization.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Operations Research By: Saeed Yaghoubi 1 Graphical Analysis 2.
1 Geometrical solution of Linear Programming Model.
Linear Programming Models: Graphical and Computer Methods 7 To accompany Quantitative Analysis for Management, Twelfth Edition, by Render, Stair, Hanna.
Example 3.2 Graphical Solution Method | 3.1a | a3.3 Background Information n To illustrate the graphical approach, we will use a slightly.
1 2 Linear Programming Chapter 3 3 Chapter Objectives –Requirements for a linear programming model. –Graphical representation of linear models. –Linear.
Chapter 2 Linear Programming Models: Graphical and Computer Methods
An Introduction to Linear Programming
Linear Programming Models: Graphical and Computer Methods
An Introduction to Linear Programming Pertemuan 4
Chapter 2 An Introduction to Linear Programming
Chapter 5 Linear Inequalities and Linear Programming
Linear Programming Dr. T. T. Kachwala.
Introduction to linear programming (LP): Minimization
Linear Programming.
Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an equation.
Presentation transcript:

1 Chapter 8 Linear programming is used to allocate resources, plan production, schedule workers, plan investment portfolios and formulate marketing (and military) strategies. The versatility and economic impact of linear programming in today’s industrial world is truly awesome.--Eugene Lawler Linear Programming

2 What is a Linear Program?  A linear program is a mathematical model that indicates the goal and requirements of an allocation problem.  It has two or more non-negative variables.  Its objective is expressed as a mathematical function. The objective function plots as a line on a two-dimensional graph.  There are constraints that affect possible levels of the variables. In two dimensions these plot as lines and ordinarily define areas in which the solution must lie.

3 Redwood Furniture Problem Formulation  Let X T and X C denote the number of tables and chairs to be made. (Define variables)  Maximize P = 6X T + 8X C (Objective function)  Subject to: (Constraints) 30X T + 20X C < 300 (wood) 5X T + 10X C < 110 (labor)  where X T and X C > 0 (non-negativity conditions)  Letting X T represent the horizontal axis and X C the vertical, the constraints and non-negativity conditions define the feasible solution region.

4 Feasible Solution Region for Redwood Furniture Problem

5 Graphing to Find Feasible Solution Region  For an inequality constraint (with ), first plot as a line: 30X T + 20X C = 300.  Get two points. Intercepts are easiest:  Set X C = 0, solve for X T for horizontal intercept: 30X T + 20(0) = 300 => X T = 300/30 = 10  Set X T = 0, solve for X C for vertical intercept: 30(0) + 20X C = 300 => X C = 300/20 = 15  Above gets wood line. Do same for labor.  Mark valid sides and shade feasible solution region. Any point there satisfies all constraints and non-negativity conditions.

6 Graphing to Find Feasible Solution Region  To establish valid side, pick a test point (usually the origin). If that point satisfies the constraint, all points on same side are valid. Otherwise, all points on other side are instead valid.  Equality constraints have no valid side. The solution must be on the line itself.  Some constraint lines are horizontal or vertical. These involve only one variable and one intercept.

7 Finding Most Attractive Corner  The optimal solution will always correspond to a corner point of the feasible solution region.  Because there can be many corners, the most attractive corner is easiest to find visually.  That is done by plotting two P lines for arbitrary profit levels.  Since the P lines will be parallel, just hold your pencil at the same angle and role it in from the smaller P’s line toward the bigger one’s That is the direction of improvement.  Continue rolling until only one point lies beneath the pencil. That is the most attractive corner. (Problems can have two most attractive corners.)

8 Most Attractive Corner for Redwood Furniture Problem

9 Finding the Optimal Solution  The coordinates of the most attractive corner provide the optimal levels.  Because reading from graph may be inaccurate, it is best to solve algebraically.  Simultaneously solving the wood and labor equations, the optimal solution is: X T = 4 tables X C = 9 chairs P = 6(4) + 8(9) = 96 dollars  Note: supply the computed level of the objective in reporting the optimal solution.

10 Advice for Solving Linear Programs  The most attractive corner need not be where the two lines cross. Verify by  doubling the table profit. Then the P lines will be steeper, and (X T = 10, X C = 0) would be best.  doubling instead the chair profit. The P lines will be flatter, and (X T = 0, X C = 11) is best.  Problems can have more than 2 constraints.  The objective function can involve negative coefficients.  Therefore, the better Ps may not lie to the right.  Use 2 lines to guarantee getting right direction.

11 Minimizing Cost: Feed-Mix Problem  Let X B and X S denote pounds of buckwheat and sunflower in mixture. Minimize C=.18X B +.10X S Subject to:.04X B +.06X S > 480 (fat).12X B +.10X S > 1,200 (prot.).10X B +.15X S > 1,500 (rough.) where X B, X S > 0  The optimal solution is: X B = 3,750 pounds X S = 7,500 pounds C =.18(3,750) +.10(7,500) = 1,425 dollars

12 Minimizing Cost: Feed-Mix Problem

13 Other Constraint Types  Resources: amount used < available level.  Requirements: quan. > minimum (< max.).  X T > 5 (demand) X C < 5 (capacity)  Mixture: product > (or <) multiple of other.  X C > 4X T (at least 4 chairs per table made)  X B <.5X S (buckw. not exceed 1/2 wt of sunfl.)  Transform before plotting:  X C  4X T > 0 X B .5X S < 0  Equality: X T + X C = 10 (exactly 10 items)

14 Special Problem Types  Infeasible Problems: These arise from contradictions among the constraints. No solution possible until conflict is resolved.  Ties for optimal solution: Multiple optimal solutions can exist. Any linear combination of two optimal corners is also optimal.  Unbounded problems: Feasible solution regions may be open-ended, and the direction of improvement coincides.  Mathematically, any profit is possible.  Generally nonsensical, possibly due to a missing constraint. Fix and solve again.

15 Graphing Linear Programs Using Spreadsheets The Redwood Furniture Company Maximize P = 6X T + 8X C (objective) Subject to 30X T + 20X C < 300 (wood) 5X T + 10X C < 110 (labor) where X T, X C > 0

16 First Step The Formulas The first step is to solve the objective function and each constraint for one of the variables. In this case, solving for X C gives X C = (P - 6X T )/8 (objective) X C = ( X T )/20 (wood) X C = ( X T )/10 (labor) These formulas are entered on the following spreadsheet.

17 Second Step The Spreadsheet (Figure 8-18) For example, Cell B9: X C = ($B$4 - 30X T )/20 = ($B$4-30*A9)/20 Cell B10: X C = ($B$5 - 5X T )/10 = ($B$5-5*A9)/10 Cell B11: X C = ($B$3 - 30X T )/20 = ($B$3-30*A9)/20

18 Third Step Graphing with the Chart Wizard Highlight cells B8:D19 and click on the chart icon. Step 1 - Chart Type Step 2 - Chart Source Data Step 3 - Chart Options Step 4 - Chart Location

19 Chart Wizard Chart Type Select Line as the Chart type and pick the first Chart sub- type (Line) and click Next.

20 Chart Wizard Sources of Data, Series Tab Enter the horizontal axis values by clicking on the Series tab and entering the range of numbers to be on the horizontal axis, cells A:9:A19, in the Category (X) axis labels line. Alternately, click in the Category (X) axis labels line and then highlight cells A9:A19. Click Next.

21 Chart Wizard Chart Options In the Chart title line type Redwood Furniture Company, in the Category (X) axis put Tables, T, and in the Value (Y) axis line write Chairs, C. Click Next.

22 Chart Wizard Chart Location Click on Finish and the Chart shown next appears.

23 Step Four The Final Graph (Figure 8-19) The final graph (after making formatting changes).

24 The Graph with P = 96 (Figure 8-20) Increasing the number in cell B3 moves the objective function line up and to the right. This graph show the objective function for P = 96.

25 The Graph with P = 96 and 80 Hours of Labor (Figure 8-21) To see what happens when the amount of wood or labor vary, change the numbers in cells B4 (for wood) or B5 (for labor) and the corresponding line will move. This graph show the result when 80 is entered in cell B5 (and P = 96).

26 Drawing Horizontal and Vertical Lines Drawing two types of lines with Excel require special attention: horizontal and vertical lines. The constraint Y = 3 is a horizontal line and the constraint X = 7 is a vertical line. Figure 9-21 shows what an Excel spreadsheet looks like for these two constraints.

27 Spreadsheet for Horizontal and Vertical Lines (Figure 8-22) Vertical Line Equation: Y = 100,000 – (100,000/7)X The vertical line equation has an Y- intercept of 100,000 and a slope of - (100,000/7). Thus, it is not exactly vertical but it is sufficiently close to vertical for our purposes.

28 Graphing Horizonal and Vertical Lines (Figure 8-23) To change the position of the vertical line, change the 7 in the denominator of all the formulas in column C to the desired number.