Linear Programming Operations Management Dr. Ron Tibben-Lembke.

Slides:



Advertisements
Similar presentations
Linear Programming Sensitivity Analysis How will a change in a coefficient of the objective function affect the optimal solution? How will a change in.
Advertisements

Linear Programming Problem
LINEAR PROGRAMMING (LP)
LINEAR PROGRAMMING SENSITIVITY ANALYSIS
Understanding optimum solution
Lesson 08 Linear Programming
LP EXAMPLES: ANOTHER MAX AND A MIN Dr. Ron Lembke.
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc. 1 Chapter 5 Sensitivity Analysis: An Applied Approach to accompany Introduction to.
Standard  MM3A6. Students will solve linear programming problems in two variables.  a. Solve systems of inequalities in two variables, showing the solutions.
Sherwood Furniture Company
BA 452 Lesson A.2 Solving Linear Programs 1 1ReadingsReadings Chapter 2 An Introduction to Linear Programming.
SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke.
LINEAR PROGRAMMING (LP)
8/27: Linear Programming Lecture: LP Small Groups Homework.
Chapter 2 Linear Programming Models: Graphical and Computer Methods © 2007 Pearson Education.
19 Linear Programming CHAPTER
Chapter 3 Linear Programming: Sensitivity Analysis and Interpretation of Solution MT 235.
Operation Research Chapter 3 Simplex Method.
Operations Management Dr. Ron Lembke
Chapter 4: Linear Programming Sensitivity Analysis
Linear Programming Example 4 Determining Objective Function Coefficients Interpretation of Shadow Prices Interpretation of Reduced Costs Ranges of Optimality/Feasibility.
QM B Linear Programming
6s-1Linear Programming CHAPTER 6s Linear Programming.
D1: Linear Programming.
Linear Programming Example 2 Alternate Optimal Solutions.
LINEAR PROGRAMMING INTRODUCTION
Unit 1 Linear programming. Define: LINEAR PROGRAMMING – is a method for finding a minimum or maximum value of some quantity, given a set of constraints.
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 Operations Research – Engineering and Math Management Sciences – Business Goals for this section  Modeling situations in a linear environment.
1© 2003 by Prentice Hall, Inc. Upper Saddle River, NJ The Wyndor Glass Company Problem (Hillier and Liberman) The Wyndor Glass Company is planning.
Chapter 19 Linear Programming McGraw-Hill/Irwin
Chapter 12 Section 12.1 The Geometry of Linear Programming.
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,
The application of mathematics and the scientific
Linear Programming Objective: I can solve problems using linear programming.
Sensitivity Analysis What if there is uncertainly about one or more values in the LP model? 1. Raw material changes, 2. Product demand changes, 3. Stock.
Presentation: H. Sarper
Optimization Models Mathematical optimization models usually contain an objective (what to do) constraints (the rules that must be followed). Also referred.
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.
Linear Programming Topics General optimization model LP model and assumptions Manufacturing example Characteristics of solutions Sensitivity analysis Excel.
Operations Management
Duality Theory LI Xiaolei.
1 Additional examples LP Let : X 1, X 2, X 3, ………, X n = decision variables Z = Objective function or linear function Requirement: Maximization of the.
THE GALAXY INDUSTRY PRODUCTION PROBLEM -
1/17: DSCB Getting Started, Linear Programming Administrative Issues –Syllabus –Calendar –Get usernames, addresses, majors Linear Programming.
Warm up  Write the equation of a quadratic function with a vertical compression of 0.2 that is shifted left 1 and up 7.  At a clothing store, shirts.
Solve problems by using linear programming.
 A concert promoter wants to book a rock group for a stadium concert. A ticket for admission to the stadium playing field will cost $125, and a ticket.
Linear Programming Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
1 Max 8X 1 + 5X 2 (Weekly profit) subject to 2X 1 + 1X 2  1000 (Plastic) 3X 1 + 4X 2  2400 (Production Time) X 1 + X 2  700 (Total production) X 1.
A LINEAR PROGRAMMING PROBLEM HAS LINEAR OBJECTIVE FUNCTION AND LINEAR CONSTRAINT AND VARIABLES THAT ARE RESTRICTED TO NON-NEGATIVE VALUES. 1. -X 1 +2X.
1 The Geometry of Linear Programs –the geometry of LPs illustrated on GTC Handouts: Lecture Notes February 5, 2002.
Monday WARM-UP: TrueFalseStatementCorrected Statement F 1. Constraints are conditions written as a system of equations Constraints are conditions written.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
Unit 1 Linear programming. Define: LINEAR PROGRAMMING – is a method for finding a minimum or maximum value of some quantity, given a set of constraints.
December 4, 2015 Hanging with Harvard 4 L INEAR P ROGRAMMING.
Linear Programming Short-run decision making model –Optimizing technique –Purely mathematical Product prices and input prices fixed Multi-product production.
Warm-upWarm-up Sketch the region bounded by the system of inequalities: 1) 2) Sketch the region bounded by the system of inequalities: 1) 2)
LINEAR PROGRAMMING 3.4 Learning goals represent constraints by equations or inequalities, and by systems of equations and/or inequalities, and interpret.
1 Geometrical solution of Linear Programming Model.
MIT and James Orlin © The Geometry of Linear Programs –the geometry of LPs illustrated on GTC.
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.
An Introduction to Linear Programming
The application of mathematics and the scientific
Chapter 7: Systems of Equations and Inequalities; Matrices
Linear Programming Problem
Linear Programming Example 4
Do Now Exercise Solve each linear system
Presentation transcript:

Linear Programming Operations Management Dr. Ron Tibben-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 ft 3  A tightly packed sweatshirt takes 0.5 ft 3. How many of each should you make?

Summary 14hrs / day Van:40.0 ft 3 4days Tshirt:0.2 ft 3 30min / tshirt Sshirt:0.5 ft 3 15min / 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 x 3, cosines, x*y, etc.

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

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

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 Max7x 1 +5x 2 s.t. 4x 1 +3x 2 <=240 2x 1 +1x 2 <=100 x 1 >=0 x 2 >=0 electronics assembly

Graphical Solution DVD players mp3 X2X2 X1X1

Graphical Solution DVD players mp3 X 1 = 0, X 2 = 80 X 1 = 60, X 2 = 0 Electronics Constraint X2X2 X1X1

Graphical Solution DVD players mp3 X 1 = 0, X 2 = 100 X 1 = 50, X 2 = 0 Assembly Constraint X2X2 X1X1

Graphical Solution DVD players mp3 Assembly Constraint Electronics Constraint Feasible Region – Satisfies all constraints X2X2 X1X1

DVD players mp3 Isoprofit Line: $7X 1 + $5X 2 = $210 (0, 42) (30,0) Isoprofit Lnes X2X2 X1X1

Isoprofit Lines DVD players mp3 $210 $280 X2X2 X1X1

Isoprofit Lines DVD players mp3 $210 $280 $350 X2X2 X1X1

Isoprofit Lines DVD players mp3 (0, 82) (58.6, 0) $7X 1 + $5X 2 = $410 X2X2 X1X1

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 DVD players mp3 X 1 = 0 and 4X 1 + 3X 2 <= 240 So X 2 = 80 X2X2 X1X1 4X 1 + 3X 2 <= 240 (0, 0) (0, 80)

Constraint Intersections DVD players mp3 X 2 = 0 and 2X 1 + 1X 2 <= 100 So X 1 = 50 X2X2 X1X1 (0, 0) (0, 80) (50, 0)

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

Constraint Intersections DVD players mp3 X2X2 X1X1 (0, 0) $0 (0, 80) $400 (50, 0) $350 (30,40) $410 Find profits of each point.

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 DVD players mp3 X2X2 X1X1 Start at (0,0), or some other easy feasible point. 1.Find a profitable direction to go along an edge 2.Go until you hit a corner, find profits of point. 3.If new is better, repeat, otherwise, stop. Good news: Excel can do this for us.

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.

Amount of each constraint used by current solution 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

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

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

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.

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: 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 , Down to

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