Calzones vs. Mini-Pizzas – A Linear Programming Problem

Slides:



Advertisements
Similar presentations
Learning Objectives for Section 4.1
Advertisements

Lesson 08 Linear Programming
LIAL HORNSBY SCHNEIDER
Linear Programming Problem
Digital Lesson on Graphs of Equations. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 The graph of an equation in two variables.
Session II – Introduction to Linear Programming
Chapter 2: Modeling with Linear Programming & sensitivity analysis
Optimization Models Module 9. MODEL OUTPUT EXTERNAL INPUTS DECISION INPUTS Optimization models answer the question, “What decision values give the best.
5.2 Linear Programming in two dimensions: a geometric approach In this section, we will explore applications which utilize the graph of a system of linear.
Linear Inequalities and Linear Programming Chapter 5 Dr.Hayk Melikyan/ Department of Mathematics and CS/ Linear Programming in two dimensions:
Learning Objectives for Section 5.3
Managerial Decision Modeling with Spreadsheets
Ch 2. 6 – Solving Systems of Linear Inequalities & Ch 2
Chapter 8: Linear Programming
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 71 Chapter 1 Linear Equations and.
1 Optimization and Linear Programming: Calzones vs. Mini-Pizzas How can we optimize revenues in a pizza parlor by varying the production of one delicious.
Linear Programming Models: Graphical and Computer Methods
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Chapter 5.1 Systems of linear inequalities in two variables.
EXAMPLE: 3.1 ASSEMBLING AND TESTING COMPUTERS
Managerial Economics Managerial Economics = economic theory + mathematical eco + statistical analysis.
Mathematics for Economics and Business Jean Soper chapter two Equations in Economics 1.
Chapter 19 Linear Programming McGraw-Hill/Irwin
Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities.
Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities.
1 Chapter 8 Linear programming is used to allocate resources, plan production, schedule workers, plan investment portfolios and formulate marketing (and.
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,
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Linear Programming: A Geometric Approach3 Graphing Systems of Linear Inequalities in Two Variables Linear Programming Problems Graphical Solution of Linear.
QMB 4701 MANAGERIAL OPERATIONS ANALYSIS
Linear Inequalities and Linear Programming Chapter 5 Dr.Hayk Melikyan Department of Mathematics and CS
Linear Programming Problem. Definition A linear programming problem is the problem of optimizing (maximizing or minimizing) a linear function (a function.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
Chapter 2 Systems of Linear Equations and Inequalities.
1 Optimization Techniques Constrained Optimization by Linear Programming updated NTU SY-521-N SMU EMIS 5300/7300 Systems Analysis Methods Dr.
Linear Programming Department of Business Administration FALL by Asst. Prof. Sami Fethi.
Section 3-4 Objective: To solve certain applied problems using linear programming. Linear Programming.
© 2009 Prentice-Hall, Inc. 7 – 1 Decision Science Chapter 3 Linear Programming: Maximization and Minimization.
Sullivan Algebra and Trigonometry: Section 12.9 Objectives of this Section Set Up a Linear Programming Problem Solve a Linear Programming Problem.
1 Geometrical solution of Linear Programming Model.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Slide 4- 1 Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 Copyright © 2010 Pearson Education, Inc. Publishing.
1 2 Linear Programming Chapter 3 3 Chapter Objectives –Requirements for a linear programming model. –Graphical representation of linear models. –Linear.
CHAPTER 1 Linear Equations Section 1.1 p1.
Linear Programming.
Linear Programming Models: Graphical and Computer Methods
A Multiperiod Production Problem
Engineering Economics (2+0)
Chapter 5 Linear Inequalities and Linear Programming
Linear Programming Dr. T. T. Kachwala.
Linear programming Simplex method.
Copyright © Cengage Learning. All rights reserved.
Introduction to linear programming (LP): Minimization
Copyright © Cengage Learning. All rights reserved.
Algebra: Graphs, Functions, and Linear Systems
Linear Programming.
Graphs, Linear Equations, and Functions
Linear programming Simplex method.
Digital Lesson Graphs of Equations.
Linear Programming Introduction.
Optimization Models Module 9.
Chapter 7 Functions of Several Variables
Further Equations and Techniques
Linear Programming Introduction.
Cost-Revenue Analysis Break-Even Points
College Algebra Sixth Edition
BUS-221 Quantitative Methods
Linear Programming.
Presentation transcript:

Calzones vs. Mini-Pizzas – A Linear Programming Problem SSAC2006.HB71.JMP1.2 Calzones vs. Mini-Pizzas – A Linear Programming Problem Core Quantitative concept Linear Programming How can we optimize revenues in a pizza parlor by varying the production of one delicious attraction vs. another? Supporting Quantitative Skills and Concepts Algebra: Manipulating equations Linear functions; Linear equations Multivariable functions Inequalities XY scatter plot Prepared for SSAC by J. M. Pogodzinski – San Jose State University © The Washington Center for Improving the Quality of Undergraduate Education. All rights reserved. 2007

Overview of Module The optimal product mix (the optimal combination of goods produced by the firm) can be represented as the solution to a linear programming problem (End note 1). Linear programming can also be used to represent a wide variety of decision-making situations. Slide 3. A Typical Application and Glossary of Terms - Optimization, Choice (Endogenous) Variables, Parameters (Exogenous Variables), Objective function, feasible set Slide 4. Background Slides 5-8. The Objective Function - linear functions, level curves, slope of level curves, family of level curves Slides 9-14. The Feasible Set - feasible set defined by linear inequalities, linear inequalities, slope of the facets of the feasible set Slide 15. Optimization – Maximization subject to constraint, an optimal solution illustrated, vertices and facets,

A Typical Application Question Consider a pizza parlor that makes mini-pizzas and calzones. Two resources (inputs) are used to make each: labor time and baking time. There is a limited amount of labor time available, denoted by C1 and a limited amount of baking time available, denoted by C2. [Assume that the ingredients of mini-pizzas and calzones are the same.] Mini-pizzas (Good 1) and calzones (Good 2) sell for different prices, (P1 and P2, respectively). Say, mini-pizzas sell for $7 and calzones sell for $5. Question What is the optimal (or highest-revenue) combination of mini-pizzas and calzones (X1 and X2 ,respectively) for the pizza parlor to produce? GLOSSARY OF TERMS Optimization: maximizing or minimizing a function subject to constraints Objective function: the function to be maximized or minimized Choice (endogenous) variables: the variables whose value is to be determined so as to maximize or minimize the objective function Parameters or exogenous variables: the variables whose value is given or fixed when finding the optimal solution of a particular problem Feasible set: the set of choice variables that satisfies all the constraints of the problem

Linear Functions and Equations Background Linear Functions and Equations Slope-intercept form: you are probably familiar with the slope-intercept form of a linear equation: y=mx+b. Another form of the same equation is: ax+by=c We can rewrite the equation above so that it has the same form (the slope-intercept form) as the first equation: y=(c/b)-[(a/b)x] Another form of the same equation (with the variables X1 and X2) is : a11X1+a12X2=k. Can you put this equation into slope-intercept form? HINT: Except for notation, the last equation is identical to the second equation on this slide.

The Objective Function The objective function – revenue in our pizza parlor example – is a function of the choice variables – the number of mini-pizzas and calzones the pizza parlor produces (X1and X2) – which we seek to maximize. In a linear programming problem, the objective function is linear in the choice variables. For the pizza parlor application, the objective function is R(X1,X2)=P1X1+P2X2. The value of the objective function is computed in Cell G4 in the spreadsheet below. Recreate the spreadsheet to the right. HINT: The expression in Cell G4 can be computed using the built-in Excel function SUMPRODUCT

Level Curves of the Objective Function A level curve of the objective function is defined as the objective function set equal to a constant. In the pizza parlor example, the level curve is given by the equation R(X1,X2)=P1X1+P2X2 = k where k is an arbitrary constant. Modify the spreadsheet you prepared for the previous slide to include two arbitrary values for k – k1 and k2 – and values of X1 ranging from 0 to 10 (in Column C). Enter formulas in the corresponding cells in Column D so that the corresponding value of X2 gives a point on the level curve for k=10.

Level Curves of the Objective Function Changing the arbitrary constant causes a shift in the level curve. Make a graph of the level curves in the previous slide (using the XY scatter graph). Why are the level curves straight lines? (End note 2)

Level Curves of the Objective Function Changing the parameters (prices) of the objective function will change the slope of the level curves. The left-hand graph illustrates the level curves for k1=10 and k2=20 with prices P1=5 and P2=7. The right-hand graph illustrates the same level curves with the prices reversed.

Feasible Set The feasible set is the set of admissible values of X1 and X2. In a linear programming problem, the feasible set is specified in terms of linear inequalities. Consider the pizza parlor that produces mini-pizzas and calzones. Each of these goods requires labor time and baking time. Suppose that the calzones require less labor time than mini-pizzas (because the mini-pizzas must be artfully presented) but that the calzones require more baking time than the mini-pizzas (because they are thicker). Let’s say that each calzone requires 6 minutes of labor time to produce and each mini-pizza requires 10 minutes of labor time to produce. Suppose the pizza parlor employs only one production worker for an eight-hour shift, so 480 minutes of labor time are available. The total number of mini-pizzas (X1) and calzones (X2) produced must satisfy the following linear inequality: 10X1+6X2≤480. This expression is of the form a11X1+a12X2≤C1, where a11, a12 ,and C1 are constants (parameters).

Feasible Set Suppose the baking time for each mini-pizza is 4 minutes, while the baking time for each calzone is 6 minutes. Suppose the oven is available for a total of 400 minutes per eight-hour shift (because it requires 80 minutes of cleaning per shift). In addition, the number of mini-pizzas (X1) and the number of calzones (X2) must be non-negative, i.e., X1≥0 and X2≥0. NOTE: The subscript notation is purposeful. In the interpretation of the linear programming problem as determining the optimal output of two goods, a11 is the units of Resource 1 used in producing each unit of Good 1, and a12 is the units of Resource 1 used in producing each unit of Good 2. C1 is the total amount of Resource 1 available. In your notebook, write down a linear inequality that represents a limit on Resource 2 (baking time) in a fashion that is consistent with the notational convention referred to above.

Inequality Constraints Modify your spreadsheet from Slide 5 to look like this. In Cells G23 and G24, enter logical statements that will return “feasible” when the respective inequalities are satisfied for the values of X1 and X2 contained in Cells C12 and D12, “infeasible” otherwise. Be sure to account for the non-negativity constraints, i.e., X1≥0 and X2≥0.

Graphical Representation of Feasible Region The feasible set is the set of admissible values of X1 and X2. It is the intersection of the inequality constraints and the non-negativity constraints. Modify the previous worksheet to look like this.

Inequality Constraints For each inequality constraint determine the slope of the associated equation (i.e., determine the slope of the straight line when you substitute an “=” sign for the “≤” sign). Graph each of the equations associated with the inequality constraints. Taking the inequality constraints and non-negativity constraints together (satisfied simultaneously) defines a polyhedron with verticies and facets (nodes of interesection and flat surfaces). Identify the coordinates of all the verticies for the constraints in the pizza parlor problem (labeled A, B, C, and D in the next slide). Compare your answer with the figure in the following slide.

Graphical Representation of Feasible Region Verticies of the feasible region are A: (0,66.67) B: (13.33, 57.78) C: (48,0) D: (0,0)

Optimization Optimization refers to either the maximization or minimization of some function. In our Linear Programming example, we are concerned with maximizing the function R subject to the inequality constraints and the non-negativity constraints. This corresponds to finding the “highest” level curve which just touches the feasible region (the one for which the constant k is the greatest). In our example, this highest level curve is that level curve that is the furthest to the North-East - the furthest from the origin. Graphically, the maximum must occur at a vertex of the feasible region – either the point where the equations associated with the linear inequalities intersect, or at the intercepts on the X1 or X2 axes of the feasible region. A simple (but usually inefficient) algorithm for solving a linear programming problem is to determine the value of the objective function at each vertex of the feasible set. For the pizza parlor problem, you can use the worksheet prepared for Slide 5 and substitute the coordinates of each vertex you determined in Slide 14 to determine the optimal solution to this linear programming problem.

End-of-Module Assignment Construct a spreadsheet representing an example of linear programming based on your own life (school, work, hobby). Use only two choice variables. Specify the choice variables and parameters of the objective function, and at least two inequality constraints. Base the parameter selection on your “best guess.” In a brief paragraph, explain your objective function and inequality constraints. 2. Graph the inequality constraints and identify the feasible set. 3. Graphically determine the optimal solution. 4. What changes in the parameters of the objective function will lead to a different vertex being optimal? 5. Extend the example you developed in #1 to more constraints. Solve the extended problem.

End Notes Linear programming is a mathematical technique that is widely used to solve optimization problems in business and engineering. According to Wikipedia (7/5/07), “Some industries that use linear programming models include transportation, energy, telecommunications, and manufacturing. It has proved useful in modeling diverse types of problems in planning, routing, scheduling, assignment, and design.” Examples of business applications, according to Wikipedia, are food blending, inventory management, portfolio and finance management, resource allocation for human and machine resources, and planning advertising campaigns. In the mathematics, linear programming can be found in many linear algebra textbooks. Return to Slide 2. 2. Level curves are essentially contours of a function z(x,y) shown on a graph of y vs. x. Think of the dependent variable (the objective function) z as elevation, and the independent variables, x and y, as distances east and north, respectively. Then, the surface of z(x,y) is a plane, because z is a linear combination of x and y. The contours of an inclined plane are straight lines. Return to Slide 7.