Lesson 08 Linear Programming

Similar documents
Chapter 7. Linear Programming Models: Graphical and Computer Methods

Graphing Linear Inequalities in Two Variables.

UNIT 2 LINEAR PROGRAMMING PROBLEMS

Linear Programming. L.W. Dasanayake Department of Economics University of Kelaniya

Quantitative Technique

Chapter 2 - An Introduction to Linear Programming

Simulation. Lecture O1 Optimization: Linear Programming. Saeed Bastani April 2016

Using Linear Programming for Management Decisions

II. Linear Programming

BCN Decision and Risk Analysis. Syed M. Ahmed, Ph.D.

Chapter 2--An Introduction to Linear Programming

Linear Programming. Meaning of Linear Programming. Basic Terminology

Introduction to Linear Programming

Chapter 15 Introduction to Linear Programming

Introduction. Linear because it requires linear functions. Programming as synonymous of planning.

3. Decision variables are represented in both the objective function and the constraints while formulating a linear program.

Chapter 2 An Introduction to Linear Programming

Linear Programming: Model Formulation and Graphical Solution

Linear Programming. Formulation and Graphical Solution

Linear Programming: Model Formulation and Graphical Solution

Farming Example. Lecture 22. Solving a Linear Program. withthe Simplex Algorithm and with Excel s Solver

Unit.9 Integer Programming

Using the Graphical Method to Solve Linear Programs J. Reeb and S. Leavengood

PROCESS MANAGEMENT. Selected Exact Managerial Methods. Study supports

Graphical Analysis. Figure 1. Copyright c 1997 by Awi Federgruen. All rights reserved.

Linear Programming: A Geometric Approach

a) Alternative Optima, b) Infeasible(or non existing) solution, c) unbounded solution.

Linear Programming: Basic Concepts. Chapter 2: Hillier and Hillier

Setup and graphical solution of Linear Programming Problems [2-variables] Mathematical Programming Characteristics

Prepared By. Handaru Jati, Ph.D. Universitas Negeri Yogyakarta.

Chapter 4 Linear Programming

Chapter 4. Linear Programming

LINEAR PROGRAMMING INTRODUCTION 12.1 LINEAR PROGRAMMING. Three Classical Linear Programming Problems (L.P.P.)

Graphs and transformations, Mixed Exercise 4

Introduction. Chapter 15. Optimization Modeling: Applications. Integer Programming. Manufacturing Example. Three Types of ILP Models

ISE 203 OR I. Chapter 3 Introduction to Linear Programming. Asst. Prof. Dr. Nergiz Kasımbeyli

Review for Mastery Using Graphs and Tables to Solve Linear Systems

Solving linear programming

Real life Problem. Review

CDG2A/CDZ4A/CDC4A/ MBT4A ELEMENTS OF OPERATIONS RESEARCH. Unit : I - V

A Real Life Application of Linear Programming

Full file at Linear Programming Models: Graphical and Computer Methods

LINEAR PROGRAMMING. Chapter Overview

UNIT 6 MODELLING DECISION PROBLEMS (LP)

AMATH 383 Lecture Notes Linear Programming

SUGGESTED SOLUTION CA FINAL MAY 2017 EXAM

In this class, we addressed problem 14 from Chapter 2. So first step, we expressed the problem in STANDARD FORM:

Solutions for Operations Research Final Exam

Econ 172A - Slides from Lecture 9

Integer Programming. Xi Chen. Department of Management Science and Engineering International Business School Beijing Foreign Studies University

Resource Allocation (p. 254)

Econ 172A - Slides from Lecture 2

Linear Programming. them such that they

In other words, we want to find the domain points that yield the maximum or minimum values (extrema) of the function.

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

WEEK 4 REVIEW. Graphing Systems of Linear Inequalities (3.1)

OPERATIONS RESEARCH. Linear Programming Problem

CHAPTER 4 Linear Programming with Two Variables

Chapter 1. Linear Equations and Straight Lines. 2 of 71. Copyright 2014, 2010, 2007 Pearson Education, Inc.

CHAPTER 3 LINEAR PROGRAMMING: SIMPLEX METHOD

Linear Programming Problems

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology Madras.

Intro to Linear Programming. The problem that we desire to address in this course is loosely stated below.

Optimization Methods in Management Science

Lecture 14. Resource Allocation involving Continuous Variables (Linear Programming) 1.040/1.401/ESD.018 Project Management.

Graphical Methods in Linear Programming

Example 1: Give the coordinates of the points on the graph.

Lecture 9: Linear Programming

There is class of problems known as Product Mix problems.

Ahigh school curriculum in Algebra 2 contains both solving systems of linear equations,

4 LINEAR PROGRAMMING (LP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1

Linear programming II João Carlos Lourenço

Concept: Solving Inequalities Name:

STANDARDS OF LEARNING CONTENT REVIEW NOTES ALGEBRA I. 2 nd Nine Weeks,

Linear Programming with Bounds

Introduction to Linear Programing Problems

Outline. CS38 Introduction to Algorithms. Linear programming 5/21/2014. Linear programming. Lecture 15 May 20, 2014

CHAPTER 11: BASIC LINEAR PROGRAMMING CONCEPTS

Introduction to Linear Programming. Algorithmic and Geometric Foundations of Optimization

Linear Programming & Graphic Solution. Dr. Monther Tarawneh

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood

Meeting 1 Introduction to Functions. Part 1 Graphing Points on a Plane (REVIEW) Part 2 What is a function?

Linear Programming Problems

56:272 Integer Programming & Network Flows Final Examination -- December 14, 1998

The Islamic University of Gaza Faculty of Commerce Quantitative Analysis - Dr. Samir Safi Midterm #2-28/4/2014

These definitions are only useful within the graphical solution of LP models. Thus, a more general definition is required.

Chapter II. Linear Programming

Linear Programming. You can model sales with the following objective function. Sales 100x 50y. x 0 and y 0. x y 40

Lecture notes on Transportation and Assignment Problem (BBE (H) QTM paper of Delhi University)

Linear Programming Problems: Geometric Solutions

Application of Cutting Stock Problem in Minimizing The Waste of Al-Quran Cover

Linear Programming Terminology

Question 2: How do you solve a linear programming problem with a graph?

Concept: Solving Inequalities Name:

NOTATION AND TERMINOLOGY

Algebra Reviews & LP Graphic Solutions

Artificial Intelligence

TMA946/MAN280 APPLIED OPTIMIZATION. Exam instructions

Lesson 20: Every Line is a Graph of a Linear Equation

The Simplex Algorithm

Transcription:

Lesson 08 Linear Programming A mathematical approach to determine optimal (maximum or minimum) solutions to problems which involve restrictions on the variables involved. 08 - Linear Programming Applications Linear programming (LP) has been used to:. establish locations for emergency equipment and personnel that minimize response time. determine optimal schedules for planes. develop financial plans. determine optimal diet plans and animal feed mixes. determine the best set of worker-job assignments. determine optimal production schedules. determine routes that will yield minimum shipping costs. determine most profitable product mix 08-2 Aggregate planning Production, Staffing Distribution Shipping Inventory Stock control, Supplier selection Location Plants or warehouses Process management Stock cutting Scheduling Shifts, Vehicles, Routing POM Applications 08-3 Copyright Harland E. Hodges, Ph.D 08-

The Basic LP Question A computer manufacturer makes two models of computers Type, and Type 2. The computers use many of the same components, made in the same factory by the same people and are stored in the same warehouse. How many of each type do I make to maximize/minimize company profits/costs? Type Type 2 08-4 What Constrains What We Make? Materials Labor Time Cash Storage Space Shipping Customer Requirements Etc. What Limits Us? 08-5 Components of Linear Programming Objective (e.g. maximize profits, minimize costs, etc.) Decision variables - those that can vary across a range of possibilities Constraints - limitations for the decision variables Parameters - the numerical values for the decision variables Assumptions for an LP model. linearity - the impact of the decision variables is linear in both constraints and objective function. divisibility - non-integer values for decision variables are OK. certainty - values of parameters are known and are constant. Non-negativity - decision variables >= 0 08-6 Copyright Harland E. Hodges, Ph.D 08-2

Linear Programming Formulation Maximize x = quantity of product to produce Decision Variables... x 2 = quantity of product 2 to produce x = quantity of product 3 to produce Objective Function (maximize profit) 5x + 8x + 4x Subject To Labor Constraint.. Material Constraint Product Constraint. Non-negativity Constraint 3 2 3 2x + 4x + 2 8x3 250 7x + 6x + 2 5x3 00 x 0 x, x, x 0 2 3 08-7 Relationships must be stated in terms of a relationship to a bound. Suppose you have a ratio relationship as follows. x x 2 Mathematically simplifying this equation yields and equivalent equation. This simplified equation is more useful in the development of the linear programming optimal solution. Constraint Equation Relationship Bound 3 4 4x 3x 0 2 Linear Programming Formulation 08-8 Graphical Linear Programming When two decision variables (X and X2) are in the LP formulation, Graphical Linear Programming can be used to solve for the optimum values; however, when more than two decision variables are in the LP formulation, the graphical interpretation of the solution gets confusing and a computerized solution is required. To understand the concepts of Linear Programming it is often educational to familiarize one s self with the concepts of Graphical Linear Programming solutions. To this end we will consider the following example. 08-9 Copyright Harland E. Hodges, Ph.D 08-3

Graphical Linear Programming - Example Example: A computer manufacturer makes two models of computers Type, and Type 2. The company resources available are also known. The marketing department indicates that it can sell what ever the company produces of either model. Find the quantity of Type and Type 2 that will maximize company profits. The information available to the operations manager is summarized in the following table. Per Unit Type Type 2 Amount Available Profit $60 $50 Assembly time (hr) 4 0 00 Inspection time (hr) 2 22 Storage space (cu ft) 3 3 39 First we must formulate the Linear Programming Problem. 08-0 Graphical Linear Programming - Example Decision Variables x = quantity of Type to produce x = quantity of Type 2 to produce 2 Objective Function (maximize profit) 60x+50x2 Subject To Assembly Time Constraint Inspection Time Constraint Storage Space Constraint Non-negativity Constraint 4x + 0x 00 2 2x + x 22 2 3x + 3x 39 2 x, x 0 2 08 - Next, we must plot each constraint (substituting the relationship with an equality sign). First plot the Assembly Time Constraint. 4x + 0x = 00 2 The equation for this line can be plotted easily by solving the equation for the decision variable value when the other decision variable is 0. This gives the point where the line crosses each axis. 4x + 0(0) = 00 4(0) + 0x 2 = 00 x = 25 x = 0 Graphical Linear Programming - Example 2 08-2 Copyright Harland E. Hodges, Ph.D 08-4

Assembly Time Constraint Feasible Region for Assembly Time any point in this region will satisfy the Assembly Constraint Equation 08-3 Graphical Linear Programming - Example Next plot the Inspection Time Constraint. 2x + x = 22 2 The equation for this line can be plotted easily by solving the equation for the decision variable value when the other decision variable is 0. This gives the point where the line crosses each axis. 2x + (0) = 22 2(0) + x 2 = 22 x = x = 22 2 08-4 Inspection Time Constraint Feasible Region for Inspection Time any point in this region will satisfy the Inspection Constraint Equation 08-5 Copyright Harland E. Hodges, Ph.D 08-5

Assembly & Inspection Time Constraints Feasible Region for Assembly & Inspection Time any point in this region will satisfy the both constraints 08-6 Graphical Linear Programming - Example Next plot the Storage Space Constraint. 3x + 3x = 39 2 The equation for this line can be plotted easily by solving the equation for the decision variable value when the other decision variable is 0. This gives the point where the line crosses each axis. 3x + 3(0) = 39 3(0) + 3x 2 = 39 x = 3 x = 3 2 08-7 Storage Space Constraint Feasible Region for Storage Space any point in this region will satisfy the Storage Constraint Equation 08-8 Copyright Harland E. Hodges, Ph.D 08-6

Subtract the equations Lesson 08 Linear Programming Assembly, Inspection & Storage Constraints Feasible Region for Assembly, Inspection & Storage any point in this region will satisfy all three constraints. Optimum Profit (maximum) is at one of the corner points of the feasible region. In this case, it is at the intersection of Storage & Inspection 08-9 Graphical Linear Programming - Example By solving the simultaneous equations for Inspection and Storage we obtain the optimum solution quantities for the decision variables. 2x + x = 22 2 3x + 3x = 39 2 Multiply top equation by -3-6x 3x = -66 2 3x + 3x = 39 2 Therefore, the optimum (maximum) profit is obtained when 9 Type and 4 Type 2 computers are produced. 2(9) + x = 22 2 x = 4 2 Substitute in one of the equations -3x = -27 x = 9 08-20 Graphical Linear Programming - Example Now that we have found optimal solution quantities for Type and Type 2 Computers, the optimal profit is 60(9) + 50(4) = $740 The amount of assembly time, inspection time, and storage space used at these optimum quantities are Assembly Inspection Storage 4(9) + 0( 4) = 76 00 2(9) + (4) = 22 22 3(9) + 3(4) = 39 39 Slack Binding Binding 08-2 Copyright Harland E. Hodges, Ph.D 08-7

Graphical Minimization Solutions The previous example involved a Graphical Maximization Solution. Graphical Minimization Solutions are similar to that of maximization with the exception that one of the constraints must be = or >=. This causes the feasible solution space to be away from the origin. The other difference is that the optimal point is the one nearest the origin. We will not be doing any graphical minimization problems. 08-22 Other Linear Programming Terms Redundant Constraint - one which does not form a unique boundary of the feasible solution space. Feasible Solution Space - a polygon. Optimal solution - a point or line segment on the feasible solution space. The optimal solution is always at one of the corner points of the polygon. In the case that the optimal solution is a line segment of the polygon, any point on the line segment will yield the same optimum solution. 08-23 Other Linear Programming Terms Binding Constraint - one which forms the optimal corner point of the feasible solution space. Surplus - when the values of decision variables are substituted into a >= constraint equation and the resulting value exceeds the right side of the equation. Slack - when the values of decision variables are substituted into a <= constraint equation and the resulting value is less than the right side of the equation. 08-24 Copyright Harland E. Hodges, Ph.D 08-8

08-25 Graphical Linear Programming - Maximize Only 08-26 Enter the data according to the linear programming formulation: Product Names Objective function coefficients Constraints 08-27 Copyright Harland E. Hodges, Ph.D 08-9

All of the constraint equations are plotted on the graph. 08-28 The optimal solution is automatically calculated showing the maximum value of the objective function and the quantities of each product that should be made to achieve it.. For this example: the maximum profit is achieved when 9 Type and 4 Type 2 s are manufactured. 08-29 Constraint utilization and slack/surplus is automatically calculated. 08-30 Copyright Harland E. Hodges, Ph.D 08-0

Selecting the appropriate intersecting constraints shows the quantity points on the polygon where the objective function maximum is achieved. 08-3 EXCEL Solver LP - Example Example: A computer manufacturer makes two models of computers Type, and Type 2. The company resources available are also known. The marketing department indicates that it can sell what ever the company produces of either model. Find the quantity of Type and Type 2 that will maximize company profits. The information available to the operations manager is summarized in the following table. Per Unit Type Type 2 Amount Available Profit $60 $50 Assembly time (hr) 4 0 00 Inspection time (hr) 2 22 Storage space (cu ft) 3 3 39 08-32 08-33 Copyright Harland E. Hodges, Ph.D 08-

Maximize Linear Programming Excel Solver 08-34 Step : Enter LP formulation 08-35 Step 2: Tools, Solver 08-36 Copyright Harland E. Hodges, Ph.D 08-2

Step 3: Solve 08-37 Step 4: OK 08-38 Quantities of each product that yield the maximum objective. The solution! Objective function maximum. Constraint utilization and Slack/Suprlus 08-39 Copyright Harland E. Hodges, Ph.D 08-3

08-40 Minimize Linear Programming Excel Solver The minimize LP looks exactly like the maximize LP. It functions exactly the same way and is used when the problem requires a optimum minimum solution. 08-4 Linear Programming Formulation Minimize x = quantity of product to produce Decision Variables... x 2 = quantity of product 2 to produce x = quantity of product 3 to produce Objective Function (minimize cost) 5x + 8x + 4x 3 2 3 Subject To Constraints are stated in greater than or equal to terms rather than less than or equal to terms. 2x + 4x + 2 8x3 250 08-42 Copyright Harland E. Hodges, Ph.D 08-4

EXCEL Solver LP Templates Read and understand all material in the chapter. Discussion and Review Questions Recreate and understand all classroom examples Exercises on chapter web page 08-43 Appendix: EXCEL Solver Details If you ever have to do your own solver, the following slides detail the steps in Excel you should follow. 08-44 08-45 Copyright Harland E. Hodges, Ph.D 08-5

08-46 08-47 08-48 Copyright Harland E. Hodges, Ph.D 08-6

08-49 08-50 08-5 Copyright Harland E. Hodges, Ph.D 08-7

08-52 08-53 08-54 Copyright Harland E. Hodges, Ph.D 08-8

08-55 08-56 08-57 Copyright Harland E. Hodges, Ph.D 08-9

08-58 08-59 08-60 Copyright Harland E. Hodges, Ph.D 08-20

08-6 08-62 08-63 Copyright Harland E. Hodges, Ph.D 08-2

08-64 Copyright Harland E. Hodges, Ph.D 08-22