1 The Dual in Linear Programming In LP the solution for the profit- maximizing combination of outputs automatically determines the input amounts that must.

Slides:



Advertisements
Similar presentations
LINEAR PROGRAMMING SENSITIVITY ANALYSIS
Advertisements

Understanding optimum solution
Chapter 5 Sensitivity Analysis: An Applied Approach
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc. 1 Chapter 5 Sensitivity Analysis: An Applied Approach to accompany Introduction to.
Introduction to Sensitivity Analysis Graphical Sensitivity Analysis
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
1/53 Slide Linear Programming: Sensitivity Analysis and Interpretation of Solution n Introduction to Sensitivity Analysis n Graphical Sensitivity Analysis.
BA 452 Lesson A.2 Solving Linear Programs 1 1ReadingsReadings Chapter 2 An Introduction to Linear Programming.
SENSITIVITY ANALYSIS.
Optimization Models Module 9. MODEL OUTPUT EXTERNAL INPUTS DECISION INPUTS Optimization models answer the question, “What decision values give the best.
SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke.
Operations Management Linear Programming Module B - Part 2
LP EXAMPLES.
Chapter 3 Linear Programming: Sensitivity Analysis and Interpretation of Solution MT 235.
1 5. Linear Programming 1.Introduction to Constrained Optimization –Three elements: objective, constraints, decisions –General formulation –Terminology.
Linear Programming. Linear programming A technique that allows decision makers to solve maximization and minimization problems where there are certain.
1 Linear Programming Using the software that comes with the book.
LINEAR PROGRAMMING SENSITIVITY ANALYSIS
3-1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Linear Programming: Computer Solution and Sensitivity Analysis Chapter 3.
1 1 Slide LINEAR PROGRAMMING Introduction to Sensitivity Analysis Professor Ahmadi.
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Spreadsheet Modeling & Decision Analysis:
John Loucks Modifications by A. Asef-Vaziri Slides by St. Edward’s
Linear Programming.
Solver Linear Problem Solving MAN Micro-computers & Their Applications.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Kerimcan OzcanMNGT 379 Operations Research1 LP: Sensitivity Analysis and Interpretation of Solution Chapter 3.
Computational Methods for Management and Economics Carla Gomes
Chapter 19 Linear Programming McGraw-Hill/Irwin
Special Conditions in LP Models (sambungan BAB 1)
Readings Readings Chapter 3
Presentation: H. Sarper
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Managerial Decision Making and Problem Solving
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor.
We can make Product1 and Product2. There are 3 resources; Resource1, Resource2, Resource3. Product1 needs one hour of Resource1, nothing of Resource2,
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Chapter 6 Sensitivity Analysis & Duality
1 Chapter 10 The primal linear program solution answers the tactical question when it tells us how much to produce. But the dual can have far greater impact.
1 LINEAR PROGRAMMING Introduction to Sensitivity Analysis Professor Ahmadi.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
5-1 Wyndor (Before What-If Analysis). 5-2 Using the Spreadsheet to do Sensitivity Analysis The profit per door has been revised from $300 to $200. No.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
Linear Programming: Sensitivity Analysis and Interpretation of Solution Pertemuan 5 Matakuliah: K0442-Metode Kuantitatif Tahun: 2009.
A model consisting of linear relationships representing a firm’s objective and resource constraints Linear Programming (LP) LP is a mathematical modeling.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
Professional software packages such as The WinQSB and LINDO provide the following LP information: Information about the objective function: –its optimal.
Chapter 6 Simplex-Based Sensitivity Analysis and Duality
 Minimization Problem  First Approach  Introduce the basis variable  To solve minimization problem we simple reverse the rule that is we select the.
1 1 Slide © 2005 Thomson/South-Western Simplex-Based Sensitivity Analysis and Duality n Sensitivity Analysis with the Simplex Tableau n Duality.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 5 th edition Cliff T. Ragsdale.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
Sensitivity Analysis Introduction to Sensitivity Analysis
Operations Research By: Saeed Yaghoubi 1 Graphical Analysis 2.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Managerial Decision Modeling with Spreadsheets Chapter 4 Linear Programming Sensitivity Analysis.
Chapter 3: Sensitivity Analysis and the Dual Problem & Shadow Prices
Linear Programming.
St. Edward’s University
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Chapter 5 Sensitivity Analysis: An Applied Approach
MAN 305 OPERATIONS RESEARCH II Week 4 –Sensitivity Analysis with Spreadsheets DR. KAZIM BARIŞ ATICI.
Duality Theory and Sensitivity Analysis
Sensitivity.
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Lecture 4 Part I Mohamed A. M. A..
Optimization Models Module 9.
Presentation transcript:

1 The Dual in Linear Programming In LP the solution for the profit- maximizing combination of outputs automatically determines the input amounts that must be used in the production process.

2 If the optimal output combination, suggested by the LP solution, uses up all available inputs, we say that the capacity constraints are binding.

3 Under this condition, any reduction/increase in the use of inputs will reduce/increase the firm’s profits. marginal opportunity cost of using the input How much profit do we lose not having one more unit of an input?

4 Finding the Opportunity Costs For every maximization problem in LP there exists a symmetrical minimization problem and vice versa The problems are called the primal problem and the dual problem

5 Primal Problem and Dual Problem optimal solutions for these two problems are always the same objective of the dual problem is to find shadow prices (= dual prices) shadow prices can be used to decide whether the firm should employ an additional unit of a resource or not

6 Primal Problem Gross profit: Max GP = 50X + 30Y st. 5X + 2Y  220 3X + 2Y  180 X, Y  0 Dual Problem* Total opportunity cost: Min C = 220a + 180p st.5a + 3p  50 2a + 2p  30 a, p  0 Example: Primal and Its Dual *John von Neumann proved the Duality Theorem

7 Coefficient matrix of a dual problem is a transpose of the primal’s coefficient matrix a = opportunity cost of using an additional unit of labor for the assembly of PCs and printers p =opportunity cost of using an additional unit of labor for the packaging of PCs and printers X Y RHS a p RHS

8 The solution for the above problem is: GP = 2800, X = 20 and Y = 60 a = 2.50 and p = 12.50

9 Linear Programming: Sensitivity Analysis Postoptimality analysis Sensitivity analysis is the study of how changes in the coefficients of a linear program affect the optimal solution or in the value of right hand sides of the problem affect the optimal solution

10 Sensitivity Analysis continued Using sensitivity analysis we can answer questions such as: 1.How will a change in a coefficient of the objective function affect the optimal solution? We can define a range of optimality for each objective function coefficient by changing the objective function coefficients, one at a time

11 Sensitivity Analysis continued 2.How will a change in the right-hand- side value for a constraint affect the optimal solution? The feasible region may change when RHSs (one at a time) are changed and perhaps cause a change in the optimal solution to the problem

12 ■ Sensitivity analysis is important since real world problems exist in a changing environment: prices of raw materials change, product demand changes, new machinery is bought to replace old, stock prices fluctuate, employee turnover occurs, etc.  we can expect some of the coefficients to change over time Sensitivity analysis can also be used to determine which coefficients are crucial

13 Graphical Sensitivity Analysis 1.Change in the slope of the objective function (change in the coefficients of the objective function) The shaded region defines the range in which the objective function coefficients can vary without changing the optimal solution for the problem: the output combination does not change but the value of the objective function naturally changes…

14

15 Graphical Sensitivity Analysis continued 2.Changing the right-hand-side of a constraint The shaded region is an increase in the feasible set resulting from a change in the RHS of one of the constraints: increasing the availability of one input (resource)

16

17 Interpretation of Computer Output We will use Solver with Excel to solve LP-problems On the spreadsheet after using Solver we can find the optimal value for the objective function and the decision variable values associated with this particular solution, as well as the right-hand-side values for the constraints

18 An Example: What to Plant? A farmer owns a 100 acre farm He plans to plant at most three crops. The seed for crop A, B, and C cost $40, $20, and $30 per acre, respectively A maximum of $3,200 can be spent on seed Crop A, B, and C require 1, 2, and 1 workdays per acre, respectively, and there are a maximum of 160 workdays available If the farmer can make a profit of $100 per acre on crop A, $300 per acre on crop B, and $200 per acre on crop C, how many acres of each crop should be planted to maximize profit?

19 Excel Spreadsheet with Solver

20 More detailed information about the solution can be found on the Answer and Sensitivity Reports: Slack tells how much, if any, of a resource has been left unused Reduced Costs indicate how much the objective function coefficient of each decision variable would have to improve before it would be possible for that variable to assume a positive value in the optimal solution

21

22

23 Sensitivity Analysis in the Computer Output Allowable Increase and Decrease in the “Adjustable Cells” tells the ranges in which the coefficients of the objective function can vary without changing the optimal solution i.e. the values of decision variables in optimal solution; the value of the objective function itself will naturally changes when the coefficients change

24 Sensitivity Analysis in the Computer Output continued Shadow Price tells how much a one unit increase/decrease in the RHS of a constraint would increase/decrease the value of the objective function Allowable Increase and Decrease in the “Constraint R.H. sinde” tells the ranges in which the RHSs can vary without changing the basis of the optimal solution (= the set of variables with a positive value)

25 Example: Resource Allocation Problem Let’s consider a manufacturing facility that produces five different products using four machines The scarce resources are the times available on the machines and the alternative activities are the individual production volumes The machine requirements in hours per unit are shown for each product in the table The unit profits are also shown in the table The facility has four machines of type 1, five of type 2, three of type 3 and seven of type 4 Each machine operates 40 hours per week The problem is to determine the optimum weekly production quantities for the products The goal is to maximize total profit

26 Machine data and processing requirements (hrs./unit) Machine QuantityProduct 1Product 2Product 3Product 4Product 5 M M M M Unit profit, $ —— The number of hours available on each machine type is 40 times the number of machines.

27 Machine Availability Constraints M1 :1.2P P P P P 5 < 160 M2 :0.7P P P P P 5 < 200 M3 :0.9P P P P P 5 < 120 M4 : 1.4P P P P P 5 < 280 Nonnegativity P j > 0 for j = 1,...,5 Objective Function Max Z = 18P P P P P 5

28

29 Quiz 1. Explain the meaning of Reduced Cost in this context. 2. Explain the meaning of ranges in Variable Analysis. Note! What do they mean in this context? 3. Explain the meaning of Shadow Price in this context. 4. Explain the meaning of ranges in Constraint Analysis. Again in this context!

30 Variable Analysis: Reduced Cost Reduced cost $13.53 means that the coefficient of P 3 (its unit profit) had to increase by this amount before it would be profitable to start producing product 3 The "reduced cost" column indicates the increase in the objective function per unit change in the value of the associated variable Reduced cost of P 3 indicates that if this variable were increased from 0 to 1, i. e. if we would produce on unit of product P3, the objective function value (profit) will decrease by $13.53 It is not surprising that the reduced cost is negative since the optimum value of P 3 is zero

31 Variable Analysis: Reduced cost continued The ranges at the right of the display indicate how far the associated objective coefficient may change before the current solution values (P 1 through P 5 ) must change to maintain optimality For example, the unit profit on P1 may assume any value between and The "---" used for the lower limit of P 3 indicates an indefinite lower bound Since P 3 is zero at the optimum, reducing its unit profit by any amount will make it even less appropriate to produce that product

32 Constraint Analysis A shadow price indicates the increase in the objective function value resulting from an unit increase of the associated constraint (resource) From the table we see that increasing the hour limit of 120 for M 3 increases the objective function value by the most ($8.96), while increasing the limit for M 4 increases the objective function value by the least ($0.36)

33 Constraint Analysis: Shadow Price continued The ranges at the right of the display indicate how far the limiting value may change while keeping the same optimum basis The shadow prices remain valid within this range As an example consider M 1. For the solution, there are 160 hours of capacity for this machine. The capacity may range from hours to 173 hours while keeping the same basis optimal. Changes above 160 cause an increase in profit of $4.82 per unit, while changes below 160 cause a reduction in profit by $4.82 per unit.