SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke.

Slides:



Advertisements
Similar presentations
Solving LP Problems in a Spreadsheet
Advertisements

Using Solver to solve a minimization LP + interpretation of output BSAD 30 Dave Novak Source: Anderson et al., 2013 Quantitative Methods for Business 12.
Understanding optimum solution
Introduction to Sensitivity Analysis Graphical Sensitivity Analysis
Notes 4IE 3121 Why Sensitivity Analysis So far: find an optimium solution given certain constant parameters (costs, demand, etc) How well do we know these.
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.
Optimization Models Module 9. MODEL OUTPUT EXTERNAL INPUTS DECISION INPUTS Optimization models answer the question, “What decision values give the best.
Operations Management Linear Programming Module B - Part 2
Chapter 7 Linear Programming Models Part One n Basis of Linear Programming n Linear Program formulati on.
Chapter 3 Linear Programming: Sensitivity Analysis and Interpretation of Solution MT 235.
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 5. Linear Programming 1.Introduction to Constrained Optimization –Three elements: objective, constraints, decisions –General formulation –Terminology.
Linear Programming: Fundamentals
1 1 Slide LINEAR PROGRAMMING Introduction to Sensitivity Analysis Professor Ahmadi.
Computational Methods for Management and Economics Carla Gomes Module 4 Displaying and Solving LP Models on a Spreadsheet.
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 INTRODUCTION
John Loucks Modifications by A. Asef-Vaziri Slides by St. Edward’s
Solver Linear Problem Solving MAN Micro-computers & Their Applications.
© Copyright 2004, Alan Marshall 1 Lecture 1 Linear Programming.
Introduction to Optimization
Supplement B Introduction to Optimization Operations Management by R. Dan Reid & Nada R. Sanders 3 rd Edition © Wiley 2005 PowerPoint Presentation by Roger.
Chapter 4 - Linear Programming: Computer Solution Excel Solver
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
Spreadsheet Modeling of Linear Programming (LP). Spreadsheet Modeling There is no exact one way to develop an LP spreadsheet model. We will work through.
Special Conditions in LP Models (sambungan BAB 1)
We can make Product1 and Product2. There are 3 resources; Resource1, Resource2, Resource3. Product1 needs one hour of Resource1, nothing of Resource2,
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.
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.
Goal Seek and Solver. Goal seeking helps you n Find a specific value for a target cell by adjusting the value of one other cell whose value is allowed.
1 The Dual in Linear Programming In LP the solution for the profit- maximizing combination of outputs automatically determines the input amounts that must.
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 6 Simplex-Based Sensitivity Analysis and Duality
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.
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.
ENGM 631 Optimization Using Solver. Sec. 3.1Alt. Model Max Z = 3X 1 + 5X 2 s.t. X 1 < 8,000 X 2 < 6,000 3X 1 + 4X 2 < 36,000 X 1 > 0 X 2 > 0.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
Linear Programming II. George Dantzig 1947 Narendra Karmarkar Pioneers of LP.
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.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Solving Linear Optimization Problems Using the Solver Add-in.
Excel Solver Tutorial BI&A 674.
Introduction to Optimization
Chap 10. Sensitivity Analysis
Solver & Optimization Problems
Excel Solver IE 469 Spring 2017.
Excel Solver.
Excel Solver IE 469 Spring 2018.
Wyndor Example; Enter data
Introduction to linear programming (LP): Minimization
Duality Theory and Sensitivity Analysis
Sensitivity.
Excel Solver IE 469 Fall 2018.
Linear Programming Excel Solver.
Optimization Models Module 9.
Solving Linear Optimization Problems Using the Solver Add-in
Excel Solver IE 469 Spring 2019.
Presentation transcript:

SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke

Formulating in Excel 1. Write the LP out on paper, with all constraints and the objective function. 2. Decide on cells to represent variables. 3. Enter coefficients of each variable in each constraint in a block of cells. 4. Compute amount of each constraint being used by current solution.

Formulating in Excel 5. Place inequalities in sheet, so you remember = 6. Enter amount of each constraint 7. Enter objective coefficients 8. Calculate value of objective function 9. Make sure you have plenty of labels. 10. Widen columns for readability.

Standard Form Max7x 1 +5x 2 s.t. 4x 1 +3x 2 <=240 2x 1 +1x 2 <=100 x 1 >=0 x 2 >=0 electronics assembly

Constraint coefficients Current value of variables Formulating in Excel

Amount of each constraint used by current solution Formulating in Excel

RHS of constraints, Inequality signs. Objective Function Coefficients Formulating in Excel Objective Function Value

Fancy “What If” Tool Trial and error Simplifies the math Can’t solve it for us

Solving in Excel All we have so far is a big ‘what if” tool. We need to tell the LP Solver that this is an LP that it can solve. Choose ‘Solver’ from ‘Tools’ menu

Click “Data” then “Solver”

If No Solver, Office2010

If No Solver, Office 2007

Solving in Excel 1. Choose ‘Solver’ from ‘Data’ tab 2. Tell Solver what is the objective function, and which are variables. 3. Tell Solver to minimize or maximize

Solver Dialog Box Set the Target Sell Tell to minimize or maximize Where the variables are

Solving in Excel 1. Choose ‘Solver’ from ‘Tools’ menu 2. Tell Solver what is the objective function, and which are variables. 3. Tell Solver to minimize or maximize 4. Add constraints:  Click ‘Add’, enter LHS, RHS, choose inequality  Click ‘Add’ if you need to do more, or click ‘Ok’ if this is the last one. 5. Add rest of constraints

Add Constraint Dialog Box

Constraints Added

Assuming Linear 6. You have to tell Solver that the model is Linear. Click ‘options,’ and make sure the ‘Assume Linear Model’ box is checked.

Assume Linear

Assuming Linear 6. You have to tell Solver that the model is Linear. Click ‘options,’ and make sure the ‘Assume Linear Model’ box is checked. On this box, checking “assume non-negative” means you don’t need to actually add the non- negativity constraints manually. 7. Solve the LP: Click ‘Solve.’ Look at Results.

Office 2010

Office 2010 Options Set maximum time to look for a solution OR maximum # of iterations  Our problems should solve quickly

Solution is Found When a solution has been found, this box comes up. You can choose between keeping the solution and going back to your original solution. Highlight the reports that you want to look at.

Successful Solution

Optimality Conditions? Sweatshirts T-shirts T S Each time we go to another solution, Objective value gets better

Optimality Conditions Simplex method creates “dual”  Max has a min dual, min has a max dual Dual and “primal” converge to same value Solution must be optimal

Answer Report Gives optimal and initial values of objective function Gives optimal and initial values of variables Tells amount of ‘slack’ between LHS and RHS of each constraint, tells whether constraint is binding.

Answer Report

Sensitivity Report Variables: Final value of each variable Reduced cost: how much objective changes if current solution is changed Objective coefficient (from problem)

Sensitivity Report Variables: Allowable increase: How much the objective coefficient can go up before the optimal solution changes. Allowable decrease: How much the objective coefficient can go down before optimal solution changes. Both of these only are accurate for changes made to one variable at a time. If you change more than one variable, need to re-solve the LP. Suppose t-shirts had increase of $5 decrease $10  Solution is optimal if t-shirt profits are between $15-$30

Sensitivity Report Constraints Final Value (LHS) Shadow price: how much objective would change if RHS increased by 1.0  Allowable increase, decrease: how wide a range of values of RHS shadow price is good for.  Also only accurate for changes made to one constraint at a time  To see the impact of changing more than one constraint, we just have to re-run the problem

Sensitivity Report

Limits Report Tells ranges of values over which the maximum and minimum objective values can be found. Rarely useful

Limits Report

Summary Entered the LP into Excel Opened Solver, told it how we wanted to solve the LP Interpreting results of Solver Reports  Answer report – basic results  Sensitivity – how much the situation would change with different profits per unit, or amounts of constraints