Using Solver to solve a minimization LP + interpretation of output BSAD 30 Dave Novak Source: Anderson et al., 2013 Quantitative Methods for Business 12.

Slides:



Advertisements
Similar presentations
February 14, 2002 Putting Linear Programs into standard form
Advertisements

Linear Programming Problem
Understanding optimum solution
Wyndor Example; Enter data Organize the data for the model on the spreadsheet. Type in the coefficients of the constraints and the objective function.
Introduction to Sensitivity Analysis Graphical Sensitivity Analysis
Sensitivity Analysis Sensitivity analysis examines how the optimal solution will be impacted by changes in the model coefficients due to uncertainty, error.
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.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke.
19 Linear Programming CHAPTER
Chapter 3 Linear Programming: Sensitivity Analysis and Interpretation of Solution MT 235.
Operations Management Dr. Ron Lembke
Sensitivity analysis BSAD 30 Dave Novak
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.
Chapter 2: Introduction to Linear Programming
QM B Linear Programming
6s-1Linear Programming CHAPTER 6s Linear Programming.
1 Linear Programming Using the software that comes with the book.
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.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
LINEAR PROGRAMMING INTRODUCTION
Chapter 3 An Introduction to Linear Programming
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
1 1 Slides by John Loucks St. Edward’s University Modifications by A. Asef-Vaziri.
1 1 Slide LINEAR PROGRAMMING: THE GRAPHICAL METHOD n Linear Programming Problem n Properties of LPs n LP Solutions n Graphical Solution n Introduction.
Chapter 4 - Linear Programming: Computer Solution Excel Solver
3-1 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Linear Programming: Computer Solution and Sensitivity Analysis Chapter 3.
LINEAR PROGRAMMING SIMPLEX METHOD.
Introduction to Mathematical Programming OR/MA 504 Chapter 3.
START EXCEL BUILD OR RETRIEVE YOUR OPTIMIZATION MODEL SAVE YOUR WORKBOOK!! CHOOSE “Solver…” IN THE “Tools” MENU SPECIFY IN SOLVER DIALOG BOX: 1.CELL TO.
1 The Role of Sensitivity Analysis of the Optimal Solution Is the optimal solution sensitive to changes in input parameters? Possible reasons for asking.
Chapter 19 Linear Programming McGraw-Hill/Irwin
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS ST. EDWARD’S UNIVERSITY.
Linear Programming: Basic Concepts
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. 6S Linear Programming.
1 1 Slide Linear Programming (LP) Problem n A mathematical programming problem is one that seeks to maximize an objective function subject to constraints.
We can make Product1 and Product2. There are 3 resources; Resource1, Resource2, Resource3. Product1 needs one hour of Resource1, nothing of Resource2,
Chapter 6 Supplement Linear Programming.
Chapter 7 Introduction to Linear Programming
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
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.
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
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.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming Chapter 2.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
6s-1Linear Programming William J. Stevenson Operations Management 8 th edition.
1 Introduction to Linear Programming Linear Programming Problem Linear Programming Problem Problem Formulation Problem Formulation A Simple Maximization.
Solving Linear Optimization Problems Using the Solver Add-in.
An Introduction to Linear Programming
Excel Solver.
Wyndor Example; Enter data
Introduction to linear programming (LP): Minimization
Linear Programming Excel Solver.
Linear Programming Problem
Solving Linear Optimization Problems Using the Solver Add-in
Presentation transcript:

Using Solver to solve a minimization LP + interpretation of output BSAD 30 Dave Novak Source: Anderson et al., 2013 Quantitative Methods for Business 12 th edition – some slides are directly from J. Loucks © 2013 Cengage Learning

Overview Focus on section 7.5 Solving the minimization LP using MS Solver and interpreting output Surplus variables Standard formulation of LP

Setting up the problem Go to Excel  choose the “Data” tab and then click on Solver The Solver Screen pops up and we will need to reference the cells for our problem: Set Objective refers to the OF in B4 Click the Min Radio button as this is a minimization problem

Setting up the problem By Changing Variable Cells refers to our two variables (cells B1 and B2) Subject to the Constraints: refers to our constraints for the problem. We will add each one separately. Select “Add”  in the Add Constraint Menu choose cell B8 for the left-hand-side “Cell Reference” for constraint #1 and choose cell C8 for the right-hand- side “Cell Reference” for constraint #1

Setting up the problem Make sure the Make Unconstrained Variables non-negative check box is checked (this ensures that X1 and X2 are non-negative). We cannot produce a negative number of either decision variable And using the Pull-down menu make sure that Select Solving Method is Simplex LP Select SOLVE

Setting up the problem The cells in your spreadsheet model should change and cell B1 should now = 3.2, cell B2 should now = 0.8, and cell B4 should = 17.6 Using the Solver Results Menu that pops up on your screen highlight both “Answer” and “Sensitivity” on the right-hand-side under Reports and click OK

Minimization example from last class We solved this graphically ObjectiveFunctionObjectiveFunction “Regular”Constraints“Regular”Constraints Non-negativity Constraints ConstraintsNon-negativity Min 5x 1 + 2x 2 s.t. #1) 2x 1 + 5x 2 > 10 #2) 4x 1  x 2 > 12 #2) 4x 1  x 2 > 12 #3) x 1 + x 2 > 4 #3) x 1 + x 2 > 4 x 1, x 2 > 0 x 1, x 2 > 0

Minimization problem #2) 4x 1 - x 2 > 12 #1) 2x 1 + 5x 2 > 10 x1x1 x1x1 Feasible Region #3) x 1 + x 2 > x2x2 x2x2 Objective function

Setting up the problem Download, save, and then open the Excel template file from the URL on the course schedule

Answer report (16/5, 4/5)

Answer Report Excel Solver uses the term “slack” when referring to any non-binding ≥ or ≤ constraints Non-binding constraints do not restrict the feasible region at the optimal solution point

Slack and surplus variables Recall that slack and surplus variables are added to the standard form LP whenever there is an inequality Less-than or equal to constraints ≤ require a SLACK variable that is added to the LHS of the constraint so that we can set the LHS = the RHS

Slack and surplus variables Greater-than or equal to constraints ≥ require a SURPLUS variable that is subtracted from the LHS of the constraint so that we can set the LHS = the RHS Equality constraints do not require either a slack or surplus variable in standard form

Slack and surplus variables Surplus variables describe EXCESS quantity or the amount over the RHS of the constraint that is being used (associated with ≥) It is feasible to use less Slack variables describe IDLE resources or the amount of the RHS of the constraint that is not being used (associated with ≤) It is feasible to use more

Answer Report Constraint #1 is a non-binding constraint and has “surplus” = 0.4 (although Excel uses the term slack for both ≥ and ≤) Constraint #1 does not directly affect the optimal solution – it is a redundant, non- binding constraint Because this is a minimization problem, and the constraints are ≥, this lets us know that at the optimal point (3.2, 0.8) we exceed the RHS of constraint #1 by 0.4 units

Magnified view of extreme points #2) 4x 1 - x 2 > 12 #1) 2x 1 + 5x 2 > 10 #3) x 1 + x 2 > 4 Optimal  A (3.2, 0.8) This point is restricted or bound by constraints #2 and #3, but NOT by constraint #1 B (3.33, 0.67) Surplus in non-binding constraint #1 at optimal point

Answer Report Binding constraints let us know that all the resources associated with those specific constraints are used (there is no excess and there is no shortage) The constraint “binds” the problem, and all resources are used – there is no slack or surplus

Standard form of the LP Standard form of the LP involves adding slack or surplus variables to the mathematical model so the problem can be solved using strict equalities For each ≥ constraint, there should be a “surplus” variable (denoted by S i ) Surplus variables have a coefficient of 0 in the OF Surplus variables have a coefficient of 1 in the constraints

Standard form of the LP Reformulate our problem

Standard form of the LP Reformulate our problem

Slack or surplus? (I just randomly created this, so don’t solve it) ObjectiveFunctionObjectiveFunction “Regular”Constraints“Regular”Constraints Non-negativity Constraints ConstraintsNon-negativity Min 10x x 2 s.t. #1) 2x 1 + 5x 2 > 15 #2) 4x 1  x 2 > 20 #2) 4x 1  x 2 > 20 #3) x 1 + x 2 ≤ 7 #3) x 1 + x 2 ≤ 7 #4) 2x 1  15 #4) 2x 1  15 x 1, x 2 > 0 x 1, x 2 > 0

Standard Form?

Standard form of the LP You could think of slack/surplus variables as “placeholder” variables that hold the numeric difference between the LHS and RHS of any inequality In an equality constraint, the RHS MUST EQUAL the LHS, so there are no slack/surplus variables

Summary Solver setup for an LP Answer report summary Define surplus variable in context of any minimization problem Formulate Standard Form LP