Readings Readings Chapter 2 An Introduction to Linear Programming.

Slides:



Advertisements
Similar presentations
Geometry and Theory of LP Standard (Inequality) Primal Problem: Dual Problem:
Advertisements

Linear Programming Problem
Lesson 08 Linear Programming
and Models Without Unique Optimal Solutions
Introduction to Sensitivity Analysis Graphical Sensitivity Analysis
Chapter 2: Modeling with Linear Programming & sensitivity analysis
CCMIII U2D4 Warmup This graph of a linear programming model consists of polygon ABCD and its interior. Under these constraints, at which point does the.
Dragan Jovicic Harvinder Singh
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.
Linear Inequalities and Linear Programming Chapter 5 Dr.Hayk Melikyan/ Department of Mathematics and CS/ Linear Programming in two dimensions:
Linear and Integer Programming Models
Linear Programming Models: Graphical Methods
Chapter 2 Linear Programming Models: Graphical and Computer Methods © 2007 Pearson Education.
Chapter 2: Introduction to Linear Programming
An Introduction to Linear Programming : Graphical and Computer Methods
1 1 Slide LINEAR PROGRAMMING Introduction to Sensitivity Analysis Professor Ahmadi.
Introduction to Management Science
Linear Programming Optimal Solutions and Models Without Unique Optimal Solutions.
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Chapter 3 An Introduction to Linear Programming
3 Components for a Spreadsheet Linear Programming Problem There is one cell which can be identified as the Target or Set Cell, the single objective of.
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.
FORMULATION AND GRAPHIC METHOD
Linear Programming.
Graphical Solutions Plot all constraints including nonnegativity ones
1 1 Slide LINEAR PROGRAMMING: THE GRAPHICAL METHOD n Linear Programming Problem n Properties of LPs n LP Solutions n Graphical Solution n Introduction.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Kerimcan OzcanMNGT 379 Operations Research1 LP: Sensitivity Analysis and Interpretation of Solution Chapter 3.
3.4 Linear Programming.
LINEAR PROGRAMMING SIMPLEX METHOD.
Readings Readings Chapter 3
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 3 Introduction to Optimization Modeling.
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS ST. EDWARD’S UNIVERSITY.
Linear and Integer Programming Models 1 Chapter 2.
Managerial Decision Making and Problem Solving
1 1 Slide Linear Programming (LP) Problem n A mathematical programming problem is one that seeks to maximize an objective function subject to constraints.
L4 Graphical Solution Homework See new Revised Schedule Review Graphical Solution Process Special conditions Summary 1 Read for W for.
THE GALAXY INDUSTRY PRODUCTION PROBLEM -
Graphing Linear Inequalities in Two Variables Chapter 4 – Section 1.
Chapter 7 Introduction to Linear Programming
1 1 Slide © 2005 Thomson/South-Western Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
A LINEAR PROGRAMMING PROBLEM HAS LINEAR OBJECTIVE FUNCTION AND LINEAR CONSTRAINT AND VARIABLES THAT ARE RESTRICTED TO NON-NEGATIVE VALUES. 1. -X 1 +2X.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
Linear Programming Models: Graphical and Computer Methods
Sensitivity analysis continued… BSAD 30 Dave Novak Source: Anderson et al., 2013 Quantitative Methods for Business 12 th edition – some slides are directly.
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.
2-1 Modeling with Linear Programming Chapter Optimal Solution for New Objective Function Graphical Solution of Maximization Model (12 of 12) Maximize.
Operations Research By: Saeed Yaghoubi 1 Graphical Analysis 2.
Linear Programming Models: Graphical and Computer Methods 7 To accompany Quantitative Analysis for Management, Twelfth Edition, by Render, Stair, Hanna.
1 Introduction to Linear Programming Linear Programming Problem Linear Programming Problem Problem Formulation Problem Formulation A Simple Maximization.
1 1 Slide Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an.
1 2 Linear Programming Chapter 3 3 Chapter Objectives –Requirements for a linear programming model. –Graphical representation of linear models. –Linear.
Chapter 2 Linear Programming Models: Graphical and Computer Methods
An Introduction to Linear Programming
Decision Support Systems
An Introduction to Linear Programming Pertemuan 4
Chapter 2 An Introduction to Linear Programming
Chapter 5 Linear Inequalities and Linear Programming
Graphical Analysis – the Feasible Region
Introduction to linear programming (LP): Minimization
Linear Programming Problem
Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an equation.
Presentation transcript:

Readings Readings Chapter 2 An Introduction to Linear Programming

Overview Overview

Overview Blending Problems are Linear Programming Profit Maximization problems when additional inputs may be bought. Blending Problems thus help blend resources to maximize profit or to minimize cost. Non-Unique Optimal Solutions of a linear program mean there are either alternative optimal solutions, no solutions because it is infeasible, or no solutions because the objective can be infinite. Blending with Mixed Constraints help blend resources (grass seeds, desserts, horse food, …) when constraints restrict permissible blends by a mixture of minimal and maximal characteristics.

Blending Blending

Blending Overview Blending Problems are Linear Programming Profit Maximization problems when additional inputs may be bought. Blending Problems thus help production managers blend resources (grass seeds, desserts, horse food, …) to produce goods either to maximize profit or to minimize cost. Constraints restrict permissible blends by product characteristics (shade tolerance, calories, vitamin content, …).

Blending Question: The Sanders Garden Shop blends two types of grass seed. Each type has been rated (per pound) according to its shade tolerance, ability to stand up to traffic, and drought resistance, as shown in the table:   Type A Type B Shade tolerance 2 5 Traffic resistance 4 -1 Drought resistance 1 1 For example, if 1 pound of Type A is the blend, then that blend scores 2 points of Shade tolerence; if 2 pounds of Type A, then 4 points. (The points could measure how many blades of green grass survive being in the shade.) For another example, if 1 pound of Type B is the blend, then that blend scores -1 points of Traffic resistance. (The points could measure the number of blades of green grass minus blades of dead grass when there is traffic on the grass. A negative score means there is more dead grass.)

Blending Type A seed costs $5 and Type B seed costs $2. Suppose the blend needs to score at least 10 points for shade tolerance, at least 12 points for traffic resistance, and at least 4 points for drought resistance. How many pounds of each seed should be in the blend? Which targets will be exceeded? How much will the blend cost?

Answer: First, formulate the problem as a linear program: Blending Answer: First, formulate the problem as a linear program: Objective: minimize cost of blending x1 pounds of Type A seed with x2 pounds of Type B seed Min 5x1 + 2x2 s.t. 2x1 + 5x2 > 10 4x1 - x2 > 12 x1 + x2 > 4 x1, x2 > 0 Constraint 1: Shade tolerance Constraint 2: Traffic resistance Constraint 3: Drought resistance Non-negativity constraints

Feasible side Binding edge Blending Min 5x1 + 2x2 s.t. 2x1 + 5x2 > 10 4x1 - x2 > 12 x1 + x2 > 4 x1, x2 > 0 Constraint 1: 2x1+5x2 > 10. Binding edge: 2x1+5x2 = 10. On the edge, when x1 = 0, then x2 = 2; when x2 = 0, then x1 = 5. Connect (5,0) and (0,2) for the binding edge of the constraint plus non-negativity. The feasible ">" side is above the binding edge. Feasible side Binding edge

Feasible side Binding edge Blending Min 5x1 + 2x2 s.t. 2x1 + 5x2 > 10 4x1 - x2 > 12 x1 + x2 > 4 x1, x2 > 0 Constraint 2: 4x1-x2 > 12. Binding edge: 4x1-x2 = 12. On the edge, when x2 = 0, then x1 = 3. But setting x1 to 0 yields x2 = -12, which violates non-negativity. Thus, to get a second point on the binding edge, set x1 to any number larger than 3 and solve for x2: when x1 = 4, then x2 = 4. Pass a line through (3,0) and (4,4) for the binding edge of the constraint. The feasible ">" side is to the right. Feasible side Binding edge

Feasible side Binding edge Blending Min 5x1 + 2x2 s.t. 2x1 + 5x2 > 10 4x1 - x2 > 12 x1 + x2 > 4 x1, x2 > 0 Constraint 3: x1 + x2 > 4. Binding edge: x1 + x2 = 4. On the edge, When x1 = 0, then x2 = 4; when x2 = 0, then x1 = 4. Connect (4,0) and (0,4) for the binding edge of the constraint. The feasible ">" side is above that line. Feasible side Binding edge

Feasible region 4x1 - x2 > 12 x1 + x2 > 4 2x1 + 5x2 > 10 Blending Min 5x1 + 2x2 s.t. 2x1 + 5x2 > 10 4x1 - x2 > 12 x1 + x2 > 4 x1, x2 > 0 Feasible region 4x1 - x2 > 12 x1 + x2 > 4 2x1 + 5x2 > 10

Min 5x1 + 2x2 4x1 - x2 > 12 x1 + x2 > 4 2x1 + 5x2 > 10 Blending Min 5x1 + 2x2 s.t. 2x1 + 5x2 > 10 4x1 - x2 > 12 x1 + x2 > 4 x1, x2 > 0 Min 5x1 + 2x2 Set the objective function equal to an arbitrary constant (say, 20) and graph it. For 5x1 + 2x2 = 20, when x1 = 0, then x2 = 10; when x2= 0, then x1 = 4. Connect (4,0) and (0,10). Move the objective function line in the direction that lowers its value (down), since we are minimizing, until it touches the last point of the feasible region, determined in Example 2 by the first two constraints 4x1 - x2 > 12 x1 + x2 > 4 2x1 + 5x2 > 10

Binding at optimum: 4x1 - x2 = 12 Blending Min 5x1 + 2x2 s.t. 2x1 + 5x2 > 10 4x1 - x2 > 12 x1 + x2 > 4 x1, x2 > 0 Min 5x1 + 2x2 Binding at optimum: 4x1 - x2 = 12 Binding at optimum: x1 + x2 = 4

Blending Min 5x1 + 2x2 s.t. 2x1 + 5x2 > 10 4x1 - x2 > 12 x1 + x2 > 4 x1, x2 > 0 The optimal solution (x1 = 5, x2 = 3) is where the second and third constraints bind: 4x1 - x2 = 12 and x1 + x2 = 4 Solve those equalities using linear algebra, matricies, determinates (det), and Cramer’s rule: 4x1 - x2 = 12 x1 + x2 = 4 -1 1 1 x1 x2 12 4 = 12 -1 4 1 4 -1 1 1 x1 = det / det = (12x1+1x4)/(4x1+1x1) = 16/5 4 12 1 4 -1 1 1 x2 = det / det = (4x4-12x1)/(4x1+1x1) = 4/5

How many pounds of each seed should be in the blend? Blending Min 5x1 + 2x2 s.t. 2x1 + 5x2 > 10 4x1 - x2 > 12 x1 + x2 > 4 x1, x2 > 0 How many pounds of each seed should be in the blend? 16/5 pounds of Type A seed; 4/5 pounds of Type B seed. Which targets will be exceeded? The traffic resistance and draught resistance constraints are binding at the optimum, but the shade tolerance target is exceeded (the constraint is slack). How much will the blend cost? 5x1 + 2x2 = 5(16/5) + 2(4/5) = 88/5 = 17.6 dollars.

Graph the feasible solutions for each of the constraints. Blending Graph the feasible solutions for each of the constraints. Determine the feasible region that satisfies all the constraints simultaneously. Graph an objective function line. Move parallel objective function lines toward smaller objective function values without entirely leaving the feasible region. Any feasible solution on the objective function line with the smallest value is an optimal solution.

s1 , s2 , and s3 are surplus variables Blending Min 5x1 + 2x2 s.t. 2x1 + 5x2 > 10 4x1 - x2 > 12 x1 + x2 > 4 x1, x2 > 0 Min 5x1 + 2x2 + 0s1 + 0s2 + 0s3 s.t. 2x1 + 5x2 - s1 = 10 4x1 - x2 - s2 = 12 x1 + x2 - s3 = 4 x1, x2, s1, s2, s3 > 0 s1 , s2 , and s3 are surplus variables

Blending Min 5x1 + 2x2 s.t. 2x1 + 5x2 > 10 4x1 - x2 > 12

0.4 surplus in the first constraint Blending Min 5x1 + 2x2 s.t. 2x1 + 5x2 > 10 4x1 - x2 > 12 x1 + x2 > 4 x1, x2 > 0 Optimal Solution: Minimized cost = 17.6 Optimal x1 = 3.2, x2 = 0.8 0.4 surplus in the first constraint

Non-Unique Optimal Solutions

Non-Unique Optimal Solutions Overview Non-Unique Optimal Solutions of a linear program mean there are either alternative optimal solutions, no solutions because it is infeasible, or no solutions because the objective function can be feasibly improved without bound.

Any linear program falls in one of four categories: Non-Unique Optimal Solutions The feasible region for a two-variable LP problem can be empty (nonexistent), a single point, a line, a polygon, or an unbounded area. Any linear program falls in one of four categories: has a unique optimal solution has alternative optimal solutions has no solution because it is infeasible has no solution because the objective function can be feasibly improved without bound A feasible region may be unbounded and yet there may be optimal solutions. This is common in practical minimization problems and sometimes occurs in practical maximization problems.

For example, consider the following LP problem: Non-Unique Optimal Solutions Alternative optimal solutions In the graphical method, if the objective function line is parallel to a boundary constraint in the direction of optimization, there are alternate optimal solutions, with all points on this line segment being optimal. For example, consider the following LP problem: Max 4x1 + 6x2 s.t. x1 < 6 2x1 + 3x2 < 18 x1 + x2 < 7 x1 > 0 and x2 > 0

All points on segment A – B are optimal solutions. Non-Unique Optimal Solutions Graph of alternative optimal solutions The binding edge of constraint 2x1 + 3x2 < 18 is parallel to all objective-function lines of 4x1 + 6x2 All points on segment A – B are optimal solutions. x2 x1 + x2 < 7 7 6 5 4 3 2 1 Max 4x1 + 6x2 A B x1 < 6 2x1 + 3x2 < 18 x1 1 2 3 4 5 6 7 8 9 10

Graphically, this means the feasible region is empty (does not exist). Non-Unique Optimal Solutions Conditions for infeasibility Infeasibility means no solution to the LP problem satisfies all the constraints, including the non-negativity conditions. Graphically, this means the feasible region is empty (does not exist). Causes include: A formulation error has been made. Management’s expectations are too high. Too many restrictions have been placed on the problem (that is, the problem is over-constrained).

Non-Unique Optimal Solutions Graph of infeasibility There are no points that satisfy both constraints of the problem, so the feasible region is empty (there are no feasible solutions). x2 10 2x1 + x2 > 8 8 Max 2x1 + 6x2 s.t. 2x1 + x2 > 8 4x1 + 3x2 < 12 x1, x2 > 0 6 4x1 + 3x2 < 12 4 2 x1 2 4 6 8 10

Non-Unique Optimal Solutions Unbounded objective-function values The value of the solution to a maximization LP problem is unbounded if the value of the solution may be made indefinitely large without violating any of the constraints. For practical problems, this is the result of improper formulation. Most often, a constraint has been inadvertently omitted. Here is an example: Max 4x1 + 5x2 s.t. 3x1 + x2 > 8 x1 + x2 > 5 x1, x2 > 0

Non-Unique Optimal Solutions Graph of unbounded function values The feasible region is unbounded and the objective function line can be moved outward from the origin without bound, infinitely increasing the objective function. x2 10 3x1 + x2 > 8 8 Max 4x1 + 5x2 s.t. 3x1 + x2 > 8 x1 + x2 > 5 x1, x2 > 0 6 Max 4x1 + 5x2 4 x1 + x2 > 5 2 x1 2 4 6 8 10

Blending with Mixed Constraints

Blending with Mixed Constraints Overview Blending with Mixed Constraints help production managers blend resources (grass seeds, desserts, horse food, …) when constraints restrict permissible blends by a mixture of minimal and maximal product characteristics (shade tolerance, calories, vitamin content, …). For example, a blend of desserts should have at least a minimal weight to be satisfying and at most a maximal number of calories and fat to be healthful.

Blending with Mixed Constraints Question: Maggie Stewart loves twinkies and ho ho’s, but due to weight and cholesterol concerns she has decided she must plan her desserts carefully. Maggie allows herself no more then 450 calories and 25 grams of fat in her daily desserts. She requires at least 120 grams of desserts a day. Each dessert also has a “taste index”: 37 for each twinkie gram, 65 for each ho ho gram. Plan her daily desserts to stay within her constraints and maximize the total taste index? What further information do you need for your answer?

Answer: First, formulate the linear program: Blending with Mixed Constraints Answer: First, formulate the linear program: Step 1. Identify decision variables: x1 = daily servings of Twinkies, x2 = daily servings of Ho Ho’s. Step 2. Identify remaining information needed: Each Twinkie serving has 150 calories, has 4.5 grams of fat, weighs 1.5 ounces. 1.5 ounces = 42.5243 grams (since 1 ounce = 28.3495 grams).

3 ounces = 85.0485 grams (since 1 ounce = 28.3495 grams). Blending with Mixed Constraints Each Ho Ho serving has 380 calories, has 17 grams of fat, weighs 3 ounces. 3 ounces = 85.0485 grams (since 1 ounce = 28.3495 grams).

Adding the non-negativity of consumption completes the formulation. Blending with Mixed Constraints Adding the non-negativity of consumption completes the formulation. Max 37(42.5243)x1 + 65(85.0485)x2 s.t. 150x1 + 380x2 < 450 4.5x1 + 17x2 < 25 42.5243x1 + 85.0485x2 > 120 x1 > 0 and x2 > 0 Taste index Calorie constraint Fat constraint Weight constraint Non-negativity constraints

2.1541 servings of Twinkies each day. Blending with Mixed Constraints Max 37(42.5243)x1 + 65(85.0485)x2 s.t. 150x1 + 380x2 < 450 4.5x1 + 17x2 < 25 42.5243x1 + 85.0485x2 > 120 x1 > 0 and x2 > 0 2.1541 servings of Twinkies each day. 0.3339 servings of Ho Ho’s each day.

BA 452 Quantitative Analysis End of Lesson I.3