1 5. Linear Programming 1.Introduction to Constrained Optimization –Three elements: objective, constraints, decisions –General formulation –Terminology.

Slides:



Advertisements
Similar presentations
Understanding optimum solution
Advertisements

Linear Programming.
Introduction to Sensitivity Analysis Graphical Sensitivity Analysis
Introduction to Management Science
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.
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
Linear Programming Using the Excel Solver
Managerial Decision Modeling with Spreadsheets
Chapter 2 Linear Programming Models: Graphical and Computer Methods © 2007 Pearson Education.
Chapter 3 Linear Programming: Sensitivity Analysis and Interpretation of Solution MT 235.
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Three Classic Applications of LP Product Mix at Ponderosa Industrial –Considered limited.
Operations Management Dr. Ron Lembke
Linear Programming Excel Solver. MAX8X 1 + 5X 2 s.t.2X 1 + 1X 2 ≤ 1000 (Plastic) 3X 1 + 4X 2 ≤ 2400 (Prod. Time) X 1 + X 2 ≤ 700 (Total Prod.) X 1 - X.
QM B Linear Programming
1 1 Slide LINEAR PROGRAMMING Introduction to Sensitivity Analysis Professor Ahmadi.
Linear Programming ISQA 459/559. Getting Started with LP Game problem Terms Algebraic & Graphical Illustration LP with Excel.
Goals and aims To introduce Linear Programming To find a knowledge on graphical solution for LP problems To solve linear programming problems using excel.
Spreadsheet Modeling & Decision Analysis:
Linear-Programming Applications
John Loucks Modifications by A. Asef-Vaziri Slides by St. Edward’s
Solver Linear Problem Solving MAN Micro-computers & Their Applications.
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
© Copyright 2004, Alan Marshall 1 Lecture 1 Linear Programming.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Chapter 2 Linear Programming Models: Graphical and Computer Methods
Chapter 19 Linear Programming McGraw-Hill/Irwin
Linear Programming Chapter 13 Supplement.
Linear Programming: Basic Concepts
Linear Programming Topics General optimization model LP model and assumptions Manufacturing example Characteristics of solutions Sensitivity analysis Excel.
We can make Product1 and Product2. There are 3 resources; Resource1, Resource2, Resource3. Product1 needs one hour of Resource1, nothing of Resource2,
THE GALAXY INDUSTRY PRODUCTION PROBLEM -
1 LINEAR PROGRAMMING Introduction to Sensitivity Analysis Professor Ahmadi.
Chapter 6 Supplement Linear Programming.
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.
1/24: Linear Programming & Sensitivity Analysis Review: –LP Requirements –Graphical solutions Using MS Excel for Linear Programming Sensitivity Analysis.
CDAE Class 17 Oct. 23 Last class: Result of Quiz 4 3. Linear programming and applications Today: 3. Linear programming and applications Review for.
LP: Summary thus far Requirements Graphical solutions Excel Sensitivity Analysis.
QMB 4701 MANAGERIAL OPERATIONS ANALYSIS
Linear Programming Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
Wiley Supplement B Linear Programming Operations Management by R. Dan Reid & Nada R. Sanders 4th Edition © Wiley 2010.
1 The Dual in Linear Programming In LP the solution for the profit- maximizing combination of outputs automatically determines the input amounts that must.
3 Characteristics of an Optimization Problem General descriptionKPiller Illustration Decisions that must be made; represented by decision variables How.
Sensitivity analysis continued… BSAD 30 Dave Novak Source: Anderson et al., 2013 Quantitative Methods for Business 12 th edition – some slides are directly.
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.
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.
Lecture 6 Linear Programming Sensitivity Analysis
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming Chapter 2.
CDAE Class 16 Oct. 18 Last class: 3. Linear programming and applications Quiz 4 Today: Result of Quiz 4 3. Linear programming and applications Group.
Operations Research By: Saeed Yaghoubi 1 Graphical Analysis 2.
Don Sutton Spring LP Basic Properties Objective Function – maximize/minimize profit/cost Resource Constraints – labor, money Decision.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
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.
Appendix A with Woodruff Edits Linear Programming Using the Excel Solver Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Chapter 2 Linear Programming Models: Graphical and Computer Methods
Solver & Optimization Problems
Exam 1 Review/Instructions
Sensitivity.
Linear Programming Excel Solver.
Optimization Models Module 9.
BUS-221 Quantitative Methods
Presentation transcript:

1 5. Linear Programming 1.Introduction to Constrained Optimization –Three elements: objective, constraints, decisions –General formulation –Terminology 2.Linear Programming –Properties of LP –Solving LP problems using Solver –Sensitivity analysis: constraints and shadow prices, objective function coefficients

2 Portfolio Management A portfolio manager wants to structure a portfolio from several investments: A, B, C, D Decisions: Objective: Constraints: If is more important –Objective: –Constraints:

3 Constrained Optimization Constrained Optimization: find decisions that Maximize (or minimize): objective function Subject to: constraints (limitations on resources) Applications –Portfolio management-- Distribution –Location planning -- Production planning –Production scheduling-- Workforce planning –Many others Example: Produce and ship 100 products from 20 plants to 50 DCs around the world, to minimize costs. Constraints? Decisions? Objective?

4 General Formulation LHSRHS

5 Terminology Decision variables - things we can control Objective function - performance measure Feasible region - The region in which the decision variables satisfy all of the constraints (choice set) Feasible solution - A solution that satisfies all constraints (lies within the feasible region). Optimal solution - the feasible solution that achieves the best (max or min) value for the objective function. Optimal objective function value - The value of the objective function at the optimal solution.

6 Linear Programs An important tractable special case –Very easy for the computer to solve a large scale problem –Wide applications Linear objective function and constraints The feasible region will be a convex polyhedron –Convex: No holes or indentations –Polyhedron: flat sides Optimal solution will always be at a corner – ignore infinite feasible points on sides and interior points

7 Product Mix Problem $16.00$6.00 Marginal Profit M2 2042M1 Available Machine Hours BA Products Machines hours Maximize Subject to:

8 We must tell Excel’s Solver that: Decision variables are in C3:D3 (Changing Cells) Objective function is in F4 (Target Cell) Constraints are F6:F7 (hours used)  E6:E7 (hours available) LP in Excel: Formulation (LP_MILP.xls) It is a Linear Model with Non-Negative decision variables (under Options) In Excel Spreadsheet: For given values of the decision variables in C3:D3, calculate the objective value: F4 = SUMPRODUCT(C4:D4, C3:D3) calculate the LHS of the constraints: F6 = SUMPRODUCT(C6:D6, $C$3:$D$3) F7 = SUMPRODUCT(C7:D7, $C$3:$D$3)

9 LP in Excel: Instructions for Solver (LP_MILP.xls) Solver Options: Select “Linear Model” & “Non-Negative” Go to Tools and find Solver

10 What is the solution? ProdA =, ProdB = Profit = How much machine time? Mach1 =, Mach2 = Unused machine time? Mach1 =, Mach2 = Answer Report: The Solution (LP_MILP.xls) Max 6X A + 16X B s.t. 2X A + 4X B  20 2X A + 1.5X B  12 X A  0, X B  0

11 Reduced Cost Why would we lose $2 to produce 1 unit of ProdA ( Reduced Cost )? Allowable Increase (a) How much must the profit margin of ProdA increase before we will produce it ( Allowable Increase )? Allowable Increase (b) What if the profit margin of ProdA increases by more than $2 ( Allowable Increase )? Sensitivity Report: Sensitivity Analysis of Objective Function

12 Sensitivity Report: Sensitivity Analysis of Objective Function  If you change an Objective Coefficient within its Allowable Increase/Decrease, the “Final Values of the Variables” do not change (i.e. the same corner is optimal)  Outside that range, the “Final Values” change (i.e., new optimal solution).

13 The shadow price is the rate of change of objective function per unit increase of the RHS (constraint limit). If 2 hours of Mach 1 time were unavailable (i.e. 20 decreases to 18), how much would the objective function change? Why is the Shadow Price = zero for Mach 2? Sensitivity Report: Sensitivity Analysis of Constraints  Within the Allowable Increase/Decrease for the RHS, the “Shadow Price” is constant.  Outside that range, the “Shadow Price” changes

14 Takeaways 1.Introduction to Constrained Optimization –Three elements: objective (max or min), constraints ( ≤, ≥, =), decision variables –Formulation 2.Linear Programming: linear constraints and objective function –Properties of LP: optimal solution at a corner –Solving LP problems using Solver Answer: optimal objective value, decisions, binding/nonbinding constraints Sensitivity analysis: –Objective function coefficients: reduced cost, allowable increase/decrease (when zero, multiple solutions) –Constraints: shadow prices (if 0, non-bottleneck), allowable increase/decrease on RHS of constraints

X A + 4X B = 20 (Machine 1) 2X A + 1.5X B = 12 (Machine 2) XAXA XBXB Graph 1: Solution See Output 1: Solution Which constraints are “binding” the optimal solution?

X A + 4X B = 20 (Machine 1) 2X A + 1.5X B = 12 (Machine 2) 6X A + 16X B = 16 6X A + 16X B = 80 XAXA XBXB Solution See Output 1: Solution Which constraints are “binding” the optimal solution? 6X A + 16X B = 32

X A + 1.5X B = 12 (Machine 2) 6X A + 16X B = 80 XAXA XBXB 2X A + 4X B = 20 (Machine 1) How many optimal solutions are there in this case? Changing One of the Objective Function Coefficient Allowable Increase = 2 for Objective Coefficient of Product A Let’s add 2 to the objective coefficient of X A : 8X A + 16X B = 80

X A + 1.5X B = 12 (Machine 2) Now Try: 10X A + 16X B = 80 6X A + 16X B = 80 Changing the Objective Function Coefficient More than the Allowable Increase or Decrease Allowable Increase = 2 for Objective Coefficient of Product A 2X A + 4X B = 20 (Machine 1) New Solution: ( ) XAXA XBXB

X A + 1.5X B = 12 (Machine 2) Changing the LHS of a Constraint Machine 1 Constraint has: Constraint R.H. Side = 20, Allowable Increase = 12, Allowable Decrease = 20 2X A + 4X B = 20 Now lets try 2X A + 4X B = 16 Do the decision variables change? Does the objective function change? XAXA XBXB