Operations Management Dr. Ron Lembke

Slides:



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

Understanding optimum solution
Linear Programming Operations Management Dr. Ron Tibben-Lembke.
LP EXAMPLES: ANOTHER MAX AND A MIN Dr. Ron Lembke.
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
Introduction to Management Science
Linear Programming Sensitivity of the Right Hand Side Coefficients.
SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke.
Operations Management Linear Programming Module B - Part 2
Chapter 3 Linear Programming: Sensitivity Analysis and Interpretation of Solution MT 235.
Operation Research Chapter 3 Simplex Method.
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.
1 Chapter 7 Linear Programming Models Continued – file 7c.
Chapter 4: Linear Programming Sensitivity Analysis
QM B Linear Programming
1 5. Linear Programming 1.Introduction to Constrained Optimization –Three elements: objective, constraints, decisions –General formulation –Terminology.
The Simplex Method.
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.
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
LINEAR PROGRAMMING INTRODUCTION
1 1 Slide LINEAR PROGRAMMING: THE GRAPHICAL METHOD n Linear Programming Problem n Properties of LPs n LP Solutions n Graphical Solution n Introduction.
© Copyright 2004, Alan Marshall 1 Lecture 1 Linear Programming.
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
Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,
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,
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.
Solving Linear Programming Problems: The Simplex Method
LP: Summary thus far Requirements Graphical solutions Excel Sensitivity Analysis.
QMB 4701 MANAGERIAL OPERATIONS ANALYSIS
Transportation Problems Dr. Ron Lembke. Transportation Problems Linear programming is good at solving problems with zillions of options, and finding the.
Linear Programming Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
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.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
Sensitivity analysis LI Xiao-lei. A graphical introduction to sensitivity analysis Sensitivity analysis is concerned with how changes in an LP’s parameters.
1 1 Slide © 2005 Thomson/South-Western Simplex-Based Sensitivity Analysis and Duality n Sensitivity Analysis with the Simplex Tableau n Duality.
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.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming Chapter 2.
Chapter 8 of Quantitative Methods for Business by Anderson, Sweeney and Williams Read sections 8.1, , 8.4 (omitting “Simultaneous Changes”), 8.5,
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.
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.
Solving Linear Optimization Problems Using the Solver Add-in.
SOLVING LINEAR PROGRAMS Dr. Ron Lembke. Solving LPs Need a more formal method How to find points to solve for? A picture is worth a thousand words.
Linear Programming Operations Management Dr. Ron Lembke.
Excel Solver.
Wyndor Example; Enter data
Introduction to linear programming (LP): Minimization
ENGM 631 Optimization Ch. 4: Solving Linear Programs: The Simplex Method.
Duality Theory and Sensitivity Analysis
Linear Programming SIMPLEX METHOD.
Linear Programming Excel Solver.
Solving Linear Optimization Problems Using the Solver Add-in
BUS-221 Quantitative Methods
Presentation transcript:

Operations Management Dr. Ron Lembke Linear Programming Operations Management Dr. Ron Lembke

Motivating Example Suppose you are an entrepreneur making plans to make a killing over the summer by traveling across the country selling products you design and manufacture yourself. To be more straightforward, you plan to follow the Dead all summer, selling t-shirts.

Example You are really good with tie-dye, so you earn a profit of $25 for each t-shirt. The sweatshirt screen-printed sweatshirt makes a profit of $20. You have 4 days before you leave, and you want to figure out how many of each to make before you head out for the summer. You plan to work 14 hours a day on this. It takes you 30 minutes per tie dye, and 15 minutes to make a sweatshirt.

Example You have a limited amount of space in the van. Being an engineer at heart, you figure: If you cram everything in the van, you have 40 cubit feet of space in the van. A tightly packed t-shirt takes 0.2 ft3 A tightly packed sweatshirt takes 0.5 ft3. How many of each should you make?

Summary 14 hrs / day Van: 40.0 ft3 4 days Tshirt: 0.2 ft3 30 min / tshirt Sshirt: 0.5 ft3 15 min / Sshirt How many should we make of each?

Linear Programming What we have just done is called “Linear Programming.” Has nothing to do with computer programming Invented in WWII to optimize military “programs.” “Linear” because no x3, cosines, x*y, etc.

Standard Form Max 3x + 4y s.t. x + y <= 10 x + 2y <= 12 Linear programs are written the following way: Max 3x + 4y s.t. x + y <= 10 x + 2y <= 12 x >= 0 y >= 0

Standard Form Max 3x + 4y s.t. x + y <= 10 x + 2y <= 12 Linear programs are written the following way: Objective Coefficients Objective Function Max 3x + 4y s.t. x + y <= 10 x + 2y <= 12 x >= 0 y >= 0 Constraints RHS (right hand side) Non-negativity Constraints LHS (left hand side) inequalities

Example 2 mp3 - 4 hrs electronics work - 2 hrs assembly time DVD - 3 hrs assembly time - 1 hrs assembly time Hours available: 240 (elect) 100 (assy) Profit / unit: mp3 $7, DVD $5 X1 = number of mp3 players to make X2 = number of DVD players to make

Standard Form Max 7x1 + 5x2 s.t. 4x1 + 3x2 <= 240 electronics assembly

Graphical Solution 0 20 40 60 80 80 20 40 60 100 X2 mp3 X1 DVD players

Graphical Solution 100 80 60 40 20 0 20 40 60 80 X1 = 0, X2 = 80 X2 0 20 40 60 80 80 20 40 60 100 X2 mp3 X1 = 60, X2 = 0 Electronics Constraint X1 DVD players

Graphical Solution 100 80 60 40 20 0 20 40 60 80 X1 = 0, X2 = 100 X2 0 20 40 60 80 80 20 40 60 100 Assembly Constraint X2 mp3 X1 = 50, X2 = 0 X1 DVD players

Graphical Solution 0 20 40 60 80 80 20 40 60 100 Assembly Constraint X2 Feasible Region – Satisfies all constraints mp3 Electronics Constraint X1 DVD players

Isoprofit Lnes 100 80 60 40 20 0 20 40 60 80 X2 $7X1 + $5X2 = $210 0 20 40 60 80 80 20 40 60 100 X2 Isoprofit Line: mp3 $7X1 + $5X2 = $210 (0, 42) (30,0) X1 DVD players

Isoprofit Lines 100 80 60 $280 40 $210 20 0 20 40 60 80 X2 X1 mp3 0 20 40 60 80 80 20 40 60 100 X2 $280 mp3 $210 X1 DVD players

Isoprofit Lines 100 80 $350 60 $280 40 $210 20 0 20 40 60 80 X2 X1 mp3 0 20 40 60 80 80 20 40 60 100 $350 X2 $280 mp3 $210 X1 DVD players

Isoprofit Lines 0 20 40 60 80 80 20 40 60 100 (0, 82) $7X1 + $5X2 = $410 X2 mp3 (58.6, 0) X1 DVD players

Mathematical Solution Obviously, graphical solution is slow We can prove that an optimal solution always exists at the intersection of constraints. Why not just go directly to the places where the constraints intersect?

Constraint Intersections 0 20 40 60 80 80 20 40 60 100 X1 = 0 and 4X1 + 3X2 <= 240 So X2 = 80 (0, 80) X2 mp3 4X1 + 3X2 <= 240 (0, 0) X1 DVD players

Constraint Intersections 0 20 40 60 80 80 20 40 60 100 (0, 80) X2 mp3 X2 = 0 and 2X1 + 1X2 <= 100 So X1 = 50 (0, 0) (50, 0) X1 DVD players

Constraint Intersections 4X1+ 3X2 <= 240 2X1 + 1X2 <= 100 – multiply by -2 0 20 40 60 80 80 20 40 60 100 4X1+ 3X2 <= 240 -4X1 -2X2 <= -200 add rows together (0, 80) 0X1+ 1X2 <= 40 X2 = 40 substitute into #2 X2 2X1+ 40 <= 100 So X1 = 30 mp3 (0, 0) (50, 0) X1 DVD players

Constraint Intersections 0 20 40 60 80 80 20 40 60 100 Find profits of each point. (0, 80) $400 X2 mp3 (30,40) $410 (50, 0) $350 (0, 0) $0 X1 DVD players

Do we have to do this? Obviously, this is not much fun: slow and tedious Yes, you have to know how to do this to solve a two-variable problem. We won’t solve every problem this way.

Constraint Intersections Start at (0,0), or some other easy feasible point. Find a profitable direction to go along an edge Go until you hit a corner, find profits of point. If new is better, repeat, otherwise, stop. 100 Good news: Excel can do this for us. 80 60 mp3 X2 40 20 0 20 40 60 80 X1 DVD players

Minimization Example Min 8x1 + 12x2 s.t. 5x1 + 2x2 ≥ 20 4x1 + 3x2 ≥ 24

Minimization Example Min 8x1 + 12x2 s.t. 5x1 + 2x2 ≥ 20 4x1 + 3x2 ≥ 24 If x1=0, 2x2=20, x2=10 (0,10) If x2=0, 5x1=20, x1=4 (4,0) 4x1 + 3x2 =24 If x1=0, 3x2=24, x2=8 (0,8) If x2=0, 4x1=24, x1=6 (6,0) x2= 2 If x1=0, x2=2 No matter what x1 is, x2=2

Graphical Solution 10 8 6 4 2 0 2 4 6 8 X2 X1 5x1 + 2x2 =20 0 2 4 6 8 8 2 4 6 10 5x1 + 2x2 =20 X2 4x1 + 3x2 =24 x2=2 X1

[5x1+ 2x2 =20]*3 [4x1 +3x2 =24]*2 15x1+ 6x2 = 60 8x1 +6x2 = 48 (0,10) 0 2 4 6 8 8 2 4 6 10 - 7x1 = 12 5x1 + 2x2 =20 x1 = 12/7= 1.71 5x1+2x2 =20 5*1.71 + 2x2 =20 2x2 = 11.45 x2 = 5.725 (1.71,5.73) X2 (1.71,5.73) 4x1 +3x2 =24 x2 =2 X1

4x1 +3x2 =24 x2 =2 4x1 +3*2 =24 4x1 =18 x1=18/4 = 4.5 (4.5,2) (0,10) 0 2 4 6 8 8 2 4 6 10 5x1 + 2x2 =20 X2 (1.71,5.73) 4x1 +3x2 =24 x2 =2 (4.5,2) X1

Lowest Cost (0,10) Z=8x1 +12x2 8*0 + 12*10 = 120 0 2 4 6 8 8 2 4 6 10 5x1 + 2x2 =20 Z=8x1 +12x2 8*1.71 + 12*5.73 = 82.44 X2 (1.71,5.73) 4x1 +3x2 =24 Z=8x1 +12x2 8*4.5+ 12*2 = 60 x2 =2 (4.5,2) X1

Profit Line 10 8 6 4 2 0 2 4 6 8 10 12 X2 X1 Z=8x1 +12x2 Try 8*12 = 96 0 2 4 6 8 10 12 X1

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

Current solution Amount of each constraint 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.

RHS of constraints, Inequality signs. Objective Function value of current solution RHS of constraints, Inequality signs.

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 Solver Doesn’t Appear

Solving in Excel Choose ‘Solver’ from ‘Tools’ menu Tell Solver what is the objective function, and which are variables. Tell Solver to minimize or maximize

Solving in Excel Choose ‘Solver’ from ‘Tools’ menu Tell Solver what is the objective function, and which are variables. Tell Solver to minimize or maximize 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. Add rest of constraints

Add Constraint Dialog Box

Constraints Added

Assuming Linear 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 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. Solve the LP: Click ‘Solve.’ Look at Results.

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.

Solution After clicking on the reports you want generated, they will be generated on new worksheets. You will return to the workbook page you were at when you called up Solver. It will show the optimal solution that was found.

Optimal Solution

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: Allowable decrease 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. Up to 24.667, Down to 23.333

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.

Sensitivity Report

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

Limits Report